datapath: Fix sparse warning on BUILD_BUG_ON_NOT_POWER_OF_2 definition.
authorPravin B Shelar <pshelar@nicira.com>
Thu, 7 Jun 2012 22:20:27 +0000 (15:20 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 7 Jun 2012 22:20:27 +0000 (15:20 -0700)
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 <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/linux/compat/include/linux/kernel.h

index bd6e9a49ddd68e90d413855bafeb35544cc104ef..812f2132978e892eca744dea926cbe1bbb55e7a0 100644 (file)
@@ -7,6 +7,7 @@
 #endif
 
 #include <linux/version.h>
+#include <linux/bug.h>
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
 #undef pr_emerg
 #define pr_emerg(fmt, ...) \