Skip to content

Commit 758a743

Browse files
Ruan JinjieIngo Molnar
Ruan Jinjie
authored and
Ingo Molnar
committed
objtool: Use 'the fallthrough' pseudo-keyword
Replace the existing /* fallthrough */ comments with the new 'fallthrough' pseudo-keyword macro: https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Ruan Jinjie <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: [email protected]
1 parent b8ec60e commit 758a743

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/objtool/arch/x86/decode.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec
291291
switch (modrm_reg & 7) {
292292
case 5:
293293
imm = -imm;
294-
/* fallthrough */
294+
fallthrough;
295295
case 0:
296296
/* add/sub imm, %rsp */
297297
ADD_OP(op) {
@@ -375,7 +375,7 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec
375375
break;
376376
}
377377

378-
/* fallthrough */
378+
fallthrough;
379379
case 0x88:
380380
if (!rex_w)
381381
break;
@@ -656,7 +656,7 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec
656656
break;
657657
}
658658

659-
/* fallthrough */
659+
fallthrough;
660660

661661
case 0xca: /* retf */
662662
case 0xcb: /* retf */

0 commit comments

Comments
 (0)