linux-mips
[Top] [All Lists]

[PATCH v1 1/4] [loongson] Remove the inline annotation of prom_init_uart

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH v1 1/4] [loongson] Remove the inline annotation of prom_init_uart_base()
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Sat, 21 Nov 2009 19:05:22 +0800
Cc: linux-mips@linux-mips.org, Wu Zhangjin <wuzhangjin@gmail.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:in-reply-to:references; bh=XB6K+50uqftNkFXGbsB32LHt5BwHdeCS4/DlLN3PpNY=; b=qt3KoMu2UkYmLrJmiw4hQqfHZbW4G18bsGr3YZBjC2WtHEl+umcA/oVKmoWuB2nuEI kKLhfCMUM5EOLWvRJxyPJNg1X8HtVTn1AetZWsqlU89PKxXYkea7nBw0Wh7miLIr2Hx6 mlubk24F+YMs133l2YNJ/TPuuHvxCVnsZFbOQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=nqXSztnvG+eDYs5YttR74L4n+SlE0+oz9OQw7jE684xyl8hI3YD9Zg4bpDEaS2ejM+ 5pw6PUW5ChEjegllyE7Y3/85I2w/4jyStP9Wg0+hgaRe0wVwU9OU0OxpczNfbW+aHWjg xSI9JUWb5BY7ABsZXP+yfwbW2a5GrxHh4PYE4=
In-reply-to: <cover.1258800842.git.wuzhangjin@gmail.com>
In-reply-to: <cover.1258800842.git.wuzhangjin@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cover.1258800842.git.wuzhangjin@gmail.com>
References: <cover.1258800842.git.wuzhangjin@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
gcc 3.4.6 complains about un-implemented prom_init_uart_base() if using
inline to annotate prom_init_uart_base(), so, remove the inline here.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
 arch/mips/include/asm/mach-loongson/loongson.h |    2 +-
 arch/mips/loongson/common/uart_base.c          |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/mips/include/asm/mach-loongson/loongson.h 
b/arch/mips/include/asm/mach-loongson/loongson.h
index daf7041..a7fa66e 100644
--- a/arch/mips/include/asm/mach-loongson/loongson.h
+++ b/arch/mips/include/asm/mach-loongson/loongson.h
@@ -33,7 +33,7 @@ extern void __init prom_init_machtype(void);
 extern void __init prom_init_env(void);
 extern unsigned long _loongson_uart_base;
 extern unsigned long uart8250_base[];
-extern inline void __maybe_unused prom_init_uart_base(void);
+extern void prom_init_uart_base(void);
 
 /* irq operation functions */
 extern void bonito_irqdispatch(void);
diff --git a/arch/mips/loongson/common/uart_base.c 
b/arch/mips/loongson/common/uart_base.c
index 275bed6..1d636f4 100644
--- a/arch/mips/loongson/common/uart_base.c
+++ b/arch/mips/loongson/common/uart_base.c
@@ -29,7 +29,7 @@ unsigned long __maybe_unused uart8250_base[] = {
 };
 EXPORT_SYMBOL(uart8250_base);
 
-inline void __maybe_unused prom_init_uart_base(void)
+void __maybe_unused prom_init_uart_base(void)
 {
        _loongson_uart_base =
                (unsigned long)ioremap_nocache(uart8250_base[mips_machtype], 8);
-- 
1.6.2.1


<Prev in Thread] Current Thread [Next in Thread>