Skip to content

Commit 4a43364

Browse files
sravnborgandreas-gaisler
authored andcommitted
sparc64: Fix prototype warnings in traps_64.c
Fix the following warnings: arch/sparc/kernel/traps_64.c:253:6: warning: no previous prototype for ‘is_no_fault_exception’ arch/sparc/kernel/traps_64.c:2035:6: warning: no previous prototype for ‘do_mcd_err’ rch/sparc/kernel/traps_64.c:2153:6: warning: no previous prototype for ‘sun4v_nonresum_error_user_handled’ In all cases make the function static as there were no users outside traps_64.c 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 0480fb5 commit 4a43364

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arch/sparc/kernel/traps_64.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ void sun4v_insn_access_exception_tl1(struct pt_regs *regs, unsigned long addr, u
250250
sun4v_insn_access_exception(regs, addr, type_ctx);
251251
}
252252

253-
bool is_no_fault_exception(struct pt_regs *regs)
253+
static bool is_no_fault_exception(struct pt_regs *regs)
254254
{
255255
unsigned char asi;
256256
u32 insn;
@@ -2032,7 +2032,7 @@ static void sun4v_log_error(struct pt_regs *regs, struct sun4v_error_entry *ent,
20322032
/* Handle memory corruption detected error which is vectored in
20332033
* through resumable error trap.
20342034
*/
2035-
void do_mcd_err(struct pt_regs *regs, struct sun4v_error_entry ent)
2035+
static void do_mcd_err(struct pt_regs *regs, struct sun4v_error_entry ent)
20362036
{
20372037
if (notify_die(DIE_TRAP, "MCD error", regs, 0, 0x34,
20382038
SIGSEGV) == NOTIFY_STOP)
@@ -2150,9 +2150,9 @@ static unsigned long sun4v_get_vaddr(struct pt_regs *regs)
21502150
/* Attempt to handle non-resumable errors generated from userspace.
21512151
* Returns true if the signal was handled, false otherwise.
21522152
*/
2153-
bool sun4v_nonresum_error_user_handled(struct pt_regs *regs,
2154-
struct sun4v_error_entry *ent) {
2155-
2153+
static bool sun4v_nonresum_error_user_handled(struct pt_regs *regs,
2154+
struct sun4v_error_entry *ent)
2155+
{
21562156
unsigned int attrs = ent->err_attrs;
21572157

21582158
if (attrs & SUN4V_ERR_ATTRS_MEMORY) {

0 commit comments

Comments
 (0)