From patchwork Tue Oct 9 15:34:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 1570561 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id B49C640135 for ; Tue, 9 Oct 2012 15:36:44 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TLbpZ-00016Y-3X; Tue, 09 Oct 2012 15:34:49 +0000 Received: from moutng.kundenserver.de ([212.227.17.10]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TLbpL-000151-2Z for linux-arm-kernel@lists.infradead.org; Tue, 09 Oct 2012 15:34:36 +0000 Received: from klappe2.boeblingen.de.ibm.com (deibp9eh1--blueice3n2.emea.ibm.com [195.212.29.180]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MeOeR-1T1UdE2MbX-00Q9Yt; Tue, 09 Oct 2012 17:34:23 +0200 From: Arnd Bergmann To: arm@kernel.org Subject: [PATCH 1/3] ARM: shmobile: mark shmobile_init_late as __init Date: Tue, 9 Oct 2012 17:34:19 +0200 Message-Id: <1349796861-31164-2-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1349796861-31164-1-git-send-email-arnd@arndb.de> References: <1349796861-31164-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:FpiJ9vM4l0whjZtL0NW2RuCCmQmvWh7Ms/CNlD8dxOW 6GRlttO2q/4rRK4gw46pPAbP5Jkv+9Oceji07tOhU2dG7haOZJ MtVUUb1kxDFnrXhtF9rxSLmism4D8Ns47PeE0SISIMREdQOfON /VqilhurigJ9v5oRe/Wwxydwr2sa3TYXuPCkpcn8UgFjHzd3Cl j0JwMAE8iPIyBEbNFr9o/+/zuojBguUjLzsu7vfbZEL3MzFkJu v/cE83yyj6nwSbaAmYag3qds104TTxC/2M4yVS1xM6QjP0s0C8 FmVj6ow5Ae/iEbxhirAPH8hEY4ewPu9pqMK6FwLi9dzNSVZzjO hZVcZOzGo2EkxhbQfPLh32DX7ahmrwlVCVLiga5bnquqxjC9RA CNgWzDxSFop1Z0EwiGm0vUD1MGv0TI38IU= X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.17.10 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Magnus Damm , Simon Horman , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Patch 35f2b0bd59 "ARM: shmobile: Move definition of shmobile_init_late() to header" moved the definition of the shmobile_init_late function, but dropped the __init annotation, which is now causing warnings because the function calls shmobile_suspend_init, which is also marked init. Without this patch, building kota2_defconfig results in: WARNING: vmlinux.o(.text+0xb7c8): Section mismatch in reference from the function shmobile_init_late() to the function .init.text:shmobile_suspend_init() The function shmobile_init_late() references the function __init shmobile_suspend_init(). This is often because shmobile_init_late lacks a __init annotation or the annotation of shmobile_suspend_init is wrong. Signed-off-by: Arnd Bergmann Cc: Rafael J. Wysocki Cc: Magnus Damm Cc: Simon Horman --- arch/arm/mach-shmobile/include/mach/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-shmobile/include/mach/common.h b/arch/arm/mach-shmobile/include/mach/common.h index ed77ab8..d47e215 100644 --- a/arch/arm/mach-shmobile/include/mach/common.h +++ b/arch/arm/mach-shmobile/include/mach/common.h @@ -100,7 +100,7 @@ static inline int shmobile_cpu_is_dead(unsigned int cpu) { return 1; } extern void shmobile_smp_init_cpus(unsigned int ncores); -static inline void shmobile_init_late(void) +static inline void __init shmobile_init_late(void) { shmobile_suspend_init(); shmobile_cpuidle_init();