Fix SYSCALL_ALIAS for older MIPS assembler
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 21 Apr 2009 11:44:13 +0000 (13:44 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 21 Apr 2009 14:50:58 +0000 (07:50 -0700)
Older MIPS assembler don't support .set for defining aliases.
Using = works for old and new assembers.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/syscalls.h

index dabe4ad8914111d4979806ea0c152772b4a3996f..40617c1d8976eb11a0328f85f6238841e9b35eb9 100644 (file)
@@ -148,7 +148,7 @@ struct old_linux_dirent;
        asm ("\t.globl " #alias "\n\t.set " #alias ", " #name "\n"      \
             "\t.globl ." #alias "\n\t.set ." #alias ", ." #name)
 #else
-#ifdef CONFIG_ALPHA
+#if defined(CONFIG_ALPHA) || defined(CONFIG_MIPS)
 #define SYSCALL_ALIAS(alias, name)                                     \
        asm ( #alias " = " #name "\n\t.globl " #alias)
 #else