aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze/kernel
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2011-02-07 11:36:25 +0100
committerMichal Simek <monstr@monstr.eu>2011-03-09 08:09:58 +0100
commitf699980b0d3c0f4f31e07ef45a48bbe860510a89 (patch)
treed53d73cd4c52b0a21f0c7f6cd0a461fa6ed1b038 /arch/microblaze/kernel
parent29e3dbb10f0efff1297026679364dacc2c822145 (diff)
downloadkernel_samsung_smdk4412-f699980b0d3c0f4f31e07ef45a48bbe860510a89.zip
kernel_samsung_smdk4412-f699980b0d3c0f4f31e07ef45a48bbe860510a89.tar.gz
kernel_samsung_smdk4412-f699980b0d3c0f4f31e07ef45a48bbe860510a89.tar.bz2
microblaze: Fix sparse warning - sw_exceptions
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>
Diffstat (limited to 'arch/microblaze/kernel')
-rw-r--r--arch/microblaze/kernel/exceptions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/exceptions.c b/arch/microblaze/kernel/exceptions.c
index a7fa6ae..66fad23 100644
--- a/arch/microblaze/kernel/exceptions.c
+++ b/arch/microblaze/kernel/exceptions.c
@@ -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);