Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2097412pja; Thu, 26 Mar 2020 09:38:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsoRDGMr3Da3ocGl+jCwXbpodazEi0w/W1ODPE69/a77RmXZc+L8SlNbyqApmRfdVWpOXQf X-Received: by 2002:a9d:228:: with SMTP id 37mr7319138otb.52.1585240735455; Thu, 26 Mar 2020 09:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585240735; cv=none; d=google.com; s=arc-20160816; b=V9ilO4NZu8jr9lLq86d4M4wGkQEmnCk4WIsmOUjdR+2r4m+CZNf0Xo+yEOkgYXoR77 96qLGj8vTp7/uoVbp8htvqM1B6TSTlM7N1q3fiRAoISEjzmYXVbwRQJRswU9KjH36otK 1LFl+CCaOSC3rPXyG3mT5PyRdbOo20GI/+RnrAA25ALxaDYiXpoQLz2zkFIWAfXbqzmv UrcdaLnP47VYu1vqEe+67ZslwcvgJ6SKGzIZlOpQRe/bgb9JeuF716+XXAcMDPFBP8Vk xoUWaCD4I6dgUvS93grOJCSFJDUBmvphpIOSXkD3OCvGW/JywXfGFGOlIginKak3w797 si6A== 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 :message-id:date:subject:to:from; bh=u8sYLavmnYUCf0chmp+iUtKbLDIJFGrPlJkIi6y+wtI=; b=TJKa1MzC5H1obhzKqSZHt8nsyqeSKsM/D3giUtWZjtqJ/7sfV+gnvt8ix2joJLhnM5 xv8Q2tPcPNqrCIS6mHl1kFDO5xdsfCy4Ogo5PAgs62DTyIfeMYfsK/xeJXYQK2lYecIi /WRp4Aaus/iBF6IDhsJKKHftlZuaLJekV/NR8Fsw1BFf4OfQt3fvLRRD4ojHQcmR/s/+ pGeu91c03HRdi7qzqC43WCuYprV3rve+ytDKre/LfLvsCkstgmhMC4pAce9BacHmJW+E f1G0ujDPsDknPUAGTaUsTZkB61JOINzAXhYUJkOA2ZxvFo+XcLTQ6GxIWClMmQRhb+Ge PU4g== ARC-Authentication-Results: i=1; mx.google.com; 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 w24si1201112ooj.34.2020.03.26.09.38.29; Thu, 26 Mar 2020 09:38:55 -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; 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 S1728055AbgCZQhy (ORCPT + 99 others); Thu, 26 Mar 2020 12:37:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:37648 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727502AbgCZQhy (ORCPT ); Thu, 26 Mar 2020 12:37:54 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id BD63FACCE; Thu, 26 Mar 2020 16:37:48 +0000 (UTC) From: Michal Suchanek To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Christophe Leroy , Greg Kroah-Hartman , Allison Randal , Thomas Gleixner , Russell Currey , Michal Suchanek , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc/64: Fix section mismatch warnings. Date: Thu, 26 Mar 2020 17:37:42 +0100 Message-Id: <20200326163742.28990-1-msuchanek@suse.de> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following warnings: WARNING: vmlinux.o(.text+0x2d24): Section mismatch in reference from the variable __boot_from_prom to the function .init.text:prom_init() The function __boot_from_prom() references the function __init prom_init(). This is often because __boot_from_prom lacks a __init annotation or the annotation of prom_init is wrong. WARNING: vmlinux.o(.text+0x2fd0): Section mismatch in reference from the variable start_here_common to the function .init.text:start_kernel() The function start_here_common() references the function __init start_kernel(). This is often because start_here_common lacks a __init annotation or the annotation of start_kernel is wrong. Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/head_64.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S index ad79fddb974d..4afb82f1b7c7 100644 --- a/arch/powerpc/kernel/head_64.S +++ b/arch/powerpc/kernel/head_64.S @@ -537,6 +537,7 @@ __start_initialization_multiplatform: b __after_prom_start #endif /* CONFIG_PPC_BOOK3E */ +__REF __boot_from_prom: #ifdef CONFIG_PPC_OF_BOOT_TRAMPOLINE /* Save parameters */ @@ -574,6 +575,7 @@ __boot_from_prom: /* We never return. We also hit that trap if trying to boot * from OF while CONFIG_PPC_OF_BOOT_TRAMPOLINE isn't selected */ trap + .previous __after_prom_start: #ifdef CONFIG_RELOCATABLE @@ -980,6 +982,7 @@ start_here_multiplatform: .previous /* This is where all platforms converge execution */ +__REF start_here_common: /* relocation is on at this point */ std r1,PACAKSAVE(r13) @@ -1001,6 +1004,7 @@ start_here_common: /* Not reached */ trap EMIT_BUG_ENTRY 0b, __FILE__, __LINE__, 0 + .previous /* * We put a few things here that have to be page-aligned. -- 2.16.4