Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2571754imu; Thu, 29 Nov 2018 07:04:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wf+PwXX7oBkJYXuin9sVExWeb2NR1wsZ61lWTCsLJNMy6/0uRXP1Z+oTFAXBHOSKDmPbys X-Received: by 2002:a17:902:3383:: with SMTP id b3mr1776088plc.170.1543503883831; Thu, 29 Nov 2018 07:04:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543503883; cv=none; d=google.com; s=arc-20160816; b=iBjAhttMxMELAaSD/F42tt+jK2lDXNfMI7bSj3NauX9qcKj8PQalxLWmuTfNTswFnO Y+m+hvCIGLVdy2ORsjFyS2bspJaZiwchx2NHIOwED3j5jrJlbAJTRM9zVqz7/1YlVvLB wedt5br8szfqe25bRHZpfYKkERnECPyNs20Iep1sFgje5Mmj6b25J2zYMsHIpPx44AfB 4zgEyciTXjOcUPuqusYvr9qVDtL495q/KQc9p531IgGLgihibwB8bmk/39PwIHfKeJRD M6FeybCr1v38FrZvFPZ3v8e7x2s6GRrDAyoi5XYyxmVBaUM9BfUD766XoGQNjqVwzTZs gXXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WwBK+b67IHRi6xgVmhBRQtJ8XiVoojGIWTP6bwvAAUY=; b=YldjBUujb+xbwnScdJgBqE/Wnrpw1gJtFKcZEwPthSeV8p2HArcqNlcjqrOlVCftV5 DWalnTwLe+e2W44TADR1SkvuCeI9O394m8pZohU5B/PJnXPIPgFu5+RMTx2mcy8m9ier Fmu5+d7/lMakaByUzrW4VX52y7f466ner8kJPSIkfAgd3lDS5cJQFmdVil3/YednwBPe eOpg2VhiJavH0Q8MGhe1NKI1AyO57lk8rn6ILULx+Hq3eHcaDpqocKY9GAtkhJgWyFvc 51U7RbaoyWx5TL+Zq42oa30TMby0QbmwydqBmYtI9rj4ANJ20Q4nOm5C79LOPeAp8+kq KDyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=l96HAnQf; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r27si2064691pgl.494.2018.11.29.07.04.28; Thu, 29 Nov 2018 07:04:43 -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=@kernel.org header.s=default header.b=l96HAnQf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730390AbeK3BW6 (ORCPT + 99 others); Thu, 29 Nov 2018 20:22:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:44826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728439AbeK3BW4 (ORCPT ); Thu, 29 Nov 2018 20:22:56 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E513321104; Thu, 29 Nov 2018 14:17:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501046; bh=wCpN+wsH6GyQHtTPnkMOVtPAzB1+H+a3CiXqRGt2Quk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l96HAnQfkYUrxpDH9mxrpF/vIV0c4uJECJ9H24Kt72IXlP8O3F2gA2VOtzbff9K3T /7q4p/szSLYLkYc/cHyzviN4MTyuZ0a2Ju8iXV68TrW04zjyA2c1dKD8F/AZWHsdvH gt+CcXKM0d0QYA5Q5uMXuEc3WI1XifwdzVPgwovQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Julien Thierry , Russell King , Sasha Levin Subject: [PATCH 4.4 20/86] ARM: make lookup_processor_type() non-__init Date: Thu, 29 Nov 2018 15:11:45 +0100 Message-Id: <20181129140111.518077870@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140109.832117862@linuxfoundation.org> References: <20181129140109.832117862@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 899a42f836678a595f7d2bc36a5a0c2b03d08cbc ] 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: Sasha Levin --- 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 8733012d231f..7e662bdd5cb3 100644 --- a/arch/arm/kernel/head-common.S +++ b/arch/arm/kernel/head-common.S @@ -122,6 +122,9 @@ __mmap_switched_data: .long init_thread_union + THREAD_START_SP @ sp .size __mmap_switched_data, . - __mmap_switched_data + __FINIT + .text + /* * This provides a C-API version of __lookup_processor_type */ @@ -133,9 +136,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