Skip to content

Commit 758a743

Browse files
ruanjinjie-engingomolnar
authored andcommitted
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 <ruanjinjie@huawei.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: linux-kernel@vger.kernel.org
1 parent b8ec60e commit 758a743

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/objtool/arch/x86/decode.c

Lines changed: 3 additions & 3 deletions
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)