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.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,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 D9F1DC49ED7 for ; Fri, 13 Sep 2019 13:11:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AE33F208C2 for ; Fri, 13 Sep 2019 13:11:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568380301; bh=fnklbgzgvFBnb/NQeX2JR8VGGnefvxq8JcceyaWMSVw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=s40ZMmHzurxRFRfaIZDQLfmCpHvhhgCoHLwGO980207OpR5WNvqVjCk8VJuabsKrm nuO9KnSFdEZDjjb81Jq9jTq6wYwQOZEaBJcrRyzSj8pRoxYvkMYlwqEMgZh27j4bln kH9AkiOsmeEnCfPj7ZHu1dWRewb32on2pVd8E0Fk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389014AbfIMNLk (ORCPT ); Fri, 13 Sep 2019 09:11:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:36812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388968AbfIMNLi (ORCPT ); Fri, 13 Sep 2019 09:11:38 -0400 Received: from localhost (unknown [104.132.45.99]) (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 7C58C214AE; Fri, 13 Sep 2019 13:11:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568380298; bh=fnklbgzgvFBnb/NQeX2JR8VGGnefvxq8JcceyaWMSVw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ArY4Xg/cZeU02zI44v2WyREm2wFTjy4boZqoJ8qhbVR9twQbdU4tTjs6kz1DTX2Ha NdwEF7B8HUFPMzz/dfAqwtwD+E+qj980X7cJWqPlX1CULM9OKNdchpUNU/4yJ+Wec8 8GT7wDg9Z+Fokf7FGiDZjTnLJezdGe/hsfb9artg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Russell Currey , Christophe Leroy , Michael Ellerman , Sasha Levin Subject: [PATCH 4.19 020/190] powerpc/64: mark start_here_multiplatform as __ref Date: Fri, 13 Sep 2019 14:04:35 +0100 Message-Id: <20190913130601.185759697@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190913130559.669563815@linuxfoundation.org> References: <20190913130559.669563815@linuxfoundation.org> User-Agent: quilt/0.66 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 [ 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