Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2428091imj; Mon, 18 Feb 2019 05:56:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IZwRXNVN9uaUWh2IAO5/33qOUCj71Cm/qdrIdheZWhD/PO/+wfGCyqkpqCnZI9qnrf1XCz4 X-Received: by 2002:a17:902:112c:: with SMTP id d41mr25486103pla.177.1550498214217; Mon, 18 Feb 2019 05:56:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550498214; cv=none; d=google.com; s=arc-20160816; b=FFmnHKTOAPuNY5EeuMq/FzfzAntq0N+a1pCjowIqep2eK+BAHufoBhJkGmXQltmjwv b1Jzi1XrUNvNeG2R6DLCQP/uHzlgJQWf4RkTQ5Tixx54XBWPfg7ehSbCWmiLVvNNdWEQ jSAv8EOnHmrT+vE3j9pez9cokM26oARvMy0ZYVEM6T1h7PwhAFZK0e5r/HkBe27gloGS KcfRIl94akIcF/eCLAveLVezqYtzcSjLLyJNtVPhY2oP5VU1g3fIivpk/SYKm42hqfAd ZHY172la/PCfA8F8Rno6btDdaWf/g9U+FRRE8gYIpRGHh69o739ZVkPVmpUhyY9NNtO7 TZ9w== 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=S3dWPppdqSeHpljRGrRHjxz1nMAPcgd1Vtd5NQcpyIE=; b=nfYYlyuFItu9snW45CRCQ3UjlkDP+R44KUP1xq0rCIWX2RblC3/0Gzmd5pBVVNrgQW cVTSQIjcOvG7OKgB8biO9gaOIcK1u49iSlT3hgslAqVycCbUPyWXkWDT4jpchGsukWXG mhuBVRODRwvYhUt9znXTPL7Kos2y3JXwZTTDxsuZImkHS/1MWwNipidWF5ULewUStyUo xmRLE6V85smshI35ZLzYBXzAfpyKdrTfEhmubzrxze/9kYjC0xTsOcy8muErrcyKjpMs 0eSFw57tG1F50BtuNKDekgPH8AL2VTDK6Vk0/ADgTMXFIZ2GwRdKKSRej3GigPFia5nZ nGgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="vc/8+WA8"; 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 k3si11368991pll.57.2019.02.18.05.56.38; Mon, 18 Feb 2019 05:56:54 -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="vc/8+WA8"; 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 S1733246AbfBRNyi (ORCPT + 99 others); Mon, 18 Feb 2019 08:54:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:34496 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733216AbfBRNye (ORCPT ); Mon, 18 Feb 2019 08:54:34 -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 2D8D620842; Mon, 18 Feb 2019 13:54:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550498073; bh=RTmaaW17C+z+bw6LXEUQV+tsIqFn44mE/Qa+X6sH4Ds=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vc/8+WA83LCBzJcN3guvf8uxsm76WjIylK/AOYE5s2uTlhWQ3Tgx8EnwlIpE7c9uL Z0QUugllduypp+v+GBg2Oiy7g0CgKhUDRMzVOY5guipz4iiJleiMX/MIH0Bz97H5j5 AnT9qDFlF7aYVzIThh03mxQDLXk7hB3X3CTBmuPY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Julien Thierry , Russell King , "David A. Long" , Sasha Levin Subject: [PATCH 4.14 15/62] ARM: make lookup_processor_type() non-__init Date: Mon, 18 Feb 2019 14:43:21 +0100 Message-Id: <20190218133507.132127987@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190218133505.801423074@linuxfoundation.org> References: <20190218133505.801423074@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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. ------------------ 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 Reviewed-by: Julien Thierry Tested-by: Julien Thierry 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.19.1