linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: at91: fix build breakage due to legacy board removals
@ 2014-11-09  6:42 Olof Johansson
  2014-11-10  7:44 ` Boris Brezillon
  0 siblings, 1 reply; 2+ messages in thread
From: Olof Johansson @ 2014-11-09  6:42 UTC (permalink / raw)
  To: linux-arm-kernel

Fixes the following missing includes:

arch/arm/mach-at91/at91sam9g45.c: In function 'at91sam9g45_init_time':
arch/arm/mach-at91/at91sam9g45.c:39:23: error: 'NR_IRQS_LEGACY' undeclared (first use in this function)
  at91sam926x_pit_init(NR_IRQS_LEGACY + AT91_ID_SYS);
                       ^
arch/arm/mach-at91/at91sam9g45.c:39:23: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [arch/arm/mach-at91/at91sam9g45.o] Error 1
arch/arm/mach-at91/at91sam9rl.c: In function 'at91sam9rl_init_time':
arch/arm/mach-at91/at91sam9rl.c:51:23: error: 'NR_IRQS_LEGACY' undeclared (first use in this function)
  at91sam926x_pit_init(NR_IRQS_LEGACY + AT91_ID_SYS);

Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
---

Nicolas,

I already checked this in to next/cleanup, posting mostly FYI.


-Olof

 arch/arm/mach-at91/at91sam9g45.c | 1 +
 arch/arm/mach-at91/at91sam9rl.c  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/arm/mach-at91/at91sam9g45.c b/arch/arm/mach-at91/at91sam9g45.c
index dd03f652cca4..042f7c623c8f 100644
--- a/arch/arm/mach-at91/at91sam9g45.c
+++ b/arch/arm/mach-at91/at91sam9g45.c
@@ -11,6 +11,7 @@
  */
 
 #include <asm/system_misc.h>
+#include <asm/irq.h>
 #include <mach/cpu.h>
 #include <mach/hardware.h>
 
diff --git a/arch/arm/mach-at91/at91sam9rl.c b/arch/arm/mach-at91/at91sam9rl.c
index 6ca7fc5ca812..97efb2ef9fb4 100644
--- a/arch/arm/mach-at91/at91sam9rl.c
+++ b/arch/arm/mach-at91/at91sam9rl.c
@@ -10,6 +10,7 @@
  */
 
 #include <asm/system_misc.h>
+#include <asm/irq.h>
 #include <mach/cpu.h>
 #include <mach/at91_dbgu.h>
 #include <mach/hardware.h>
-- 
2.0.1.473.gc4d58ca

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

* [PATCH] ARM: at91: fix build breakage due to legacy board removals
  2014-11-09  6:42 [PATCH] ARM: at91: fix build breakage due to legacy board removals Olof Johansson
@ 2014-11-10  7:44 ` Boris Brezillon
  0 siblings, 0 replies; 2+ messages in thread
From: Boris Brezillon @ 2014-11-10  7:44 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Olof,

On Sat,  8 Nov 2014 22:42:34 -0800
Olof Johansson <olof@lixom.net> wrote:

> Fixes the following missing includes:
> 
> arch/arm/mach-at91/at91sam9g45.c: In function 'at91sam9g45_init_time':
> arch/arm/mach-at91/at91sam9g45.c:39:23: error: 'NR_IRQS_LEGACY' undeclared (first use in this function)
>   at91sam926x_pit_init(NR_IRQS_LEGACY + AT91_ID_SYS);
>                        ^
> arch/arm/mach-at91/at91sam9g45.c:39:23: note: each undeclared identifier is reported only once for each function it appears in
> make[3]: *** [arch/arm/mach-at91/at91sam9g45.o] Error 1
> arch/arm/mach-at91/at91sam9rl.c: In function 'at91sam9rl_init_time':
> arch/arm/mach-at91/at91sam9rl.c:51:23: error: 'NR_IRQS_LEGACY' undeclared (first use in this function)
>   at91sam926x_pit_init(NR_IRQS_LEGACY + AT91_ID_SYS);
> 
> Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
> Signed-off-by: Olof Johansson <olof@lixom.net>

Sorry I didn't notice this patch and I just sent a fix for the same bug
(with a slightly different approach though):
"ARM: at91: remove useless init_time for DT-only SoCs"

Regards,

Boris

-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

end of thread, other threads:[~2014-11-10  7:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-09  6:42 [PATCH] ARM: at91: fix build breakage due to legacy board removals Olof Johansson
2014-11-10  7:44 ` Boris Brezillon

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).