diff options
| author | Vasily Gorbik <[email protected]> | 2020-10-05 15:50:28 +0000 |
|---|---|---|
| committer | Josh Poimboeuf <[email protected]> | 2020-10-06 14:32:13 +0000 |
| commit | 2486baae2cf6df73554144d0a4e40ae8809b54d4 (patch) | |
| tree | 13ad1994cbfcc1028638cf0133b64e70c6958d94 /drivers/usb/cdns3/cdns3-imx.c | |
| parent | objtool: Permit __kasan_check_{read,write} under UACCESS (diff) | |
| download | kernel-2486baae2cf6df73554144d0a4e40ae8809b54d4.tar.gz kernel-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 <[email protected]>
Signed-off-by: Josh Poimboeuf <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
