aboutsummaryrefslogtreecommitdiffstats
path: root/lib/overflow_kunit.c
diff options
context:
space:
mode:
authorPhilipp Reisner <[email protected]>2024-11-15 20:46:02 +0000
committerKees Cook <[email protected]>2024-11-17 05:15:41 +0000
commitd7a516c6eeae29144649f1c3f586fa580ec9e040 (patch)
tree517312ec6449d6394bc824ca860358073913d18a /lib/overflow_kunit.c
parentlib: string_helpers: silence snprintf() output truncation warning (diff)
downloadkernel-d7a516c6eeae29144649f1c3f586fa580ec9e040.tar.gz
kernel-d7a516c6eeae29144649f1c3f586fa580ec9e040.zip
compiler.h: Fix undefined BUILD_BUG_ON_ZERO()
<linux/compiler.h> defines __must_be_array() and __must_be_cstr() and both expand to BUILD_BUG_ON_ZERO(), but <linux/build_bug.h> defines BUILD_BUG_ON_ZERO(). Including <linux/build_bug.h> in <linux/compiler.h> would create a cyclic dependency as <linux/build_bug.h> already includes <linux/compiler.h>. Fix that by defining __BUILD_BUG_ON_ZERO_MSG() in <linux/compiler.h> and using that for __must_be_array() and __must_be_cstr(). Signed-off-by: Philipp Reisner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'lib/overflow_kunit.c')
0 files changed, 0 insertions, 0 deletions