netdev-linux: Fix netdev_linux_send() return value in corner case.
[cascardo/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