diff options
author | 2020-10-05 17:50:28 +0200 | |
---|---|---|
committer | 2020-10-06 09:32:13 -0500 | |
commit | 2486baae2cf6df73554144d0a4e40ae8809b54d4 (patch) | |
tree | 13ad1994cbfcc1028638cf0133b64e70c6958d94 /drivers/usb/cdns3/cdns3-debug.h | |
parent | objtool: Permit __kasan_check_{read,write} under UACCESS (diff) | |
download | wireguard-linux-2486baae2cf6df73554144d0a4e40ae8809b54d4.tar.xz wireguard-linux-2486baae2cf6df73554144d0a4e40ae8809b54d4.zip |
objtool: Allow nested externs to enable BUILD_BUG()
Currently BUILD_BUG() macro is expanded to smth like the following:
do {
extern void __compiletime_assert_0(void)
__attribute__((error("BUILD_BUG failed")));
if (!(!(1)))
__compiletime_assert_0();
} while (0);
If used in a function body this obviously would produce build errors
with -Wnested-externs and -Werror.
Build objtool with -Wno-nested-externs to enable BUILD_BUG() usage.
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions