lkml.org 
[lkml]   [2021]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 25/94] radix tree test suite: Add __must_be_array() support
    Date
    Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
    ---
    tools/testing/radix-tree/linux/kernel.h | 2 ++
    1 file changed, 2 insertions(+)

    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 */
    --
    2.30.2
    \
     
     \ /
      Last update: 2021-04-28 17:39    [W:3.952 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site