diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-06-17 08:24:31 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2019-06-18 06:49:41 -0400 |
commit | 4ea10150ea00ec4b111b441797199a177fbd05f4 (patch) | |
tree | 0313961990691354de0eb65cf7d286e664bbb36f /drivers/irqchip | |
parent | 6d8df60218416d6919c174b87786e4c3b06323ce (diff) |
ARM: ixp4xx: mark ixp4xx_irq_setup as __init
Kbuild complains about ixp4xx_irq_setup not being __init
itself in some configurations:
WARNING: vmlinux.o(.text+0x85bae4): Section mismatch in reference from the function ixp4xx_irq_setup() to the function .init.text:set_handle_irq()
The function ixp4xx_irq_setup() references
the function __init set_handle_irq().
This is often because ixp4xx_irq_setup lacks a __init
annotation or the annotation of set_handle_irq is wrong.
I suspect it normally gets inlined, so we get no such warning,
but clang makes this obvious when the function is left out
of line.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/irqchip')
-rw-r--r-- | drivers/irqchip/irq-ixp4xx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/irqchip/irq-ixp4xx.c b/drivers/irqchip/irq-ixp4xx.c index d576809429ac..6751c35b7e1d 100644 --- a/drivers/irqchip/irq-ixp4xx.c +++ b/drivers/irqchip/irq-ixp4xx.c | |||
@@ -252,10 +252,10 @@ static const struct ixp4xx_irq_chunk ixp4xx_irq_chunks[] = { | |||
252 | * @fwnode: Corresponding fwnode abstraction for this controller | 252 | * @fwnode: Corresponding fwnode abstraction for this controller |
253 | * @is_356: if this is an IXP43x, IXP45x or IXP46x SoC variant | 253 | * @is_356: if this is an IXP43x, IXP45x or IXP46x SoC variant |
254 | */ | 254 | */ |
255 | static int ixp4xx_irq_setup(struct ixp4xx_irq *ixi, | 255 | static int __init ixp4xx_irq_setup(struct ixp4xx_irq *ixi, |
256 | void __iomem *irqbase, | 256 | void __iomem *irqbase, |
257 | struct fwnode_handle *fwnode, | 257 | struct fwnode_handle *fwnode, |
258 | bool is_356) | 258 | bool is_356) |
259 | { | 259 | { |
260 | int nr_irqs; | 260 | int nr_irqs; |
261 | 261 | ||