mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
sparc64: Fix prototype warning for uprobe_trap
Fix the following warning: arch/sparc/kernel/uprobes.c:237:17: warning: no previous prototype for ‘uprobe_trap’ Add a prototype to kernel/kernel.h to silence the warning. This is a fix already used for other trap handlers. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Andreas Larsson <andreas@gaisler.com> Cc: David S. Miller <davem@davemloft.net> Reviewed-by: Andreas Larsson <andreas@gaisler.com> Tested-by: Andreas Larsson <andreas@gaisler.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20240330-sparc64-warnings-v1-5-37201023ee2f@ravnborg.org Signed-off-by: Andreas Larsson <andreas@gaisler.com>
This commit is contained in:
parent
e6057a6441
commit
a51b8c83bf
2 changed files with 6 additions and 0 deletions
|
@ -40,6 +40,10 @@ int handle_popc(u32 insn, struct pt_regs *regs);
|
|||
void handle_lddfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr);
|
||||
void handle_stdfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr);
|
||||
|
||||
/* uprobes.c */
|
||||
asmlinkage void uprobe_trap(struct pt_regs *regs,
|
||||
unsigned long trap_level);
|
||||
|
||||
/* smp_64.c */
|
||||
void __irq_entry smp_call_function_client(int irq, struct pt_regs *regs);
|
||||
void __irq_entry smp_call_function_single_client(int irq, struct pt_regs *regs);
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
|
||||
#include <asm/cacheflush.h>
|
||||
|
||||
#include "kernel.h"
|
||||
|
||||
/* Compute the address of the breakpoint instruction and return it.
|
||||
*
|
||||
* Note that uprobe_get_swbp_addr is defined as a weak symbol in
|
||||
|
|
Loading…
Add table
Reference in a new issue