Commit 3ac1da33 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Fix sparse warnings wrt. __show_regs().

arch/sparc64/kernel/process.c:219:6: warning: symbol '__show_regs' was not declared. Should it be static?
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5bbdb48d
...@@ -465,8 +465,6 @@ void __kprobes jprobe_return(void) ...@@ -465,8 +465,6 @@ void __kprobes jprobe_return(void)
extern void jprobe_return_trap_instruction(void); extern void jprobe_return_trap_instruction(void);
extern void __show_regs(struct pt_regs * regs);
int __kprobes longjmp_break_handler(struct kprobe *p, struct pt_regs *regs) int __kprobes longjmp_break_handler(struct kprobe *p, struct pt_regs *regs)
{ {
u32 *addr = (u32 *) regs->tpc; u32 *addr = (u32 *) regs->tpc;
......
...@@ -1791,8 +1791,6 @@ static const char *sun4v_err_type_to_str(u32 type) ...@@ -1791,8 +1791,6 @@ static const char *sun4v_err_type_to_str(u32 type)
}; };
} }
extern void __show_regs(struct pt_regs * regs);
static void sun4v_log_error(struct pt_regs *regs, struct sun4v_error_entry *ent, int cpu, const char *pfx, atomic_t *ocnt) static void sun4v_log_error(struct pt_regs *regs, struct sun4v_error_entry *ent, int cpu, const char *pfx, atomic_t *ocnt)
{ {
int cnt; int cnt;
......
...@@ -109,6 +109,7 @@ extern unsigned long profile_pc(struct pt_regs *); ...@@ -109,6 +109,7 @@ extern unsigned long profile_pc(struct pt_regs *);
#define profile_pc(regs) instruction_pointer(regs) #define profile_pc(regs) instruction_pointer(regs)
#endif #endif
extern void show_regs(struct pt_regs *); extern void show_regs(struct pt_regs *);
extern void __show_regs(struct pt_regs *);
#endif #endif
#else /* __ASSEMBLY__ */ #else /* __ASSEMBLY__ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment