Skip to content

Commit ab80737

Browse files
nathanchancegregkh
authored andcommitted
bus: ti-sysc: Add break in switch statement in sysc_init_soc()
[ Upstream commit e879f85 ] After commit a6d90e9 ("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: a6d90e9 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 427faa2 commit ab80737

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/bus/ti-sysc.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2922,6 +2922,7 @@ static int sysc_init_soc(struct sysc *ddata)
29222922
break;
29232923
case SOC_AM3:
29242924
sysc_add_disabled(0x48310000); /* rng */
2925+
break;
29252926
default:
29262927
break;
29272928
};

0 commit comments

Comments
 (0)