]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
irqchip: Appropriate __init annotation for const data
authorNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 24 Jul 2015 19:24:45 +0000 (15:24 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 27 Jul 2015 06:09:38 +0000 (08:09 +0200)
commitc376023b7096e76ac4d5526105cf9be8743bead9
treef926d4d2e7f260a293eb8cac35f198ca7ffb5e53
parent1ee4fb3ee1e47f2b3c294ded383a3cd9cc2decd4
irqchip: Appropriate __init annotation for const data

Init data marked const should be annotated with __initconst for
correctness and not __initdata.  And for those already __initconst,
they should be qualified as const at the compiler level too.
This also fixes LTO builds that otherwise fail with section mismatch
errors.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Cc: Jason Cooper <jason@lakedaemon.net>
Link: http://lkml.kernel.org/r/alpine.LFD.2.20.1507241511551.1806@knanqh.ubzr
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-atmel-aic.c
drivers/irqchip/irq-atmel-aic5.c
drivers/irqchip/irq-bcm2835.c