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=ham 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 ED7FBC3A5A3 for ; Thu, 29 Aug 2019 10:53:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B525B2053B for ; Thu, 29 Aug 2019 10:53:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567076003; bh=ZlNBSvxOBubH0FyO6ewgPXm4xdY2h/Z/C2aqRYjt77Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=QfwivtTe+8p8lJCkKD9ZirOL+eQE5Pooo294FftaMLPEYh3j7euYoP1khvHDH3iSb r8ES/0zzGwccgFamNjxcmFuKuXH0HHtk1nntXRaFCnM1FBN0xJDrQaJMFoWOt676xX R8X4CwjMkg4g54sGifkZwsHkUO793I4abjS+T+rc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728332AbfH2KxW (ORCPT ); Thu, 29 Aug 2019 06:53:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:58378 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728300AbfH2Kuw (ORCPT ); Thu, 29 Aug 2019 06:50:52 -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 4A94E23403; Thu, 29 Aug 2019 10:50:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567075851; bh=ZlNBSvxOBubH0FyO6ewgPXm4xdY2h/Z/C2aqRYjt77Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MOgPTqyiCiW0SyuGqC25voDdnPhYC76sBsc5fNdqVbjKu4ubh8/5qRYqFj2jmJ0pA tfrl1rZup3ivBrWEZaeWp2tR+WFKWszxp+ijLzJ5G5+eGpdhGFtgGz/iEBduxYDLua YyJayPIp5ZNux6aru87mgTS9fY2w9Fo3l6FuSVPs= 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.14 06/14] powerpc/64: mark start_here_multiplatform as __ref Date: Thu, 29 Aug 2019 06:50:35 -0400 Message-Id: <20190829105043.2508-6-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190829105043.2508-1-sashal@kernel.org> References: <20190829105043.2508-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 4f2e18266e34a..8c04c51a6e148 100644 --- a/arch/powerpc/kernel/head_64.S +++ b/arch/powerpc/kernel/head_64.S @@ -897,6 +897,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 @@ -972,6 +973,7 @@ start_here_multiplatform: RFI b . /* prevent speculative execution */ + .previous /* This is where all platforms converge execution */ start_here_common: -- 2.20.1