Skip to content

Commit

Permalink
microblaze: kill incorrect __bad_xchg definition
Browse files Browse the repository at this point in the history
The whole point of the __bad_xchg declaration in
system.h is to give a linker error when a variable
of invalid size is passed to __xchg. The out
of line definition in traps.c defeats this purpose
and does not any value, so remove it here.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Arnd Bergmann authored and Michal Simek committed May 21, 2009
1 parent 353b431 commit 70f4cc2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions arch/microblaze/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ void trap_init(void)
__enable_hw_exceptions();
}

void __bad_xchg(volatile void *ptr, int size)
{
printk(KERN_INFO "xchg: bad data size: pc 0x%p, ptr 0x%p, size %d\n",
__builtin_return_address(0), ptr, size);
BUG();
}
EXPORT_SYMBOL(__bad_xchg);

static int kstack_depth_to_print = 24;

static int __init kstack_setup(char *s)
Expand Down

0 comments on commit 70f4cc2

Please sign in to comment.