From: Uwe Kleine-König Date: Sat, 24 Jul 2010 08:53:20 +0000 (+0100) Subject: ARM: 6265/1: kirkwood: move qnap_tsx1x_register_flash() to .init.text X-Git-Tag: v2.6.35~34^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9578fc07832ee8db8b0fbde489e00ad35452ac9;p=pandora-kernel.git ARM: 6265/1: kirkwood: move qnap_tsx1x_register_flash() to .init.text qnap_tsx1x_register_flash is only called by qnap_ts219_init and qnap_ts41x_init which both live in .init.text, too. So the move is OK. This fixes the following warning in kirkwood_defconfig: WARNING: vmlinux.o(.text+0x9334): Section mismatch in reference from the function qnap_tsx1x_register_flash() to the variable .init.data:qnap_tsx1x_spi_slave_info The function qnap_tsx1x_register_flash() references the variable __initdata qnap_tsx1x_spi_slave_info. This is often because qnap_tsx1x_register_flash lacks a __initdata annotation or the annotation of qnap_tsx1x_spi_slave_info is wrong. Signed-off-by: Uwe Kleine-König Acked-by: Nicolas Pitre Signed-off-by: Russell King --- Reading git-diff-tree failed