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: 12076 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id F1C5723F6D for ; Tue, 9 Oct 2012 15:34:31 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 90AE1A18CED for ; Tue, 9 Oct 2012 15:34:31 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so11504949iej.11 for ; Tue, 09 Oct 2012 08:34:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=NeyRz8FXJfbXzVgk8xojW5d7ObdeCrX7pHXihcYcgig=; b=W+BBcpvh+nfExft2CFYCyDteB8FKblwdSkrgm5jueK0dKHqtGtl5urWbaU9ygcQjJJ r/+1mi8AyOkyEH21VInUOCucXzbD0aygg7lBr4wPpPWU3LFnxgjSylBaHVs5T71lupr3 doVSRMCdtUiQn8LCETr7sJ5Mlq1wepiSCWi7b9wAmUaDOdV6lGHl7luLuv1voN2egkA9 hI5VHvZsSQObCwS+4SBQQ32CeM3Hj7yjX/XT/bT6CJHeZQ/ke196aFmVg/iNzfuJBPdb NLXtRUWMB0KJ3BT1ph794Q4kXAhtRfDA/af+lNA/9GsT9u7VFhoAo9xg2rTpu1cb6Yb+ 2iBg== Received: by 10.50.91.195 with SMTP id cg3mr2072855igb.57.1349796871350; Tue, 09 Oct 2012 08:34:31 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp74673igt; Tue, 9 Oct 2012 08:34:30 -0700 (PDT) Received: by 10.216.99.199 with SMTP id x49mr4487751wef.171.1349796869958; Tue, 09 Oct 2012 08:34:29 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.17.10]) by mx.google.com with ESMTPS id p3si15412442wed.12.2012.10.09.08.34.29 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 09 Oct 2012 08:34:29 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.17.10 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.17.10; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.17.10 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , "Rafael J. Wysocki" , Magnus Damm , Simon Horman 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-Gm-Message-State: ALoCoQlwElqKxeL/3wJaPg2IGIRDtDmU91yT7+5RnhNeZTIUzy+KX3R05sSIQz1OLE/YjtXfbXJI 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();