Skip to contentSkip to conversation

m68k traps.c constraints

PATCH New Al Viro 1 participant 1 message Jun 15, 2006 m68k architecture

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 m68k traps.c constraints

cast is not an lvalue; =r constraint wants an lvalue and really couldn't care whether it's void * or other pointer type.

---

 arch/m68k/kernel/traps.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

bdc7b61b5412460e1c6d8c723e7744807d23131b

arch/m68k/kernel/traps.c +1 -1
index c640d0f..efc704e 100644
@@ -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 */
Signature · 1 line
1.3.GIT