From patchwork Tue Jun 14 13:28:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Bishara X-Patchwork-Id: 879042 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5EDTWZB017411 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 14 Jun 2011 13:29:53 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QWTgE-0006mb-I5; Tue, 14 Jun 2011 13:29:18 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QWTgE-0004jO-4i; Tue, 14 Jun 2011 13:29:18 +0000 Received: from dakia2.marvell.com ([65.219.4.35]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QWTgB-0004j5-6O for linux-arm-kernel@lists.infradead.org; Tue, 14 Jun 2011 13:29:15 +0000 X-ASG-Debug-ID: 1308058151-082c7a420001-tbGyMd Received: from maili.marvell.com (maili.marvell.com [10.68.76.51]) by dakia2.marvell.com with ESMTP id vdKBNg3JZubswiwO for ; Tue, 14 Jun 2011 06:29:11 -0700 (PDT) X-Barracuda-Envelope-From: saeed@marvell.com Received: from saeed-OptiPlex-780.il.marvell.com (unknown [10.4.50.32]) by maili.marvell.com (Postfix) with ESMTP id 729068A002; Tue, 14 Jun 2011 06:29:10 -0700 (PDT) From: Saeed Bishara To: linux-arm-kernel@lists.infradead.org X-ASG-Orig-Subj: [PATCH] ARM: realview, vexpress: fix section mismatch from platform_cpu_die() to pen_release Subject: [PATCH] ARM: realview, vexpress: fix section mismatch from platform_cpu_die() to pen_release Date: Tue, 14 Jun 2011 16:28:52 +0300 X-ASG-Orig-Subj: [PATCH] ARM: realview, vexpress: fix section mismatch from platform_cpu_die() to pen_release Message-Id: <1308058132-32058-1-git-send-email-saeed@marvell.com> X-Mailer: git-send-email 1.7.4.1 X-Barracuda-Connect: maili.marvell.com[10.68.76.51] X-Barracuda-Start-Time: 1308058151 X-Barracuda-URL: http://10.68.76.222:80/cgi-mod/mark.cgi X-Barracuda-Spam-Score: -1002.00 X-Barracuda-Spam-Status: No, SCORE=-1002.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1000.0 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110614_092915_440222_5A720646 X-CRM114-Status: GOOD ( 19.32 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain Cc: Saeed Bishara X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 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 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 14 Jun 2011 13:29:53 +0000 (UTC) This patch fixes the following false section mismatch warning, this function used only in CONFIG_HOTPLUG_CPU, and in this configuration, the cpuinit section will not be freed, so it's ok to reference pen_release. WARNING: vmlinux.o(.text+0x12484): Section mismatch in reference from the function platform_cpu_die() to the variable .cpuinit.data:pen_release The function platform_cpu_die() references the variable __cpuinitdata pen_release. This is often because platform_cpu_die lacks a __cpuinitdata annotation or the annotation of pen_release is wrong. Signed-off-by: Saeed Bishara --- arch/arm/mach-realview/hotplug.c | 2 +- arch/arm/mach-vexpress/hotplug.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-realview/hotplug.c b/arch/arm/mach-realview/hotplug.c index a87523d..44841c6 100644 --- a/arch/arm/mach-realview/hotplug.c +++ b/arch/arm/mach-realview/hotplug.c @@ -97,7 +97,7 @@ int platform_cpu_kill(unsigned int cpu) * * Called with IRQs disabled */ -void platform_cpu_die(unsigned int cpu) +void __ref platform_cpu_die(unsigned int cpu) { int spurious = 0; diff --git a/arch/arm/mach-vexpress/hotplug.c b/arch/arm/mach-vexpress/hotplug.c index ea4cbfb..0436fcf 100644 --- a/arch/arm/mach-vexpress/hotplug.c +++ b/arch/arm/mach-vexpress/hotplug.c @@ -98,7 +98,7 @@ int platform_cpu_kill(unsigned int cpu) * * Called with IRQs disabled */ -void platform_cpu_die(unsigned int cpu) +void __ref platform_cpu_die(unsigned int cpu) { int spurious = 0;