Skip to contentSkip to conversation

ARM: mach-omap1: Fix omap1510_fpga_init_irq() implicit declarations.

PATCH In review Majunath Goudar 2 participants 2 messages Oct 8, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: mach-omap1: Fix omap1510_fpga_init_irq() implicit declarations.

This patch adds a omap1510_fpga_init_irq() inline dummy implementations in arch/arm/mach-omap1/common.h. Without this patch,build system can lead to issues. This was discovered during randconfig testing,in which other than CONFIG_ARCH_OMAP15XX was enabled the leading to the following error:

CC arch/arm/mach-omap1/board-innovator.o
arch/arm/mach-omap1/board-innovator.c: In function ?innovator_init?:
arch/arm/mach-omap1/board-innovator.c:377:3: error: implicit declaration of function ?omap1510_fpga_init_irq? [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-omap1/board-innovator.o] Error 1
make: *** [arch/arm/mach-omap1] Error 2

Cc Tony Lindgren <[email protected]>
Cc Russell King <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
Cc linux-kernel at vger.kernel.org
Cc linux-omap at vger.kernel.org
---
 arch/arm/mach-omap1/common.h |    3 +++
 1 file changed, 3 insertions(+)
arch/arm/mach-omap1/common.h +3 -0
index abec019..732f8ee 100644
@@ -46,6 +46,9 @@ static inline void omap7xx_map_io(void)
 void omap1510_fpga_init_irq(void);
 void omap15xx_map_io(void);
 #else
+static inline void omap1510_fpga_init_irq(void)
+{
+}
 static inline void omap15xx_map_io(void)
 {
 }
Signature · 1 line
1.7.9.5
reviewer
#1 lore raw
Quoted 6 lines · Majunath Goudar

This patch adds a omap1510_fpga_init_irq() inline dummy implementations in arch/arm/mach-omap1/common.h. Without this patch,build system can lead to issues. This was discovered during randconfig testing,in which other than CONFIG_ARCH_OMAP15XX was enabled the leading to the following error:

Quoted 7 lines

CC arch/arm/mach-omap1/board-innovator.o
arch/arm/mach-omap1/board-innovator.c: In function ?innovator_init?:
arch/arm/mach-omap1/board-innovator.c:377:3: error: implicit declaration of function ?omap1510_fpga_init_irq? [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-omap1/board-innovator.o] Error 1
make: *** [arch/arm/mach-omap1] Error 2

Thanks, I'll apply this into omap-for-v3.13/fixes-not-urgent as it's been there for quite a while.

Regards,

Tony

Quoted 27 lines
Cc Tony Lindgren <[email protected]>
Cc Russell King <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
Cc linux-kernel at vger.kernel.org
Cc linux-omap at vger.kernel.org
---
 arch/arm/mach-omap1/common.h |    3 +++
 1 file changed, 3 insertions(+)
arch/arm/mach-omap1/common.h +3 -0
index abec019..732f8ee 100644
@@ -46,6 +46,9 @@ static inline void omap7xx_map_io(void)
 void omap1510_fpga_init_irq(void);
 void omap15xx_map_io(void);
 #else
+static inline void omap1510_fpga_init_irq(void)
+{
+}
 static inline void omap15xx_map_io(void)
 {
 }
Signature · 1 line
1.7.9.5