]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
microblaze: Fix sparse warning - sw_exceptions
authorMichal Simek <monstr@monstr.eu>
Mon, 7 Feb 2011 10:36:25 +0000 (11:36 +0100)
committerMichal Simek <monstr@monstr.eu>
Wed, 9 Mar 2011 07:09:58 +0000 (08:09 +0100)
Function sw_exception is linked with asm code.

Warning log:
CHECK   arch/microblaze/kernel/exceptions.c
arch/microblaze/kernel/exceptions.c:53:6: warning: symbol 'sw_exception' was not declared. Should it be static?

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/include/asm/exceptions.h
arch/microblaze/kernel/exceptions.c

index 6479097b802b3fdbce1a8e6b71edb8c72e56efdb..23c0f71db8e37e196a04a2a55f4917f3b98f8f93 100644 (file)
@@ -66,6 +66,8 @@
 asmlinkage void full_exception(struct pt_regs *regs, unsigned int type,
                                                        int fsr, int addr);
 
+asmlinkage void sw_exception(struct pt_regs *regs);
+
 void die(const char *str, struct pt_regs *fp, long err);
 void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr);
 
index a7fa6ae76d8982338d690939ee5c554dced410e4..66fad23012216e86cb2f91bdfff053f0e080f208 100644 (file)
@@ -50,7 +50,7 @@ void die(const char *str, struct pt_regs *fp, long err)
 }
 
 /* for user application debugging */
-void sw_exception(struct pt_regs *regs)
+asmlinkage void sw_exception(struct pt_regs *regs)
 {
        _exception(SIGTRAP, regs, TRAP_BRKPT, regs->r16);
        flush_dcache_range(regs->r16, regs->r16 + 0x4);