[PATCH] m68k traps.c constraints

From: Al Viro
Date: Thu Jun 15 2006 - 07:13:05 EST


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@xxxxxxxxxxxxxxxxxx>

---

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

bdc7b61b5412460e1c6d8c723e7744807d23131b
diff --git a/arch/m68k/kernel/traps.c b/arch/m68k/kernel/traps.c
index c640d0f..efc704e 100644
--- a/arch/m68k/kernel/traps.c
+++ b/arch/m68k/kernel/traps.c
@@ -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 */
--
1.3.GIT

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/