public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/11] ARM: cam60: move cam60_spi_devices to .init.data
@ 2010-07-23 19:58 Uwe Kleine-König
  2010-07-23 19:58 ` [PATCH 02/11] ARM: kirkwood: move qnap_tsx1x_register_flash() to .init.text Uwe Kleine-König
                   ` (11 more replies)
  0 siblings, 12 replies; 20+ messages in thread
From: Uwe Kleine-König @ 2010-07-23 19:58 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Russell King, Uwe Kleine-König, Samuel R. C. Vale,
	Jiri Kosina, Andrew Victor, linux-kernel

cam60_spi_devices is passed to at91_add_device_spi which calls
spi_register_board_info.  The latter makes a copy of it, so living in
.init.data is OK.

This fixes the following warning in cam60_defconfig:
	WARNING: vmlinux.o(.data+0x2a00): Section mismatch in reference from the variable cam60_spi_devices to the (unknown reference) .init.data:(unknown)
	The variable cam60_spi_devices references
	the (unknown reference) __initdata (unknown)
	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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 arch/arm/mach-at91/board-cam60.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-at91/board-cam60.c b/arch/arm/mach-at91/board-cam60.c
index 02138af..05c7072 100644
--- a/arch/arm/mach-at91/board-cam60.c
+++ b/arch/arm/mach-at91/board-cam60.c
@@ -98,14 +98,14 @@ static struct mtd_partition __initdata cam60_spi_partitions[] = {
 	},
 };
 
-static struct flash_platform_data __initdata cam60_spi_flash_platform_data = {
+static struct flash_platform_data cam60_spi_flash_platform_data __initdata = {
 	.name		= "spi_flash",
 	.parts		= cam60_spi_partitions,
 	.nr_parts	= ARRAY_SIZE(cam60_spi_partitions)
 };
 #endif
 
-static struct spi_board_info cam60_spi_devices[] = {
+static struct spi_board_info cam60_spi_devices[] __initdata = {
 #if defined(CONFIG_MTD_DATAFLASH)
 	{	/* DataFlash chip */
 		.modalias	= "mtd_dataflash",
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2010-08-05 14:08 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-23 19:58 [PATCH 01/11] ARM: cam60: move cam60_spi_devices to .init.data Uwe Kleine-König
2010-07-23 19:58 ` [PATCH 02/11] ARM: kirkwood: move qnap_tsx1x_register_flash() to .init.text Uwe Kleine-König
2010-07-24  2:37   ` Nicolas Pitre
2010-07-23 19:58 ` [PATCH 03/11] ARM: sa1111: move __sa1111_probe() to .devinit.text Uwe Kleine-König
2010-07-23 20:23   ` Kristoffer Ericson
2010-07-23 19:58 ` [PATCH 04/11] ARM: omap: move omap_init_fb to .init.text Uwe Kleine-König
2010-07-23 19:58 ` [PATCH 05/11] ARM: omap1: nokia770: move mipid_dev_init() " Uwe Kleine-König
2010-07-23 19:58 ` [PATCH 06/11] ARM: omap: move omapfb_reserve_sdram() " Uwe Kleine-König
2010-07-23 21:15   ` Russell King - ARM Linux
2010-07-24  8:51     ` Uwe Kleine-König
2010-07-23 19:58 ` [PATCH 07/11] ARM: omap: move omapfb_reserve_sram() " Uwe Kleine-König
2010-07-23 21:15   ` Russell King - ARM Linux
2010-07-23 19:58 ` [PATCH 08/11] ARM: omap: move get_fbmem_region() " Uwe Kleine-König
2010-07-23 21:16   ` Russell King - ARM Linux
2010-07-23 19:58 ` [PATCH 09/11] ARM: omap: move omap_get_config et al. " Uwe Kleine-König
2010-07-23 19:58 ` [PATCH 10/11] wip: ARM: omap: move omap_board_config_kernel to .init.data Uwe Kleine-König
2010-07-23 19:58 ` [PATCH 11/11] ARM: omap: ams-delta: move config " Uwe Kleine-König
2010-08-01 21:23 ` [PATCH 01/11] ARM: cam60: move cam60_spi_devices " avictor.za
2010-08-02  5:26   ` Uwe Kleine-König
2010-08-05 14:08 ` [PATCH 00/19] More section fixes [Was: Re: [PATCH 01/11] ARM: cam60: move cam60_spi_devices to .init.data] Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox