| To: | ralf@linux-mips.org |
|---|---|
| Subject: | [PATCH] MIPS: JZ4740: prom: Fix section mismatch |
| From: | Lars-Peter Clausen <lars@metafoo.de> |
| Date: | Thu, 4 Nov 2010 23:25:57 +0100 |
| Cc: | linux-mips@linux-mips.org, Lars-Peter Clausen <lars@metafoo.de> |
| In-reply-to: | <1288909557-20088-1-git-send-email-lars@metafoo.de> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1288909557-20088-1-git-send-email-lars@metafoo.de> |
| Sender: | linux-mips-bounce@linux-mips.org |
This patch fixes the following section mismatch:
WARNING: arch/mips/built-in.o(.text+0xc): Section mismatch in reference
from the
function jz4740_init_cmdline() to the variable .init.data:arcs_cmdline
While were at it, make jz4740_init_cmdline static as well.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
arch/mips/jz4740/prom.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/jz4740/prom.c b/arch/mips/jz4740/prom.c
index cfeac15..4a70407 100644
--- a/arch/mips/jz4740/prom.c
+++ b/arch/mips/jz4740/prom.c
@@ -23,7 +23,7 @@
#include <asm/bootinfo.h>
#include <asm/mach-jz4740/base.h>
-void jz4740_init_cmdline(int argc, char *argv[])
+static __init void jz4740_init_cmdline(int argc, char *argv[])
{
unsigned int count = COMMAND_LINE_SIZE - 1;
int i;
--
1.5.6.5
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] MIPS: jz4740: qi_lb60: Fix gpio for the 6th row of the keyboard matrix, Lars-Peter Clausen |
|---|---|
| Next by Date: | Re: [PATCH] MIPS: Fix build errors in sc-mips.c, Ralf Baechle |
| Previous by Thread: | [PATCH] MIPS: jz4740: qi_lb60: Fix gpio for the 6th row of the keyboard matrix, Lars-Peter Clausen |
| Next by Thread: | Re: [PATCH] MIPS: JZ4740: prom: Fix section mismatch, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |