Skip to content

Commit

Permalink
objtool: Use 'the fallthrough' pseudo-keyword
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Ruan Jinjie authored and Ingo Molnar committed Oct 3, 2023
1 parent b8ec60e commit 758a743
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/objtool/arch/x86/decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec
switch (modrm_reg & 7) {
case 5:
imm = -imm;
/* fallthrough */
fallthrough;
case 0:
/* add/sub imm, %rsp */
ADD_OP(op) {
Expand Down Expand Up @@ -375,7 +375,7 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec
break;
}

/* fallthrough */
fallthrough;
case 0x88:
if (!rex_w)
break;
Expand Down Expand Up @@ -656,7 +656,7 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec
break;
}

/* fallthrough */
fallthrough;

case 0xca: /* retf */
case 0xcb: /* retf */
Expand Down

0 comments on commit 758a743

Please sign in to comment.