From 716eabd37c224e0d214c2b5f840b71f42805280b Mon Sep 17 00:00:00 2001 From: Wu Zhangjin Date: Tue, 26 Jan 2010 23:02:34 +0800 Subject: [PATCH] --- yaml --- r: 182082 b: refs/heads/master c: e52dd9fc6b9e0c17b220bd38371ff15032a1a155 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/mips/boot/compressed/dbg.c | 4 ++-- trunk/arch/mips/oprofile/common.c | 7 ++++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index ae799054f954..f2869d8a09f0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: aae7e8da806e1536fdee0632a40aaaeed97a2f1b +refs/heads/master: e52dd9fc6b9e0c17b220bd38371ff15032a1a155 diff --git a/trunk/arch/mips/boot/compressed/dbg.c b/trunk/arch/mips/boot/compressed/dbg.c index ff4dc7a33a9f..134a6162e394 100644 --- a/trunk/arch/mips/boot/compressed/dbg.c +++ b/trunk/arch/mips/boot/compressed/dbg.c @@ -5,11 +5,11 @@ * please select SYS_SUPPORTS_ZBOOT_UART16550 for your machine. othewise, you * need to implement your own putc(). */ - +#include #include #include -void __attribute__ ((weak)) putc(char c) +void __weak putc(char c) { } diff --git a/trunk/arch/mips/oprofile/common.c b/trunk/arch/mips/oprofile/common.c index 7832ad257a14..f9eb1aba6345 100644 --- a/trunk/arch/mips/oprofile/common.c +++ b/trunk/arch/mips/oprofile/common.c @@ -6,6 +6,7 @@ * Copyright (C) 2004, 2005 Ralf Baechle * Copyright (C) 2005 MIPS Technologies, Inc. */ +#include #include #include #include @@ -14,9 +15,9 @@ #include "op_impl.h" -extern struct op_mips_model op_model_mipsxx_ops __attribute__((weak)); -extern struct op_mips_model op_model_rm9000_ops __attribute__((weak)); -extern struct op_mips_model op_model_loongson2_ops __attribute__((weak)); +extern struct op_mips_model op_model_mipsxx_ops __weak; +extern struct op_mips_model op_model_rm9000_ops __weak; +extern struct op_mips_model op_model_loongson2_ops __weak; static struct op_mips_model *model;