aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r--include/linux/compiler.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 165b1d5683ed..4030a2940d6b 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -357,11 +357,7 @@ static inline void *offset_to_ptr(const int *off)
357 compiletime_assert(__native_word(t), \ 357 compiletime_assert(__native_word(t), \
358 "Need native word sized stores/loads for atomicity.") 358 "Need native word sized stores/loads for atomicity.")
359 359
360#ifdef __CHECKER__
361#define __must_be_array(a) 0
362#else
363/* &a[0] degrades to a pointer: a different type from an array */ 360/* &a[0] degrades to a pointer: a different type from an array */
364#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0])) 361#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
365#endif
366 362
367#endif /* __LINUX_COMPILER_H */ 363#endif /* __LINUX_COMPILER_H */