]> git.proxmox.com Git - ovs.git/blob - datapath/linux/compat/include/linux/bug.h
d24e68e3721bc7652770ca90885541c3cbb1d9a8
[ovs.git] / datapath / linux / compat / include / linux / bug.h
1 #ifndef __BUG_H_WRAPPER
2 #define __BUG_H_WRAPPER 1
3
4 #include_next <linux/bug.h>
5
6 #ifndef BUILD_BUG_ON_NOT_POWER_OF_2
7 /* Force a compilation error if a constant expression is not a power of 2 */
8 #define BUILD_BUG_ON_NOT_POWER_OF_2(n) \
9 BUILD_BUG_ON((n) == 0 || (((n) & ((n) - 1)) != 0))
10 #endif
11
12 #endif