diff options
author | Kees Cook <[email protected]> | 2021-12-08 20:34:56 -0800 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2021-12-10 19:13:00 +0100 |
commit | 61646ca83d3889696f2772edaff122dd96a2935e (patch) | |
tree | 2ca53c4595281fb1c9ec4c93e8b3fa28b5ebbdbf /net/lapb/lapb_timer.c | |
parent | 0fcfb00b28c0b7884635dacf38e46d60bf3d4eb1 (diff) |
x86/uaccess: Move variable into switch case statement
When building with automatic stack variable initialization, GCC 12
complains about variables defined outside of switch case statements.
Move the variable into the case that uses it, which silences the warning:
./arch/x86/include/asm/uaccess.h:317:23: warning: statement will never be executed [-Wswitch-unreachable]
317 | unsigned char x_u8__; \
| ^~~~~~
Fixes: 865c50e1d279 ("x86/uaccess: utilize CONFIG_CC_HAS_ASM_GOTO_OUTPUT")
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions