From: Arnd Bergmann Date: Fri, 25 Jan 2013 14:14:20 +0000 (+0000) Subject: ARM: msm: proc_comm_boot_wait should not be __init X-Git-Tag: v3.9-rc1~123^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=389d2111f43ca8cd5344b6ba9ab7bd5902bdd5f0;p=pandora-kernel.git ARM: msm: proc_comm_boot_wait should not be __init msm_smd_probe is a driver probe function and may get called after the __init time, so it must not call any __init function, as the link-time warning reports. Take away the __init annotation on proc_comm_boot_wait to fix this. Without this patch, building msm_defconfig results in: WARNING: vmlinux.o(.text+0xb048): Section mismatch in reference from the function msm_smd_probe() to the function .init.text:proc_comm_boot_wait() The function msm_smd_probe() references the function __init proc_comm_boot_wait(). This is often because msm_smd_probe lacks a __init annotation or the annotation of proc_comm_boot_wait is wrong. Signed-off-by: Arnd Bergmann Cc: Bryan Huntsman Cc: Daniel Walker Cc: linux-arm-msm@vger.kernel.org Acked-by: David Brown Signed-off-by: Olof Johansson --- Reading git-diff-tree failed