|
@@ -34,8 +34,12 @@
|
|
__asm__ ("" : "=r"(__ptr) : "0"(ptr)); \
|
|
__asm__ ("" : "=r"(__ptr) : "0"(ptr)); \
|
|
(typeof(ptr)) (__ptr + (off)); })
|
|
(typeof(ptr)) (__ptr + (off)); })
|
|
|
|
|
|
|
|
+#ifdef __CHECKER__
|
|
|
|
+#define __must_be_array(arr) 0
|
|
|
|
+#else
|
|
/* &a[0] degrades to a pointer: a different type from an array */
|
|
/* &a[0] degrades to a pointer: a different type from an array */
|
|
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
|
|
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
|
|
|
|
+#endif
|
|
|
|
|
|
/*
|
|
/*
|
|
* Force always-inline if the user requests it so via the .config,
|
|
* Force always-inline if the user requests it so via the .config,
|