Skip to content

Commit 8e97bf3

Browse files
rddunlapvineetgarc
authored andcommitted
ARC: kgdb: add 'fallthrough' to prevent a warning
Use the 'fallthrough' macro to document that this switch case does indeed fall through to the next case. ../arch/arc/kernel/kgdb.c: In function 'kgdb_arch_handle_exception': ../arch/arc/kernel/kgdb.c:141:6: warning: this statement may fall through [-Wimplicit-fallthrough=] 141 | if (kgdb_hex2long(&ptr, &addr)) | ^ ../arch/arc/kernel/kgdb.c:144:2: note: here 144 | case 'D': | ^~~~ Cc: [email protected] Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Vineet Gupta <[email protected]>
1 parent f79f7a2 commit 8e97bf3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arc/kernel/kgdb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
140140
ptr = &remcomInBuffer[1];
141141
if (kgdb_hex2long(&ptr, &addr))
142142
regs->ret = addr;
143+
fallthrough;
143144

144145
case 'D':
145146
case 'k':

0 commit comments

Comments
 (0)