Skip to content

Commit 2304d14

Browse files
Wei YongjunIngo Molnar
authored andcommitted
x86/kprobes: Move 'inline' to the beginning of the kprobe_is_ss() declaration
Address this GCC warning: arch/x86/kernel/kprobes/core.c:940:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration] 940 | static int nokprobe_inline kprobe_is_ss(struct kprobe_ctlblk *kcb) | ^~~~~~ [ mingo: Tidied up the changelog. ] Fixes: 6256e66: ("x86/kprobes: Use int3 instead of debug trap for single-step") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Acked-by: Masami Hiramatsu <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2f706e0 commit 2304d14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/kprobes/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ static int reenter_kprobe(struct kprobe *p, struct pt_regs *regs,
940940
}
941941
NOKPROBE_SYMBOL(reenter_kprobe);
942942

943-
static int nokprobe_inline kprobe_is_ss(struct kprobe_ctlblk *kcb)
943+
static nokprobe_inline int kprobe_is_ss(struct kprobe_ctlblk *kcb)
944944
{
945945
return (kcb->kprobe_status == KPROBE_HIT_SS ||
946946
kcb->kprobe_status == KPROBE_REENTER);

0 commit comments

Comments
 (0)