Commit 758a7430 authored by Ruan Jinjie's avatar Ruan Jinjie Committed by Ingo Molnar

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-throughSigned-off-by: default avatarRuan Jinjie <ruanjinjie@huawei.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linux-kernel@vger.kernel.org
parent b8ec60e1
...@@ -291,7 +291,7 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec ...@@ -291,7 +291,7 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec
switch (modrm_reg & 7) { switch (modrm_reg & 7) {
case 5: case 5:
imm = -imm; imm = -imm;
/* fallthrough */ fallthrough;
case 0: case 0:
/* add/sub imm, %rsp */ /* add/sub imm, %rsp */
ADD_OP(op) { ADD_OP(op) {
...@@ -375,7 +375,7 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec ...@@ -375,7 +375,7 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec
break; break;
} }
/* fallthrough */ fallthrough;
case 0x88: case 0x88:
if (!rex_w) if (!rex_w)
break; break;
...@@ -656,7 +656,7 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec ...@@ -656,7 +656,7 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec
break; break;
} }
/* fallthrough */ fallthrough;
case 0xca: /* retf */ case 0xca: /* retf */
case 0xcb: /* retf */ case 0xcb: /* retf */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment