Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2118037ybl; Thu, 29 Aug 2019 03:55:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUC2AyVTR1e4FJKoHQICoA78dH8cqr1stV8Q9IOgdH7l7JnbHcDb7U1WzxmDPEmS6WYGTs X-Received: by 2002:a63:124a:: with SMTP id 10mr7661143pgs.254.1567076131423; Thu, 29 Aug 2019 03:55:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567076131; cv=none; d=google.com; s=arc-20160816; b=autOUbm9Fii55zJ1z9cVAeYWaorFupuOGRpkZC9S5oe+CYt3BhOnqOrZ9npJr6PXXe KnLkJrrFIIjUwyEB/uTHtzJzlA9kgj7uOV20qEKHdCaCciX7w80h+5JjWKQN9oeTnObG YknGAhoV0rRmJCor/joGfUWZyfknnaaQ565/m1E62O372NuYwZjIByDTH6Px5EknBOV6 t6i9JRtRhPWBhfsEMWzXXDhykThaFAp9mS1mBtz6Q/P7T0mEHoNrR8oxW15HWL6/F4Ix LPEaYds5WOqc7M47i2wwuTPQLqGLXmseE45JsinkuVlTV6n/FrN7vRl+rWQpCKagHxLv fcug== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6cgmKLeg4VkdHSwIEY9fp342goUXFU5sLOpvIpXo/BE=; b=NaztXn6azkHLrYNdP8E/LGWvj7DLdpuCxhxJWhE1S1feAIochL2xtfqWLnEsMjx0Zm 0nlMi0eFEyKggiNJiY8bpAyLDDb6Wl5L7Q9wFVNkuPYOtbAHi7V4P7oQoof/xBRbJEQR SLPGIpR9GifD/DPtVHssHk5VbeDwcfWGAYeLEewsodeQReLv2WSEszEz62hmnAkbYkF2 t0m64y+I3iVXcyQ/XWk8xxBwCT8supOj0SUrpKaUN7gMrQaKZVPF4Ll8FSpOCNvuq96g hEXXlJ/U5iiGxK9sjNt1f3Gpk/8uVHNCg5W6rlgvz4TlgbHFwt3hgRJm7sz72pR749n2 YNsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MOgPTqyi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x184si2264328pfb.24.2019.08.29.03.55.16; Thu, 29 Aug 2019 03:55:31 -0700 (PDT) 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=MOgPTqyi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728581AbfH2KxW (ORCPT + 99 others); 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