gpio: mpc8xxx: remove __initdata annotation for mpc8xxx_gpio_ids[]
PATCH 1/1 gpio: mpc8xxx: remove __initdata annotation for mpc8xxx_gpio_ids[]
Since commit 98686d9a52ee ("gpio: mpc8xxx: Convert to platform device
interface"), we get the following section mismatch warning. Remove the__initdata annotation to fix it.
WARNING: vmlinux.o(.data+0xbc28): Section mismatch in reference from the variable mpc8xxx_plat_driver to the variable .init.data:mpc8xxx_gpio_ids The variable mpc8xxx_plat_driver references
the variable __initdata mpc8xxx_gpio_ids
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
--- drivers/gpio/gpio-mpc8xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-mpc8xxx.c +1 -1
@@ -334,7 +334,7 @@ static struct irq_domain_ops mpc8xxx_gpio_irq_ops = { .xlate = irq_domain_xlate_twocell, }; -static struct of_device_id mpc8xxx_gpio_ids[]__initdata = { +static struct of_device_id mpc8xxx_gpio_ids[] = { { .compatible ="fsl,mpc8349-gpio" , }, { .compatible ="fsl,mpc8572-gpio" , }, { .compatible ="fsl,mpc8610-gpio" , },
Signature · 1 line
1.9.3
Quoted 11 lines · Kevin Hao
Since commit
98686d9a52ee("gpio: mpc8xxx: Convert to platform device
interface"), we get the following section mismatch warning. Remove the__initdataannotation to fix it.
WARNING:vmlinux.o(.data+0xbc28): Section mismatch in reference from the variablempc8xxx_plat_driverto the variable .init.data:mpc8xxx_gpio_ids The variablempc8xxx_plat_driverreferences
the variable__initdatampc8xxx_gpio_ids
If the reference is valid then annotate the
variable with __init* or__refdata(seelinux/init.h) or name the variable:
*_template,*_timer,*_sht,*_ops,*_probe,*_probe_one,*_consoleSigned-off-by Kevin Hao <[email protected]>
Patch applied for fixes.
Yours,
Linus Walleij