projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad3bc25
)
x86/kprobes: Remove trampoline_handler() prototype
author
Borislav Petkov
<
[email protected]
>
Fri, 7 Dec 2018 19:38:09 +0000
(20:38 +0100)
committer
Borislav Petkov
<
[email protected]
>
Sat, 8 Dec 2018 11:25:12 +0000
(12:25 +0100)
... 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 <
[email protected]
>
Cc: Masami Hiramatsu <
[email protected]
>
Link:
https://lkml.kernel.org/r/
[email protected]
arch/x86/kernel/kprobes/core.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/kprobes/core.c
b/arch/x86/kernel/kprobes/core.c
index 6480056d370f2e9847675608e870d46f3294854c..308bf103cc7325f374dd92b5358d0dd446013a39 100644
(file)
--- a/
arch/x86/kernel/kprobes/core.c
+++ b/
arch/x86/kernel/kprobes/core.c
@@
-66,8
+66,6
@@
#include "common.h"
-void *trampoline_handler(struct pt_regs *regs);
-
DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL;
DEFINE_PER_CPU(struct kprobe_ctlblk, kprobe_ctlblk);
@@
-753,7
+751,7
@@
STACK_FRAME_NON_STANDARD(kretprobe_trampoline);
/*
* Called from kretprobe_trampoline
*/
-
__visible
__used void *trampoline_handler(struct pt_regs *regs)
+
static
__used void *trampoline_handler(struct pt_regs *regs)
{
struct kretprobe_instance *ri = NULL;
struct hlist_head *head, empty_rp;