Skip to content

Commit a51b8c8

Browse files
sravnborgandreas-gaisler
authored andcommitted
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 <[email protected]> Cc: Andreas Larsson <[email protected]> Cc: David S. Miller <[email protected]> Reviewed-by: Andreas Larsson <[email protected]> Tested-by: Andreas Larsson <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andreas Larsson <[email protected]>
1 parent e6057a6 commit a51b8c8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

arch/sparc/kernel/kernel.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ int handle_popc(u32 insn, struct pt_regs *regs);
4040
void handle_lddfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr);
4141
void handle_stdfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr);
4242

43+
/* uprobes.c */
44+
asmlinkage void uprobe_trap(struct pt_regs *regs,
45+
unsigned long trap_level);
46+
4347
/* smp_64.c */
4448
void __irq_entry smp_call_function_client(int irq, struct pt_regs *regs);
4549
void __irq_entry smp_call_function_single_client(int irq, struct pt_regs *regs);

arch/sparc/kernel/uprobes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
#include <asm/cacheflush.h>
2020

21+
#include "kernel.h"
22+
2123
/* Compute the address of the breakpoint instruction and return it.
2224
*
2325
* Note that uprobe_get_swbp_addr is defined as a weak symbol in

0 commit comments

Comments
 (0)