aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/uprobes.c
diff options
context:
space:
mode:
authorSam Ravnborg <[email protected]>2024-03-30 10:57:41 +0100
committerAndreas Larsson <[email protected]>2024-04-22 15:33:06 +0200
commita51b8c83bf2743871d5883c5a179590c4a96fdcd (patch)
treeb924cdbaa06c95a30453eba47c3abea758c2e6f7 /arch/sparc/kernel/uprobes.c
parente6057a644148079bf6b04025670236fb8142006c (diff)
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]>
Diffstat (limited to 'arch/sparc/kernel/uprobes.c')
-rw-r--r--arch/sparc/kernel/uprobes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/kernel/uprobes.c b/arch/sparc/kernel/uprobes.c
index 1a0600206bf5..305017bec164 100644
--- a/arch/sparc/kernel/uprobes.c
+++ b/arch/sparc/kernel/uprobes.c
@@ -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