Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2532085imu; Thu, 29 Nov 2018 06:30:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/XBlhfsv5gGt28zhDGMJV23vNgKXG4M9lDw1oqiGlE3LVi82ZgY9+YmB9VjWDTodadNqHFc X-Received: by 2002:a65:5088:: with SMTP id r8mr1372029pgp.15.1543501806494; Thu, 29 Nov 2018 06:30:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543501806; cv=none; d=google.com; s=arc-20160816; b=ILXX4FlwPgJAt6E4ccbH7A7iMmqoBphjivj+5C/0gxhhzjKr9U3NMp/l3ryexgq/Lz pKGm2LjQdqystG/lBAKxGUX8OG9bFfEVsWUvgw6w/5IrPEZ0UG3TrocGq1sMprUccVOA bF+upnGuu1bL9F3wbs5Q0quCOJnASHac/zQA4yjAY6S+sN9LUXz4Wp2gfnooyMfAi66H 5Jn4gHHH9tgw+BHuJ77ZPzEEiDwr9eOgKjVmruIt740KYQ1IpG4fvY0PP6osLErLL4wZ s8HMsw1qalyYntyWKAKWIk68Lr9+3cTVXvrZncGi46yv1lk/sCxmnfzyzyvEWggcDfck N5hQ== 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=2Gs+Up3jDY51KfL2YDWcB9ezDwZngOjki3Euih+bsmE=; b=MO8+2rT147Oc8RaGli0UB6kXD7QYF8GHsXANy4hyFmoqvoD0U1yr1G52Jl6bRS3Iw5 hqzxGK/Wn4UlB+No+VJtsuAnC6YLbX/bq0xNokDLc9Pt7mtrlvaMTuGNLmzjumiDLoPS U/0qd9VvnwLAULKZ6Pd9U87kZ57wLxLbW08HKgCfuUYN0hSu5vYx+pHOJgiH+qM25Hqp WfNV+MLV+sWQfmBlFm1saA+Kv6RuYPxr4DQm06W8odjiwR8zUwrTNyM+u7v5eonAq6Gm ihzSAaVixTLWHDIutGTTUeA8TVklH+A0bWzMyiXpOeWw4XDXaSVPfpSxu4GmewJCSqXl iAVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qkFzdMZK; 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 f189si2224932pfg.123.2018.11.29.06.29.50; Thu, 29 Nov 2018 06:30:06 -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=qkFzdMZK; 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 S2387769AbeK3BdK (ORCPT + 99 others); Thu, 29 Nov 2018 20:33:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:33600 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731824AbeK3BdJ (ORCPT ); Thu, 29 Nov 2018 20:33:09 -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 6CED92133F; Thu, 29 Nov 2018 14:27:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501656; bh=kgEqI+zF6GRNF9kpTfCH2uleakooyQPseAb6eGHlVro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qkFzdMZKsPTDs6yu5Hd1vzxT/xAlz48hwJ1/uPSt8CdYyBanWxc2xV+4ymtm3JUud 2QO8NM6Aok+v1ZeEOozLzmjiVtvdYh4gxYQLoEtr1rcvQLcWHEubHKhMli4VlrasQN EeHML7K/K4lZ+uMHPrfb/Z3e3UzzQALO7zJuqtnQ= 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.14 054/100] ARM: make lookup_processor_type() non-__init Date: Thu, 29 Nov 2018 15:12:24 +0100 Message-Id: <20181129140103.833952255@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140058.768942700@linuxfoundation.org> References: <20181129140058.768942700@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.14-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