projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3943572
)
datapath: Fix sparse warning on BUILD_BUG_ON_NOT_POWER_OF_2 definition.
author
Pravin B Shelar
<pshelar@nicira.com>
Thu, 7 Jun 2012 22:20:27 +0000
(15:20 -0700)
committer
Pravin 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
patch
|
blob
|
history
diff --git
a/datapath/linux/compat/include/linux/kernel.h
b/datapath/linux/compat/include/linux/kernel.h
index bd6e9a49ddd68e90d413855bafeb35544cc104ef..812f2132978e892eca744dea926cbe1bbb55e7a0 100644
(file)
--- a/
datapath/linux/compat/include/linux/kernel.h
+++ b/
datapath/linux/compat/include/linux/kernel.h
@@
-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, ...) \