From: Liam R. Howlett Date: Thu, 14 Jan 2021 01:30:02 +0000 (-0500) Subject: radix tree test suite: Add __must_be_array() support X-Git-Tag: howlett/maple_spf/20210104~66 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=fd8fce3546034f1def5b00c159e929441cfbcdef;p=users%2Fjedix%2Flinux-maple.git radix tree test suite: Add __must_be_array() support Signed-off-by: Liam R. Howlett --- diff --git a/tools/testing/radix-tree/linux/kernel.h b/tools/testing/radix-tree/linux/kernel.h index 99979aeaa379..e44603a181da 100644 --- a/tools/testing/radix-tree/linux/kernel.h +++ b/tools/testing/radix-tree/linux/kernel.h @@ -31,4 +31,6 @@ # define fallthrough do {} while (0) /* fallthrough */ #endif /* __has_attribute */ +#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0])) + #endif /* _KERNEL_H */