aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Simek2012-12-13 11:03:50 -0600
committerMichal Simek2012-12-13 11:15:39 -0600
commit4378bb695670e65ca4aeee1e7588cfa2381351a5 (patch)
treed765d3b5773061f17edc9403d948c011a68212b0 /arch/microblaze
parent9f2a45bd81ad2362b61fe2dc6fa202ae18308b7b (diff)
downloadam43-linux-kernel-4378bb695670e65ca4aeee1e7588cfa2381351a5.tar.gz
am43-linux-kernel-4378bb695670e65ca4aeee1e7588cfa2381351a5.tar.xz
am43-linux-kernel-4378bb695670e65ca4aeee1e7588cfa2381351a5.zip
microblaze: signal: Declare do_notify_resume
Fix sparse warning by declaration do_notify_resume function called from entry.S. Warning: arch/microblaze/kernel/signal.c:357:6: warning: symbol 'do_notify_resume' was not declared. Should it be static? Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/include/asm/entry.h2
-rw-r--r--arch/microblaze/kernel/signal.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/entry.h b/arch/microblaze/include/asm/entry.h
index af0144b91b7..b4a4cb150aa 100644
--- a/arch/microblaze/include/asm/entry.h
+++ b/arch/microblaze/include/asm/entry.h
@@ -29,6 +29,8 @@ DECLARE_PER_CPU(unsigned int, KM); /* Kernel/user mode */
29DECLARE_PER_CPU(unsigned int, ENTRY_SP); /* Saved SP on kernel entry */ 29DECLARE_PER_CPU(unsigned int, ENTRY_SP); /* Saved SP on kernel entry */
30DECLARE_PER_CPU(unsigned int, R11_SAVE); /* Temp variable for entry */ 30DECLARE_PER_CPU(unsigned int, R11_SAVE); /* Temp variable for entry */
31DECLARE_PER_CPU(unsigned int, CURRENT_SAVE); /* Saved current pointer */ 31DECLARE_PER_CPU(unsigned int, CURRENT_SAVE); /* Saved current pointer */
32
33extern asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall);
32# endif /* __ASSEMBLY__ */ 34# endif /* __ASSEMBLY__ */
33 35
34#endif /* _ASM_MICROBLAZE_ENTRY_H */ 36#endif /* _ASM_MICROBLAZE_ENTRY_H */
diff --git a/arch/microblaze/kernel/signal.c b/arch/microblaze/kernel/signal.c
index 3903e3d11f5..ac3d0a0f481 100644
--- a/arch/microblaze/kernel/signal.c
+++ b/arch/microblaze/kernel/signal.c
@@ -354,7 +354,7 @@ static void do_signal(struct pt_regs *regs, int in_syscall)
354 restore_saved_sigmask(); 354 restore_saved_sigmask();
355} 355}
356 356
357void do_notify_resume(struct pt_regs *regs, int in_syscall) 357asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall)
358{ 358{
359 /* 359 /*
360 * We want the common case to go fast, which 360 * We want the common case to go fast, which