]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00213997: Fix Section Mismatch warning
authorRobby Cai <R63905@freescale.com>
Mon, 18 Jun 2012 11:46:41 +0000 (19:46 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:50 +0000 (08:34 +0200)
commitada93ff6e8c40cf19db9e0011449403b16b7714f
tree517d240f9527481f9fab3f1b28db64a81f00343f
parent757d06a3fecef10be4b559a1d7d9b0ef265fdc37
ENGR00213997: Fix Section Mismatch warning

Fix:
WARNING: vmlinux.o(.data+0x8c28): Section mismatch in reference from the
variable mx6_gpmi_nand_platform_data to the function
.init.text:gpmi_nand_platform_init()
The variable mx6_gpmi_nand_platform_data references
the function __init gpmi_nand_platform_init()
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

Signed-off-by: Robby Cai <R63905@freescale.com>
arch/arm/mach-mx6/board-mx6q_arm2.c