diff options
author | Borislav Petkov <bp@suse.de> | 2018-12-07 14:38:09 -0500 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2018-12-08 06:25:12 -0500 |
commit | 4b1bacab61aa252d15dde99cd0440a965bd863e5 (patch) | |
tree | 317c51b1efa8488a7cca65d079059dbfb121a93c | |
parent | ad3bc25a320742f42b3015115384f5aec69c7ce2 (diff) |
x86/kprobes: Remove trampoline_handler() prototype
... and make it static. It is called only by the kretprobe_trampoline()
from asm.
It was marked __visible so that it is visible outside of the current
compilation unit but that is not needed as it is used only in this
compilation unit.
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lkml.kernel.org/r/20181205162526.GB109259@gmail.com
-rw-r--r-- | arch/x86/kernel/kprobes/core.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kernel/kprobes/core.c b/arch/x86/kernel/kprobes/core.c index 6480056d370f..308bf103cc73 100644 --- a/arch/x86/kernel/kprobes/core.c +++ b/arch/x86/kernel/kprobes/core.c | |||
@@ -66,8 +66,6 @@ | |||
66 | 66 | ||
67 | #include "common.h" | 67 | #include "common.h" |
68 | 68 | ||
69 | void *trampoline_handler(struct pt_regs *regs); | ||
70 | |||
71 | DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; | 69 | DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; |
72 | DEFINE_PER_CPU(struct kprobe_ctlblk, kprobe_ctlblk); | 70 | DEFINE_PER_CPU(struct kprobe_ctlblk, kprobe_ctlblk); |
73 | 71 | ||
@@ -753,7 +751,7 @@ STACK_FRAME_NON_STANDARD(kretprobe_trampoline); | |||
753 | /* | 751 | /* |
754 | * Called from kretprobe_trampoline | 752 | * Called from kretprobe_trampoline |
755 | */ | 753 | */ |
756 | __visible __used void *trampoline_handler(struct pt_regs *regs) | 754 | static __used void *trampoline_handler(struct pt_regs *regs) |
757 | { | 755 | { |
758 | struct kretprobe_instance *ri = NULL; | 756 | struct kretprobe_instance *ri = NULL; |
759 | struct hlist_head *head, empty_rp; | 757 | struct hlist_head *head, empty_rp; |