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 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 <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-2-37201023ee2f@ravnborg.org Signed-off-by: Andreas Larsson <andreas@gaisler.com>
This commit is contained in:
parent
0480fb5be3
commit
4a433641bb
1 changed files with 5 additions and 5 deletions
|
@ -250,7 +250,7 @@ void sun4v_insn_access_exception_tl1(struct pt_regs *regs, unsigned long addr, u
|
|||
sun4v_insn_access_exception(regs, addr, type_ctx);
|
||||
}
|
||||
|
||||
bool is_no_fault_exception(struct pt_regs *regs)
|
||||
static bool is_no_fault_exception(struct pt_regs *regs)
|
||||
{
|
||||
unsigned char asi;
|
||||
u32 insn;
|
||||
|
@ -2032,7 +2032,7 @@ static void sun4v_log_error(struct pt_regs *regs, struct sun4v_error_entry *ent,
|
|||
/* Handle memory corruption detected error which is vectored in
|
||||
* through resumable error trap.
|
||||
*/
|
||||
void do_mcd_err(struct pt_regs *regs, struct sun4v_error_entry ent)
|
||||
static void do_mcd_err(struct pt_regs *regs, struct sun4v_error_entry ent)
|
||||
{
|
||||
if (notify_die(DIE_TRAP, "MCD error", regs, 0, 0x34,
|
||||
SIGSEGV) == NOTIFY_STOP)
|
||||
|
@ -2150,9 +2150,9 @@ static unsigned long sun4v_get_vaddr(struct pt_regs *regs)
|
|||
/* Attempt to handle non-resumable errors generated from userspace.
|
||||
* Returns true if the signal was handled, false otherwise.
|
||||
*/
|
||||
bool sun4v_nonresum_error_user_handled(struct pt_regs *regs,
|
||||
struct sun4v_error_entry *ent) {
|
||||
|
||||
static bool sun4v_nonresum_error_user_handled(struct pt_regs *regs,
|
||||
struct sun4v_error_entry *ent)
|
||||
{
|
||||
unsigned int attrs = ent->err_attrs;
|
||||
|
||||
if (attrs & SUN4V_ERR_ATTRS_MEMORY) {
|
||||
|
|
Loading…
Add table
Reference in a new issue