summaryrefslogtreecommitdiffstats
path: root/include/c.h
diff options
context:
space:
mode:
authorSami Kerola2011-10-01 13:58:51 +0200
committerKarel Zak2011-10-10 13:57:16 +0200
commitbfda68fdb11d4473684077392e42f7a81a0e5a75 (patch)
tree09c47e8d3f6f8c62e97875e868fa54b2dbb51f21 /include/c.h
parentbuild-sys: enhance error message for missing libtoolize (diff)
downloadkernel-qcow2-util-linux-bfda68fdb11d4473684077392e42f7a81a0e5a75.tar.gz
kernel-qcow2-util-linux-bfda68fdb11d4473684077392e42f7a81a0e5a75.tar.xz
kernel-qcow2-util-linux-bfda68fdb11d4473684077392e42f7a81a0e5a75.zip
build-sys: rename BUILD_BUG_ON_ZERO definition
Definition name is changed to UL_BUILD_BUG_ON_ZERO to avoid collision with a system header. ../include/c.h:72:1: warning: "BUILD_BUG_ON_ZERO" redefined In file included from /usr/include/sys/sysinfo.h:25, from dmesg.c:16: /usr/include/linux/kernel.h:34:1: warning: this is the location of the previous definition Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'include/c.h')
-rw-r--r--include/c.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/c.h b/include/c.h
index f5b4bcd44..259e6b6cc 100644
--- a/include/c.h
+++ b/include/c.h
@@ -33,7 +33,7 @@
/* &a[0] degrades to a pointer: a different type from an array */
# define __must_be_array(a) \
- BUILD_BUG_ON_ZERO(__builtin_types_compatible_p(__typeof__(a), __typeof__(&a[0])))
+ UL_BUILD_BUG_ON_ZERO(__builtin_types_compatible_p(__typeof__(a), __typeof__(&a[0])))
# define ignore_result(x) ({ \
__typeof__(x) __dummy __attribute__((__unused__)) = (x); (void) __dummy; \
@@ -69,7 +69,7 @@
* e.g. in a structure initializer (or where-ever else comma expressions
* aren't permitted).
*/
-#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
+#define UL_BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
#define BUILD_BUG_ON_NULL(e) ((void *)sizeof(struct { int:-!!(e); }))
#ifndef ARRAY_SIZE