Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756816Ab3GEVds (ORCPT ); Fri, 5 Jul 2013 17:33:48 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:35796 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752274Ab3GEVdr (ORCPT ); Fri, 5 Jul 2013 17:33:47 -0400 Date: Fri, 5 Jul 2013 22:32:15 +0100 From: Russell King - ARM Linux To: Stephen Warren Cc: Paul Gortmaker , Will Deacon , Joseph Lo , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, Stephen Warren Subject: Re: [PATCH V3] ARM: add missing linker section markup to head-common.S Message-ID: <20130705213214.GK24642@n2100.arm.linux.org.uk> References: <1373047855-24145-1-git-send-email-swarren@wwwdotorg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1373047855-24145-1-git-send-email-swarren@wwwdotorg.org> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1514 Lines: 31 On Fri, Jul 05, 2013 at 12:10:55PM -0600, Stephen Warren wrote: > From: Stephen Warren > > Macro __INIT is used to place various code in head-common.S into the init > section. This should be matched by a closing __FINIT. Also, add an > explicit ".text" to ensure subsequent code is placed into the correct > section; __FINIT is simply a closing marker to match __INIT and doesn't > guarantee to revert to .text. > > This historically caused no problem, because macro __CPUINIT was used at > the exact location where __FINIT was missing, which then placed following > code into the cpuinit section. However, with commit 22f0a2736 "init.h: > remove __cpuinit sections from the kernel" applied, __CPUINIT becomes a > no-op, thus leaving all this code in the init section, rather than the > regular text section. This caused issues such as secondary CPU boot > failures or crashes. > > Signed-off-by: Stephen Warren > Acked-by: Paul Gortmaker > --- > v3: Added .text after __FINIT to force the correct section. > v2: Moved __FINIT after lookup_processor_type, to correctly match the > location of __CPUINIT. Much better, thanks. Please put it in the patch system and I'll send it along, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/