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 A0134C4CEC5 for ; Fri, 13 Sep 2019 13:10:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 78999206A5 for ; Fri, 13 Sep 2019 13:10:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568380216; bh=8YSDy2u6E/WVlGythR0eFFxaJtGt2InuQirVz2+ZNxc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=07A09zAWyXO4cQAGn024n6rE5KLG+SeN4K53KqPP7r4kpl2vgnNRJt+wwGOSphMS/ i6a0piqlLjxcz+B9ifX2FF5zstfjxaUJWZu7dPTfdSPe5U/hXMlrVGdlZ3JzcQDe3G l+ky6HygyuK+2Jc4PvSYIsyP2yELTowXUeoR5fvA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388714AbfIMNKP (ORCPT ); Fri, 13 Sep 2019 09:10:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:35012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388699AbfIMNKM (ORCPT ); Fri, 13 Sep 2019 09:10:12 -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 14A0E206BB; Fri, 13 Sep 2019 13:10:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568380211; bh=8YSDy2u6E/WVlGythR0eFFxaJtGt2InuQirVz2+ZNxc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=boRA7D3qceiW9b6vt/MTrjj7H8gbUtOuJ6NimOD4m613X79SkFed12305+ehErjRM uiKm8HC2flTBpAnabz0GqR85A835bbcCkuW7otg9096VRvusx/Xe9BdWIkkpL3oWvs mfSOHh+3UJDnMy1IzPTSri8A6h9HnZNwqrnmPkOA= 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.14 15/21] powerpc/64: mark start_here_multiplatform as __ref Date: Fri, 13 Sep 2019 14:07:08 +0100 Message-Id: <20190913130507.324567227@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190913130501.285837292@linuxfoundation.org> References: <20190913130501.285837292@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 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