From: Pravin B Shelar Date: Thu, 7 Jun 2012 22:20:27 +0000 (-0700) Subject: datapath: Fix sparse warning on BUILD_BUG_ON_NOT_POWER_OF_2 definition. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca435eb9112e873853d3cf201ee3f0c5c76bf89f;p=openvswitch datapath: Fix sparse warning on BUILD_BUG_ON_NOT_POWER_OF_2 definition. BUILD_BUG_ON_NOT_POWER_OF_2 could been defined in kernel.h or bug.h depending on kernel version. Signed-off-by: Pravin B Shelar Acked-by: Jesse Gross --- diff --git a/datapath/linux/compat/include/linux/kernel.h b/datapath/linux/compat/include/linux/kernel.h index bd6e9a49..812f2132 100644 --- a/datapath/linux/compat/include/linux/kernel.h +++ b/datapath/linux/compat/include/linux/kernel.h @@ -7,6 +7,7 @@ #endif #include +#include #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) #undef pr_emerg #define pr_emerg(fmt, ...) \