Skip to content

Commit

Permalink
microblaze: Fix sparse warning - sw_exceptions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michal Simek committed Mar 9, 2011
1 parent 29e3dbb commit f699980
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions arch/microblaze/include/asm/exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion arch/microblaze/kernel/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f699980

Please sign in to comment.