All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] irqchip: Add irqchip_init dummy function
@ 2013-05-08 13:20 ` Bastian Hecht
  0 siblings, 0 replies; 10+ messages in thread
From: Bastian Hecht @ 2013-05-08 13:20 UTC (permalink / raw)
  To: linux-arm-kernel

We add an empty irqchip_init dummy function for cases in which
CONFIG_IRQCHIP is not used. In these cases irqchip.c is not compiled,
but a funtion call may still be present in architecture code, that in
runtime doesn't get hit.

E.g. this is needed in the arch/arm/mach-shmobile/intc-r8a7740.c
interrupt setup code where OF use and non OF us is both handled in one
file.

Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
---
 include/linux/irqchip.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/linux/irqchip.h b/include/linux/irqchip.h
index e0006f1..78527ba 100644
--- a/include/linux/irqchip.h
+++ b/include/linux/irqchip.h
@@ -11,6 +11,10 @@
 #ifndef _LINUX_IRQCHIP_H
 #define _LINUX_IRQCHIP_H
 
+#ifdef CONFIG_IRQCHIP
 void irqchip_init(void);
+#else
+void irqchip_init(void) {};
+#endif
 
 #endif
-- 
1.7.9.5


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

end of thread, other threads:[~2013-05-09  3:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-08 13:20 [PATCH] irqchip: Add irqchip_init dummy function Bastian Hecht
2013-05-08 13:20 ` Bastian Hecht
2013-05-08 15:15 ` Sergei Shtylyov
2013-05-08 15:15   ` Sergei Shtylyov
2013-05-08 16:33   ` Arnd Bergmann
2013-05-08 16:33     ` Arnd Bergmann
2013-05-08 18:51     ` Sergei Shtylyov
2013-05-08 18:51       ` Sergei Shtylyov
2013-05-09  3:44       ` Simon Horman
2013-05-09  3:44         ` Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.