MIPS: Remove "__weak" definition from arch-specific linkage.h
authorBjorn Helgaas <bhelgaas@google.com>
Sun, 12 Jul 2015 23:12:03 +0000 (18:12 -0500)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 3 Sep 2015 10:07:39 +0000 (12:07 +0200)
"__weak" is defined in include/linux/compiler-gcc.h.  We shouldn't need an
arch-specific definition.

Remove the "__weak" definition from arch/mips/include/asm/linkage.h.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Cc: Andrew Bresticker <abrestic@chromium.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/10689/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/linkage.h

index 2767dda9e309100f40142567a970d6a4a1b07a4a..99651b0ea7c726a81393127f8a18d873515a0fe6 100644 (file)
@@ -5,7 +5,6 @@
 #include <asm/asm.h>
 #endif
 
-#define __weak __attribute__((weak))
 #define cond_syscall(x) asm(".weak\t" #x "\n" #x "\t=\tsys_ni_syscall")
 #define SYSCALL_ALIAS(alias, name)                                     \
        asm ( #alias " = " #name "\n\t.globl " #alias)