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 dabe4ad..40617c1 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