]> git.baikalelectronics.ru Git - kernel.git/commit
bus: ti-sysc: Add break in switch statement in sysc_init_soc()
authorNathan Chancellor <nathan@kernel.org>
Sun, 15 Aug 2021 19:18:52 +0000 (12:18 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 19 Aug 2021 06:37:56 +0000 (09:37 +0300)
commite2770896b59fbde877e98b8850262b8c4f8be1c7
tree1b6a77daa992a1d185651b9d4c62663ea8285868
parent2e1dd71e7bf2e4449250da4d45a19a01dd852eeb
bus: ti-sysc: Add break in switch statement in sysc_init_soc()

After commit 7964a77966bb ("bus: ti-sysc: AM3: RNG is GP only"), clang
with -Wimplicit-fallthrough enabled warns:

drivers/bus/ti-sysc.c:2958:3: warning: unannotated fall-through between
switch labels [-Wimplicit-fallthrough]
                default:
                ^
drivers/bus/ti-sysc.c:2958:3: note: insert 'break;' to avoid
fall-through
                default:
                ^
                break;
1 warning generated.

Clang's version of this warning is a little bit more pedantic than
GCC's. Add the missing break to satisfy it to match what has been done
all over the kernel tree.

Fixes: 7964a77966bb ("bus: ti-sysc: AM3: RNG is GP only")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c