mirror of
https://github.com/torvalds/linux.git
synced 2024-12-19 01:23:20 +00:00
673550a19f
The *_irq_add function should not be marked __init because the driver subsystem thinks they might be called at a later stage. The usb_simtec_init function accesses initdata and should be marked init. This is safe because the only caller is also an init function. Without this patch, building s3c2410_defconfig results in: WARNING: arch/arm/mach-s3c24xx/built-in.o(.data+0x1030): Section mismatch in reference from the variable s3c2416_irq_interface to the function .init.text:s3c2416_irq_add() The variable s3c2416_irq_interface references the function __init s3c2416_irq_add() 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 WARNING: arch/arm/mach-s3c24xx/built-in.o(.data+0x1b08): Section mismatch in reference from the variable s3c2443_irq_interface to the function .init.text:s3c2443_irq_add() The variable s3c2443_irq_interface references the function __init s3c2443_irq_add() 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 WARNING: arch/arm/mach-s3c24xx/built-in.o(.data+0xf44): Section mismatch in reference from the variable s3c2416_irq_interface to the function .init.text:s3c2416_irq_add() The variable s3c2416_irq_interface references the function __init s3c2416_irq_add() 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 WARNING: arch/arm/mach-s3c24xx/built-in.o(.text+0x3f7c): Section mismatch in reference from the function usb_simtec_init() to the (unknown reference) .init.data:(unknown) The function usb_simtec_init() references the (unknown reference) __initdata (unknown). This is often because usb_simtec_init lacks a __initdata annotation or the annotation of (unknown) is wrong. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Ben Dooks <ben-linux@fluff.org> Cc: Kukjin Kim <kgene.kim@samsung.com> |
||
---|---|---|
.. | ||
include/mach | ||
bast-ide.c | ||
bast-irq.c | ||
clock-s3c244x.c | ||
clock-s3c2412.c | ||
clock-s3c2416.c | ||
clock-s3c2440.c | ||
clock-s3c2443.c | ||
common-s3c2443.c | ||
common-smdk.c | ||
common.c | ||
common.h | ||
dma-s3c2410.c | ||
dma-s3c2412.c | ||
dma-s3c2440.c | ||
dma-s3c2443.c | ||
h1940-bluetooth.c | ||
irq-pm.c | ||
irq-s3c244x.c | ||
irq-s3c2412.c | ||
irq-s3c2416.c | ||
irq-s3c2440.c | ||
irq-s3c2443.c | ||
Kconfig | ||
mach-amlm5900.c | ||
mach-anubis.c | ||
mach-at2440evb.c | ||
mach-bast.c | ||
mach-gta02.c | ||
mach-h1940.c | ||
mach-jive.c | ||
mach-mini2440.c | ||
mach-n30.c | ||
mach-nexcoder.c | ||
mach-osiris-dvs.c | ||
mach-osiris.c | ||
mach-otom.c | ||
mach-qt2410.c | ||
mach-rx1950.c | ||
mach-rx3715.c | ||
mach-smdk2410.c | ||
mach-smdk2413.c | ||
mach-smdk2416.c | ||
mach-smdk2440.c | ||
mach-smdk2443.c | ||
mach-tct_hammer.c | ||
mach-vr1000.c | ||
mach-vstms.c | ||
Makefile | ||
Makefile.boot | ||
pm-h1940.S | ||
pm-s3c2410.c | ||
pm-s3c2412.c | ||
pm-s3c2416.c | ||
pm.c | ||
s3c244x.c | ||
s3c2410.c | ||
s3c2412.c | ||
s3c2416.c | ||
s3c2440.c | ||
s3c2442.c | ||
s3c2443.c | ||
setup-i2c.c | ||
setup-sdhci-gpio.c | ||
setup-spi.c | ||
setup-ts.c | ||
simtec-audio.c | ||
simtec-nor.c | ||
simtec-pm.c | ||
simtec-usb.c | ||
simtec.h | ||
sleep-s3c2410.S | ||
sleep-s3c2412.S | ||
sleep.S |