Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1087741imj; Thu, 14 Feb 2019 00:45:48 -0800 (PST) X-Google-Smtp-Source: AHgI3Iba5ZFogZ+jN6uLsHbENpLVjNGD/YqkqauEMJSynFZ1Rg9UvFxGU2p9RUAWcWJB9rTryuyU X-Received: by 2002:a63:1e12:: with SMTP id e18mr2712107pge.76.1550133948496; Thu, 14 Feb 2019 00:45:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550133948; cv=none; d=google.com; s=arc-20160816; b=v4Hg37E9DGQk76jBkoXXXIHIOAbtTuviE5HVIhe4Rq+pE2A5Te4A/b9DGiajs61h6a lvheut0IeCqaDgIpQTHZ1AA9vDHmH9sQNoIRThjbufYByAmRPdJfxAd6nssuC1/osEH4 yYQ3CqFJw0t8euqt5KhABto8XpiJtXpZO7plV2Di+CMWDiTr3aHPcKvuD+6wAqA8TXik 5XGewKSac63is2BKeMryywurKwnVVVJpgHCJYCJBPdryT+tPSYOM7B/6Uyc6R9kdhfIU OyMMxAGKtiPzubi6CaxyqV1N5ufIHfBCvawoCcBJI2ASthrAUl/JjUX6PuW0TgOART73 Ue2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=V7lJaSOHNBHQZSETMFK/nyiszapRsFtwkzZBpnv7tGA=; b=DWYXPjxdcmXzWCSpcK4JdCqVebPVyV8BJ7MDEnzdvWhMr4s7BCiYUWQam6TlLjyN5J uvVZu8Ohz/XBX/0gll1SO2uD0PdY/QULDhnTj5wk0chMpg3pj6zh1bIhDS7sCPsOuGdM ptqUSZHgTQFccRSonNkZbDGyAuI7QJzntWTG4J1gHuBw8ZT3qLE0+yqFUAtI6Wow05LV VOduAG8rL6TPC5imn17HtoS23iUotLlXTSqUgqmxbfG2SuEP2+3W8pVaDM+5ayhrncDm t2vWLT5SIkRXlHWcyb6daZrs+U0Ax45QLmyA65bWvhA69HHPxh1Oy7WV9XamCxyhEXMn GBfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s1XmvoAF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7si1601732pgs.304.2019.02.14.00.45.32; Thu, 14 Feb 2019 00:45:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s1XmvoAF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436818AbfBMVcr (ORCPT + 99 others); Wed, 13 Feb 2019 16:32:47 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:44622 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436778AbfBMVcm (ORCPT ); Wed, 13 Feb 2019 16:32:42 -0500 Received: by mail-qt1-f193.google.com with SMTP id n32so4421825qte.11 for ; Wed, 13 Feb 2019 13:32:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=V7lJaSOHNBHQZSETMFK/nyiszapRsFtwkzZBpnv7tGA=; b=s1XmvoAFbRCLC+JYLNPmrgNi+JssmEFKTHIZcbM99ZzHvaXiWEfPcFsaMjA+RPq43B yczPxj7RcP711w57TAUQz4xYaaSoh0jVfFOx6j2h1wb4wNsihK7IHdINuM4acN3EumDB xIj6RHmwbyX+CFsVaTCtf0PC03jDYm/FDu7TgzxZgcUaUr3QU9/UcllBOO+cDWOB7VOP 62n+djXEWgqrMCOz8Grqx0dZmARAqSalkajlxcHnsSHtoZugHfU/WH9gSkJ0qxHixc9l 0T6lAt8LTTdgMcPw+qKCJ6Za9zyampaPTnUb/ld8J4oChpEd9cDInVVeD5I4/8FNAnDm VTJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=V7lJaSOHNBHQZSETMFK/nyiszapRsFtwkzZBpnv7tGA=; b=Dpi/c7X/FwV/j/BFEMUp8Du4C1FZ2Ja0tRc7DKQsLy+v6O26vSO/AqqXgjRU0B51ZD jcXxZSf6lELpinq3EXnEvKKRH1yFRGWwPH8Ddvs3lzcCf4Ie7jtYJczTFutK+MXHqoWB g246Q/8dYxn1ELlGnx+2F2L5d+O72IT8qQp/UU7VT+/FzlOlPdv2F0yIvyZG+lCDUuCT vynhZ1Os1oSNB4TcYR1YncdH8RJYXKsx0+DoBUrKVv4TLMRKP+7VoL+k8LvliJ/jDv97 VahHtfgTnPGOAj980y0HNnfYcpIV3pyUtLwq1AN8WeTU3Du5W2yjnGOYYd61YSY03evy 4TrQ== X-Gm-Message-State: AHQUAuYOlLpANRit7pp28u3x9FJTvyZYXSjJG3m0+rEaRz+yAYbZlV3d W8Bd5E4+TkegRU4tPMWqVBfu6w== X-Received: by 2002:a0c:d90b:: with SMTP id p11mr245177qvj.140.1550093560912; Wed, 13 Feb 2019 13:32:40 -0800 (PST) Received: from localhost.localdomain (pool-72-71-243-63.cncdnh.fast00.myfairpoint.net. [72.71.243.63]) by smtp.googlemail.com with ESMTPSA id 8sm382675qtr.7.2019.02.13.13.32.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 13:32:40 -0800 (PST) From: David Long To: stable@vger.kernel.org, Russell King - ARM Linux , Florian Fainelli , Julien Thierry , Tony Lindgren , Marc Zyngier , Greg KH , Mark Rutland Cc: Will Deacon , Mark Brown , linux-kernel@vger.kernel.org Subject: [PATCH 4.19 11/17] ARM: make lookup_processor_type() non-__init Date: Wed, 13 Feb 2019 16:32:17 -0500 Message-Id: <20190213213223.916-12-dave.long@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190213213223.916-1-dave.long@linaro.org> References: <20190213213223.916-1-dave.long@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Russell King Commit 899a42f836678a595f7d2bc36a5a0c2b03d08cbc upstream. Move lookup_processor_type() out of the __init section so it is callable from (eg) the secondary startup code during hotplug. Reviewed-by: Julien Thierry Signed-off-by: Russell King Signed-off-by: David A. Long --- arch/arm/kernel/head-common.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/kernel/head-common.S b/arch/arm/kernel/head-common.S index 6e0375e7db05..997b02302c31 100644 --- a/arch/arm/kernel/head-common.S +++ b/arch/arm/kernel/head-common.S @@ -145,6 +145,9 @@ __mmap_switched_data: #endif .size __mmap_switched_data, . - __mmap_switched_data + __FINIT + .text + /* * This provides a C-API version of __lookup_processor_type */ @@ -156,9 +159,6 @@ ENTRY(lookup_processor_type) ldmfd sp!, {r4 - r6, r9, pc} ENDPROC(lookup_processor_type) - __FINIT - .text - /* * Read processor ID register (CP#15, CR0), and look up in the linker-built * supported processor list. Note that we can't use the absolute addresses -- 2.17.1