diff options
author | Wu Zhangjin <wuzhangjin@gmail.com> | 2010-01-26 10:02:34 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-02-27 06:53:17 -0500 |
commit | e52dd9fc6b9e0c17b220bd38371ff15032a1a155 (patch) | |
tree | 01f4dba99ecfb3001d01ae8ec6ff6731ac55a51e /arch/mips/boot | |
parent | aae7e8da806e1536fdee0632a40aaaeed97a2f1b (diff) |
MIPS: Simplify the weak annotation with __weak
Found by
$ find arch/mips/ -name "*.c" | xargs -i grep -H weak {} | grep -v __weak
[Ralf: Made this bulletproof by including <linux/compiler.h>]
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/874/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/boot')
-rw-r--r-- | arch/mips/boot/compressed/dbg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/boot/compressed/dbg.c b/arch/mips/boot/compressed/dbg.c index ff4dc7a33a9f..134a6162e394 100644 --- a/arch/mips/boot/compressed/dbg.c +++ b/arch/mips/boot/compressed/dbg.c | |||
@@ -5,11 +5,11 @@ | |||
5 | * please select SYS_SUPPORTS_ZBOOT_UART16550 for your machine. othewise, you | 5 | * please select SYS_SUPPORTS_ZBOOT_UART16550 for your machine. othewise, you |
6 | * need to implement your own putc(). | 6 | * need to implement your own putc(). |
7 | */ | 7 | */ |
8 | 8 | #include <linux/compiler.h> | |
9 | #include <linux/init.h> | 9 | #include <linux/init.h> |
10 | #include <linux/types.h> | 10 | #include <linux/types.h> |
11 | 11 | ||
12 | void __attribute__ ((weak)) putc(char c) | 12 | void __weak putc(char c) |
13 | { | 13 | { |
14 | } | 14 | } |
15 | 15 | ||