microblaze: kill incorrect __bad_xchg definition
authorArnd Bergmann <arnd@arndb.de>
Sun, 10 May 2009 14:26:52 +0000 (14:26 +0000)
committerMichal Simek <monstr@monstr.eu>
Thu, 21 May 2009 13:56:05 +0000 (15:56 +0200)
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>
arch/microblaze/kernel/traps.c

index 293ef486013aa9fa65b8f2204221615af22ffb38..6322cc1744743697082eb1958a13172ada247e65 100644 (file)
@@ -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)
This page took 0.027365 seconds and 5 git commands to generate.