mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
sh: kprobes: Make trampoline_probe_handler() static
arch/sh/kernel/kprobes.c:299:15: warning: no previous prototype for 'trampoline_probe_handler' [-Wmissing-prototypes] There are no users outside this file, so make it static. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Link: https://lore.kernel.org/r/42f30b7f767ee1293f6e687a605f7d907ae2daa6.1709326528.git.geert+renesas@glider.be Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
This commit is contained in:
parent
1422ae080b
commit
f96299b1be
|
|
@ -296,7 +296,7 @@ static void __used kretprobe_trampoline_holder(void)
|
|||
/*
|
||||
* Called when we hit the probe point at __kretprobe_trampoline
|
||||
*/
|
||||
int __kprobes trampoline_probe_handler(struct kprobe *p, struct pt_regs *regs)
|
||||
static int __kprobes trampoline_probe_handler(struct kprobe *p, struct pt_regs *regs)
|
||||
{
|
||||
regs->pc = __kretprobe_trampoline_handler(regs, NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user