aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-add.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2021-12-08 20:39:15 -0800
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2022-01-05 01:03:09 +0100
commitba52eac083e1598e748811ff58d259f77e4c5c4d (patch)
tree74dff1ec57759c0d82e61196bfc5305bf4d175d2 /lib/mpi/mpi-add.c
parent7b69b54aaa48979f5e3cebb7225e11cbbdc9f5fb (diff)
rtc: 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: drivers/rtc/dev.c: In function 'rtc_dev_ioctl': drivers/rtc/dev.c:394:30: warning: statement will never be executed [-Wswitch-unreachable] 394 | long offset; | ^~~~~~ Fixes: 6a8af1b6568a ("rtc: add parameter ioctl") Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20211209043915.1378393-1-keescook@chromium.org
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions