From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 88172C3A59F for ; Thu, 29 Aug 2019 10:54:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 56307233FF for ; Thu, 29 Aug 2019 10:54:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567076092; bh=p4XbHmGquO+XPI2lS2G5MVNWIYEvGMf8wiVJuyyJXhw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=SC1zJDDG0NX/fXRzHy4Ixn8kqjP75amfl8NKCLg2o9WhIsehVBct6Ol1vmkLa9ndQ +MTjEhhfTW/zpRv8KfBytkGj7h5rw0moha8xWsaFab1pu/v89ng6nHtHUtkZgyKbn6 e/F/lKYPdRXaxXYXuQOySr559Rp6ILBLWNl4PO6k= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727421AbfH2Kyv (ORCPT ); Thu, 29 Aug 2019 06:54:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:57668 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727891AbfH2KuY (ORCPT ); Thu, 29 Aug 2019 06:50:24 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BC1592173E; Thu, 29 Aug 2019 10:50:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567075823; bh=p4XbHmGquO+XPI2lS2G5MVNWIYEvGMf8wiVJuyyJXhw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FkEv2BtDH0/Uwd/9nhyq9eYwoY8pur+wTkBUJw+cSJ5W2cjVIMK+14rLKO7hGyKlo P2QsnoqAfLX1ivKvvquyGuD1lvvLD5UqAxYJwQNBlVntM9uEzUThvD/bWQWEWK7K5S XuEFFk2/BNMo24P2QZzaC7rzyNoGOz4Gck7keefE= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Christophe Leroy , Russell Currey , Michael Ellerman , Sasha Levin , linuxppc-dev@lists.ozlabs.org Subject: [PATCH AUTOSEL 4.19 12/29] powerpc/64: mark start_here_multiplatform as __ref Date: Thu, 29 Aug 2019 06:49:52 -0400 Message-Id: <20190829105009.2265-12-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190829105009.2265-1-sashal@kernel.org> References: <20190829105009.2265-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Christophe Leroy [ Upstream commit 9c4e4c90ec24652921e31e9551fcaedc26eec86d ] Otherwise, the following warning is encountered: WARNING: vmlinux.o(.text+0x3dc6): Section mismatch in reference from the variable start_here_multiplatform to the function .init.text:.early_setup() The function start_here_multiplatform() references the function __init .early_setup(). This is often because start_here_multiplatform lacks a __init annotation or the annotation of .early_setup is wrong. Fixes: 56c46bba9bbf ("powerpc/64: Fix booting large kernels with STRICT_KERNEL_RWX") Cc: Russell Currey Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/kernel/head_64.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S index 9168a247e24ff..3fb564f3e8874 100644 --- a/arch/powerpc/kernel/head_64.S +++ b/arch/powerpc/kernel/head_64.S @@ -906,6 +906,7 @@ p_toc: .8byte __toc_start + 0x8000 - 0b /* * This is where the main kernel code starts. */ +__REF start_here_multiplatform: /* set up the TOC */ bl relative_toc @@ -981,6 +982,7 @@ start_here_multiplatform: RFI b . /* prevent speculative execution */ + .previous /* This is where all platforms converge execution */ start_here_common: -- 2.20.1