]> err.no Git - linux-2.6/commitdiff
[PATCH] m68k traps.c constraints
authorAl Viro <viro@ftp.linux.org.uk>
Fri, 23 Jun 2006 09:05:03 +0000 (02:05 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:43:01 +0000 (07:43 -0700)
Cast is not an lvalue; =r constraint wants an lvalue and really couldn't
care whether it's void * or other pointer type.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/m68k/kernel/traps.c

index 86aa63f91f73d8cd617c77391289fbe6a5aa373f..837a88709902b016f1fcc4e0d3e5586ef03db947 100644 (file)
@@ -114,7 +114,7 @@ void __init base_trap_init(void)
        if(MACH_IS_SUN3X) {
                extern e_vector *sun3x_prom_vbr;
 
-               __asm__ volatile ("movec %%vbr, %0" : "=r" ((void*)sun3x_prom_vbr));
+               __asm__ volatile ("movec %%vbr, %0" : "=r" (sun3x_prom_vbr));
        }
 
        /* setup the exception vector table */