linux/arch/arm/mach-s3c24xx
Arnd Bergmann 673550a19f ARM: s3c24xx: fix multiple section mismatch warnings
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>
2012-10-07 10:33:06 +02:00
..
include/mach ARM: S3C24XX: Add missing DMACH_DT_PROP 2012-08-08 09:04:50 +09:00
bast-ide.c ARM: S3C24XX: Use common macro to define resources on bast-ide.c 2012-05-12 16:12:20 +09:00
bast-irq.c
clock-s3c244x.c
clock-s3c2412.c
clock-s3c2416.c spi: s3c64xx: move controller information into driver data 2012-07-13 15:23:46 +09:00
clock-s3c2440.c ARM: S3C24XX: Correct AC97 clock control bit for S3C2440 2012-07-13 17:48:56 +09:00
clock-s3c2443.c spi: s3c64xx: move controller information into driver data 2012-07-13 15:23:46 +09:00
common-s3c2443.c spi: s3c64xx: move controller information into driver data 2012-07-13 15:23:46 +09:00
common-smdk.c ARM: S3C24XX: Convert SMDK board file to the gpiolib API 2012-07-13 18:04:25 +09:00
common.c ARM: S3C24XX: Remove duplicate header file inclusion 2012-06-20 09:19:17 +09:00
common.h ARM: S3C24XX: fix missing common.h in mach-s3c24xx/ 2012-04-02 06:43:23 +09:00
dma-s3c2410.c
dma-s3c2412.c
dma-s3c2440.c
dma-s3c2443.c ARM: S3C24XX: claim spi channels for hsspi in dma-s3c2443 2012-04-24 18:06:53 -07:00
h1940-bluetooth.c
irq-pm.c ARM: S3C24XX: move common power-management code to mach-s3c24xx 2012-05-12 16:22:18 +09:00
irq-s3c244x.c
irq-s3c2412.c
irq-s3c2416.c ARM: s3c24xx: fix multiple section mismatch warnings 2012-10-07 10:33:06 +02:00
irq-s3c2440.c
irq-s3c2443.c ARM: s3c24xx: fix multiple section mismatch warnings 2012-10-07 10:33:06 +02:00
Kconfig ARM: s3c24xx: use new PWM driver 2012-08-09 15:16:43 +02:00
mach-amlm5900.c ARM: S3C24XX: Use common macro to define resources on mach-amlm5900.c 2012-05-12 16:12:20 +09:00
mach-anubis.c ARM: S3C24XX: Use common macro to define resources on mach-anubis.c 2012-05-12 16:12:21 +09:00
mach-at2440evb.c ARM: S3C24XX: Use common macro to define resources on mach-at2440evb.c 2012-05-12 16:12:21 +09:00
mach-bast.c ARM: S3C24XX: Use common macro to define resources on mach-bast.c 2012-05-12 16:12:21 +09:00
mach-gta02.c ARM: S3C24XX: Remove unused GPIO definitions for port J 2012-07-13 18:05:29 +09:00
mach-h1940.c ARM: S3C24XX: Use common macro to define resources on mach-h1940.c 2012-05-12 16:12:24 +09:00
mach-jive.c
mach-mini2440.c ARM: S3C24XX: Free the backlight gpio requested in Mini2440 board code 2012-07-13 18:03:15 +09:00
mach-n30.c
mach-nexcoder.c ARM: S3C24XX: Use common macro to define resources on mach-nexcoder.c 2012-05-12 16:12:24 +09:00
mach-osiris-dvs.c
mach-osiris.c ARM: S3C24XX: Use common macro to define resources on mach-osiris.c 2012-05-13 06:47:07 +09:00
mach-otom.c ARM: S3C24XX: Use common macro to define resources on mach-otom.c 2012-05-12 16:12:24 +09:00
mach-qt2410.c ARM: S3C24XX: Convert QT2410 board file to the gpiolib API 2012-07-13 18:04:50 +09:00
mach-rx1950.c ARM: S3C24XX: Remove unused GPIO definitions for port J 2012-07-13 18:05:29 +09:00
mach-rx3715.c
mach-smdk2410.c
mach-smdk2413.c
mach-smdk2416.c ARM: Samsung: Rework platform data of s3c-fb driver 2012-04-09 16:11:24 +00:00
mach-smdk2440.c
mach-smdk2443.c
mach-tct_hammer.c ARM: S3C24XX: Use common macro to define resources on mach-tct_hammer.c 2012-05-12 16:12:25 +09:00
mach-vr1000.c ARM: S3C24XX: Use common macro to define resources on mach-vr1000.c 2012-05-12 16:12:25 +09:00
mach-vstms.c
Makefile arm-soc: soc specific changes, part 2 2012-05-26 13:05:55 -07:00
Makefile.boot
pm-h1940.S
pm-s3c2410.c ARM: S3C24XX: Convert the PM code to gpiolib API 2012-07-13 18:05:00 +09:00
pm-s3c2412.c ARM: S3C24XX: Remove unused GPIO definitions for port J 2012-07-13 18:05:29 +09:00
pm-s3c2416.c
pm.c ARM: S3C24XX: move common power-management code to mach-s3c24xx 2012-05-12 16:22:18 +09:00
s3c244x.c ARM: S3C24XX: Remove unused GPIO definitions for port J 2012-07-13 18:05:29 +09:00
s3c2410.c
s3c2412.c ARM: S3C24XX: Remove unused GPIO definitions for port J 2012-07-13 18:05:29 +09:00
s3c2416.c ARM: S3C24XX: add support for second irq set of S3C2416 2012-05-20 03:05:04 +09:00
s3c2440.c
s3c2442.c
s3c2443.c
setup-i2c.c
setup-sdhci-gpio.c
setup-spi.c ARM: SAMSUNG: Remove pdev pointer parameter from spi gpio setup functions 2012-07-13 15:23:46 +09:00
setup-ts.c ARM: S3C24XX: Convert the touchscreen setup code to common GPIO API 2012-07-13 18:05:05 +09:00
simtec-audio.c
simtec-nor.c ARM: S3C24XX: Use common macro to define resources on simtec-nor.c 2012-05-12 16:12:25 +09:00
simtec-pm.c
simtec-usb.c ARM: s3c24xx: fix multiple section mismatch warnings 2012-10-07 10:33:06 +02:00
simtec.h
sleep-s3c2410.S
sleep-s3c2412.S
sleep.S ARM: S3C24XX: move common power-management code to mach-s3c24xx 2012-05-12 16:22:18 +09:00