diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2020-10-05 17:50:28 +0200 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@redhat.com> | 2020-10-06 09:32:13 -0500 |
commit | 2486baae2cf6df73554144d0a4e40ae8809b54d4 (patch) | |
tree | 13ad1994cbfcc1028638cf0133b64e70c6958d94 /arch/x86/xen/enlighten_pv.c | |
parent | b0b8e56b82c06b3bb6e5fb66d0e9c9c3fd3ce555 (diff) | |
download | linux-2486baae2cf6df73554144d0a4e40ae8809b54d4.tar.gz |
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 'arch/x86/xen/enlighten_pv.c')
0 files changed, 0 insertions, 0 deletions