Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1733738yba; Thu, 9 May 2019 23:32:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHVjcSEoQgs8DuYv59MWg5xOmitb5/hSlfNaN9IUB3mp58h/GCQtobUvtfOzRBm7PnO6tR X-Received: by 2002:a17:902:bd86:: with SMTP id q6mr11065352pls.152.1557469960675; Thu, 09 May 2019 23:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557469960; cv=none; d=google.com; s=arc-20160816; b=stFBMkmgGTipD3xZyXL5bDGWL6+mrlQT6ID1iDJIzEMteF/dOFOa0Q6ej4DW8vcMz4 s8gz5NBRl0ONvxRydEYfRvrOVqgDhxGFKu+h6jX//gRztoq5T3lTCvhlYmUOg7uE5XZN iBvUBMRiYjR7eUYDZrt5/hnj9a5BZMNkbxQhtfv9nPuT+Admipf2P2SFxkZOm7mnrWBR r7Uea0DOpTJfXytEFy/nJM4gWjCq5k3InMuhd001XR2YwuCiaKh/LdrfUIADxd34ZNEF Sxc9Fgtp4x0EdIIk1hc23SFOhd5RByy8YwsBX9zMQKuy8o+0bZ9MltEY+8jC0aVOpr9N JZww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:message-id :dkim-signature; bh=4JggaEKDb5wcArbI27Jxgc52P6X1TORgfQ6AS2Hpqwk=; b=0H6FNwnhNx0zkxakYRuR0hGloHG8hKJRm5SdWo+TcTq4x6I3D6d/hkERYWL4BlBxsE 3Ra5TPPVu3yCmaA+xHeoJLI6QrUFzCzTda//Cp+eL6M/zacO3wDqmpttrHcXH/O7Hk49 GatjPw5wQS6jnW8agCoHppToA8Yg2wAxRpsjBc9YOqBEI0E/6rb/HEtK5YYocaxUnCoj CB9997WEIbK8RQk5UNuUebOsby5KTrcnqgPs+IOWFZT9RxhvLFN6aKdJqqNNF+DnyYRX PfdqjP/ZaxKP6FiKpwOC1uZG7XsBYS+U4aoYXLZghArQqNYNA6e2TI6TuXhYMUos5ww3 Gzgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=QnJPQ93y; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q75si5803214pgq.386.2019.05.09.23.32.23; Thu, 09 May 2019 23:32:40 -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=@c-s.fr header.s=mail header.b=QnJPQ93y; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726983AbfEJGbb (ORCPT + 99 others); Fri, 10 May 2019 02:31:31 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:3605 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726851AbfEJGbb (ORCPT ); Fri, 10 May 2019 02:31:31 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 450gN044zdz9v1GD; Fri, 10 May 2019 08:31:28 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=QnJPQ93y; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id 5RVjzFTZy1GP; Fri, 10 May 2019 08:31:28 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 450gN0334Cz9v1GC; Fri, 10 May 2019 08:31:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1557469888; bh=4JggaEKDb5wcArbI27Jxgc52P6X1TORgfQ6AS2Hpqwk=; h=From:Subject:To:Cc:Date:From; b=QnJPQ93yxEE6EnayQikQChVZCRkXoIeJiZUDR1Y60shyqnBi3jPffhNZOSX8MHtKY dTDpHcTzhyXSBfsB4k7Ce2EgDsqX4i0w9npPT5CE9nEDqaLtiw/elIYZnrcOIyfnz8 3E+QN/feMgkGyALx3EMoqUPRRCzQrQbJorKS9HaU= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 597528B7CF; Fri, 10 May 2019 08:31:29 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id YwAGeELdQCyp; Fri, 10 May 2019 08:31:29 +0200 (CEST) Received: from po16846vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.231.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 354198B756; Fri, 10 May 2019 08:31:29 +0200 (CEST) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 1C25766204; Fri, 10 May 2019 06:31:28 +0000 (UTC) Message-Id: <7b15f4a18ab2d9fb54559acbadf2cd83a7d147f7.1557469839.git.christophe.leroy@c-s.fr> From: Christophe Leroy Subject: [PATCH] powerpc/64: mark start_here_multiplatform as __ref To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Russell Currey Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Fri, 10 May 2019 06:31:28 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 5321a11c2835..259be7f6d551 100644 --- a/arch/powerpc/kernel/head_64.S +++ b/arch/powerpc/kernel/head_64.S @@ -904,6 +904,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 @@ -979,6 +980,7 @@ start_here_multiplatform: RFI b . /* prevent speculative execution */ + .previous /* This is where all platforms converge execution */ start_here_common: -- 2.13.3