]> err.no Git - linux-2.6/commitdiff
[MIPS] ARC: Fix warning.
authorRalf Baechle <ralf@linux-mips.org>
Sat, 24 Mar 2007 13:06:43 +0000 (13:06 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 24 Mar 2007 17:01:49 +0000 (17:01 +0000)
The missing cast did result a warning when calling an 32-bit ARC firmware
function that takes 5 arguments where the 5th argument is a pointer from a
64-bit kernel.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/sgiarcs.h

index ddb859d0525773edb42a912eb0a9abcfe8d53aa8..439bce7daa3a407bf9b5659acf7ac64748300034 100644 (file)
@@ -459,7 +459,7 @@ struct linux_smonblock {
        register signed int __a2 __asm__("$5") = (int) (long) (a2);     \
        register signed int __a3 __asm__("$6") = (int) (long) (a3);     \
        register signed int __a4 __asm__("$7") = (int) (long) (a4);     \
-       register signed int __a5 = (a5);                                \
+       register signed int __a5 = (int) (long) (a5);                   \
        long __vec = (long) romvec->dest;                               \
        __asm__ __volatile__(                                           \
        "dsubu\t$29, 32\n\t"                                            \