Skip to content

Commit 4b1baca

Browse files
committed
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
1 parent ad3bc25 commit 4b1baca

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/x86/kernel/kprobes/core.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@
6666

6767
#include "common.h"
6868

69-
void *trampoline_handler(struct pt_regs *regs);
70-
7169
DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL;
7270
DEFINE_PER_CPU(struct kprobe_ctlblk, kprobe_ctlblk);
7371

@@ -753,7 +751,7 @@ STACK_FRAME_NON_STANDARD(kretprobe_trampoline);
753751
/*
754752
* Called from kretprobe_trampoline
755753
*/
756-
__visible __used void *trampoline_handler(struct pt_regs *regs)
754+
static __used void *trampoline_handler(struct pt_regs *regs)
757755
{
758756
struct kretprobe_instance *ri = NULL;
759757
struct hlist_head *head, empty_rp;

0 commit comments

Comments
 (0)