linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ar7: fix build failures when CONFIG_SERIAL_8250 is not enabled
@ 2009-07-21 10:37 Florian Fainelli
  2009-07-21 15:08 ` Ralf Baechle
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Fainelli @ 2009-07-21 10:37 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips

This patch fixes the following build failure when CONFIG_SERIAL_8250
is not enabled in the kernel configuration:
arch/mips/ar7/built-in.o: In function `ar7_register_devices':
platform.c:(.init.text+0x61c): undefined reference to `early_serial_setup'
platform.c:(.init.text+0x61c): relocation truncated to fit: R_MIPS_26 against `early_serial_setup'
platform.c:(.init.text+0x68c): undefined reference to `early_serial_setup'
platform.c:(.init.text+0x68c): relocation truncated to fit: R_MIPS_26 against `early_serial_setup'

Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c
index cbe4fa4..d0624d8 100644
--- a/arch/mips/ar7/platform.c
+++ b/arch/mips/ar7/platform.c
@@ -494,8 +494,9 @@ static void __init detect_leds(void)
 static int __init ar7_register_devices(void)
 {
 	int res;
-	static struct uart_port uart_port[2];
 	u16 chip_id;
+#ifdef CONFIG_SERIAL_8250
+	static struct uart_port uart_port[2];
 
 	memset(uart_port, 0, sizeof(struct uart_port) * 2);
 
@@ -526,7 +527,7 @@ static int __init ar7_register_devices(void)
 		if (res)
 			return res;
 	}
-
+#endif /* CONFIG_SERIAL_8250 */
 	res = platform_device_register(&physmap_flash);
 	if (res)
 		return res;

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] ar7: fix build failures when CONFIG_SERIAL_8250 is not enabled
  2009-07-21 10:37 [PATCH 1/2] ar7: fix build failures when CONFIG_SERIAL_8250 is not enabled Florian Fainelli
@ 2009-07-21 15:08 ` Ralf Baechle
  2009-07-24 11:24   ` Florian Fainelli
  0 siblings, 1 reply; 4+ messages in thread
From: Ralf Baechle @ 2009-07-21 15:08 UTC (permalink / raw)
  To: Florian Fainelli; +Cc: linux-mips

On Tue, Jul 21, 2009 at 12:37:37PM +0200, Florian Fainelli wrote:

> This patch fixes the following build failure when CONFIG_SERIAL_8250
> is not enabled in the kernel configuration:
> arch/mips/ar7/built-in.o: In function `ar7_register_devices':
> platform.c:(.init.text+0x61c): undefined reference to `early_serial_setup'
> platform.c:(.init.text+0x61c): relocation truncated to fit: R_MIPS_26 against `early_serial_setup'
> platform.c:(.init.text+0x68c): undefined reference to `early_serial_setup'
> platform.c:(.init.text+0x68c): relocation truncated to fit: R_MIPS_26 against `early_serial_setup'

This patch rejects.

  Ralf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] ar7: fix build failures when CONFIG_SERIAL_8250 is not enabled
  2009-07-21 15:08 ` Ralf Baechle
@ 2009-07-24 11:24   ` Florian Fainelli
  2009-07-29 21:46     ` Ralf Baechle
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Fainelli @ 2009-07-24 11:24 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips

Le Tuesday 21 July 2009 17:08:12 Ralf Baechle, vous avez écrit :
> On Tue, Jul 21, 2009 at 12:37:37PM +0200, Florian Fainelli wrote:
> > This patch fixes the following build failure when CONFIG_SERIAL_8250
> > is not enabled in the kernel configuration:
> > arch/mips/ar7/built-in.o: In function `ar7_register_devices':
> > platform.c:(.init.text+0x61c): undefined reference to
> > `early_serial_setup' platform.c:(.init.text+0x61c): relocation truncated
> > to fit: R_MIPS_26 against `early_serial_setup'
> > platform.c:(.init.text+0x68c): undefined reference to
> > `early_serial_setup' platform.c:(.init.text+0x68c): relocation truncated
> > to fit: R_MIPS_26 against `early_serial_setup'
>
> This patch rejects.

The one I sent previously applies to -queue, the one below applies to -master. Thanks !
--
From: Florian Fainelli <florian@openwrt.org>
Subject: [PATCH] ar7: fix build failures when CONFIG_SERIAL_8250 is not enabled

This patch fixes the following build failure when CONFIG_SERIAL_8250
is not enabled in the kernel configuration:
arch/mips/ar7/built-in.o: In function `ar7_register_devices':
platform.c:(.init.text+0x61c): undefined reference to `early_serial_setup'
platform.c:(.init.text+0x61c): relocation truncated to fit: R_MIPS_26 against `early_serial_setup'
platform.c:(.init.text+0x68c): undefined reference to `early_serial_setup'
platform.c:(.init.text+0x68c): relocation truncated to fit: R_MIPS_26 against `early_serial_setup'

Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c
index c4d71fb..8ef8266 100644
--- a/arch/mips/ar7/platform.c
+++ b/arch/mips/ar7/platform.c
@@ -480,6 +480,7 @@ static void __init detect_leds(void)
 static int __init ar7_register_devices(void)
 {
 	int res;
+#ifdef CONFIG_SERIAL_8250
 	static struct uart_port uart_port[2];
 
 	memset(uart_port, 0, sizeof(struct uart_port) * 2);
@@ -511,7 +512,7 @@ static int __init ar7_register_devices(void)
 		if (res)
 			return res;
 	}
-
+#endif /* CONFIG_SERIAL_8250 */
 	res = platform_device_register(&physmap_flash);
 	if (res)
 		return res;

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] ar7: fix build failures when CONFIG_SERIAL_8250 is not enabled
  2009-07-24 11:24   ` Florian Fainelli
@ 2009-07-29 21:46     ` Ralf Baechle
  0 siblings, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2009-07-29 21:46 UTC (permalink / raw)
  To: Florian Fainelli; +Cc: linux-mips

On Fri, Jul 24, 2009 at 01:24:15PM +0200, Florian Fainelli wrote:

> > This patch rejects.
> 
> The one I sent previously applies to -queue, the one below applies to -master. Thanks !

Well, you want 2.6.30 to work, no?

Applied.  Thanks!

  Ralf

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-29 21:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-21 10:37 [PATCH 1/2] ar7: fix build failures when CONFIG_SERIAL_8250 is not enabled Florian Fainelli
2009-07-21 15:08 ` Ralf Baechle
2009-07-24 11:24   ` Florian Fainelli
2009-07-29 21:46     ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).