From patchwork Mon Dec 10 21:58:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 153374 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4058124ljp; Mon, 10 Dec 2018 13:59:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/XdO06oolbUFJogtpHy2qv5d9B+4y7sAmewyFVw4YBDP+WQhw2Y1rAcuS4o1FhS8pweCzak X-Received: by 2002:a63:1c61:: with SMTP id c33mr12102624pgm.354.1544479174706; Mon, 10 Dec 2018 13:59:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544479174; cv=none; d=google.com; s=arc-20160816; b=euns0kJhnVCvsTd4g9a/Wekhe1DISGz678lYWdLKgWCV6i5yLGgBa4SdDy7jCDDHU4 sHEj+kBuVN4NT0bOjlmdEhYHlIy4Grqz5uljuxHQ2s1OTDTOyXI2hA9nLnidpW5zaDto sMyaIhLtsVrR/yZFyXuOqbqUXLKuYI/S7y6qKTmETToLOAaNHx1Qqz3muY1j9FImV7yq hB5m0yRhFDLmcaBv6O5S0Z352EgumUSCRPNl8x9tgrPf+fQLZ/Xb3actXatA4Ps4d2QM MoEG1WuR4QsuNoSzjib7ZlSvyquLRHguQXmtffdOMxXVjQs6rKVudIV3VVn/uy0ogvSJ p7UQ== 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; bh=t/4g5antgKx3V1JTtj+6pIZtTx9mxgI4pe1zfG5ra68=; b=m8kaC2J/KjE4eposszSGEGocYP7sgKqr/mzkSyU00HYynFvlljA19Fm6DYS0G5DM5I /CS9jnNzn7y5KXzJT4fi9K+yHLRs7R0L9e6cblIqNZbz5eOuR+6Edf9hYx3249zBQ/IL i7DnUJVeQKv3/KbdOFQHfQvALyJoPU20VNilBm+BisaaJNJg+uuQ9ibH8FxZ31D8kPGG 5bbUISuzfrwWbf5w8HKl4KamPPcZXGL85eYtpMX9YdAGtBJ/uwT2UeNm6zpGnLJPAgpS ibhBRKcfDBNfsJYnMe9Ldfstz7KW8tP5bZnChITOk+49FR1oRBYiDWluobJDN9uz1Ce+ J6Pg== 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 b18si9635414pgj.399.2018.12.10.13.59.34; Mon, 10 Dec 2018 13:59:34 -0800 (PST) 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 S1728993AbeLJV7d (ORCPT + 31 others); Mon, 10 Dec 2018 16:59:33 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:50299 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726024AbeLJV7c (ORCPT ); Mon, 10 Dec 2018 16:59:32 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1MhlbM-1h9x8Q27to-00dpPE; Mon, 10 Dec 2018 22:59:10 +0100 From: Arnd Bergmann To: arm@kernel.org, Thierry Reding , Jonathan Hunter , Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] ARM: tegra: avoid section mismatch warning Date: Mon, 10 Dec 2018 22:58:37 +0100 Message-Id: <20181210215856.2238253-2-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181210215856.2238253-1-arnd@arndb.de> References: <20181210215856.2238253-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:pVzuuYiqZoGnxIy+9O0ggSKEMABUdN1/PH8ap7LXzx57zWT85/C H5i38KO1MYUDuBDwzj2oZtGDnf2B0nJUcYb6tDuCQ5PclG6juq9E30nyxT3bzPFhjyA8HS+ qgT9XnOgvQQHZWq5vq2ZGNabnTPvLHqVfDIC/jAH9RhP2GnZaC+FQO5d4dSNTbf4kCULpXY htRBQ9zpnaH2qPSt+eXAw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:NR/oVWTKn40=:f2ARBWMyYmyXlnsazBYwCc JUmDGB+JHoTUwWfa0w94mZTeMvA66IoDU6pZ66NV5wAQhZ2a2gXQVkKuUCM7RqMqKnNFqRj2J On+rlH3gQrAFA3QNeRQMzbY7NEfI767ywEdIRVue8qKJL+Z4mh2k0CTxU+06OZ0rbD52mzyKb Pq6ci9ScKBzqI7poSrCB9tI6zNq03gi3RmjtqEF12e3u+0GfWkPMiHkNxBF1UI69iBlFMYwUO Nvmaue+liI5jAYucUnSObCDX8AJpo6KnRXMZNyrgA7QNou2MWaxNaSHLvVbEuTycI5kL8Czfl VDqabZ6LO9NEXiTj0Sicyc4vvNCFWsaAbeH/6dZdJPKOycq5vJNJ7pyBygQXAlOko12s3v8cA bcCJcEhX+H1VViF8NurwSDHN7Ni5crfziC6menWuhsSyp/QO4oibyho2LcAFtqgYJDFGWJVDl M7dUbF5uYvhXBTmmqbAgK0ZnUNzIBSREbtUgXeTn5FB/YMpgt7wXaGQ2eWTlhrppyd/EnCId7 vcJEs87ZW3L2/mfUeEAGXf3RsxtYrA+s3Bji3nBuJDrj2Q2UJwUWrglZcmR6rNzq9LzLoESs6 m2cWp/koI3RM0De3NnX/4QRJelKgBxRa5Z88Yi193iulnrsLh1r2ZFMP2KwWh8/UIpTyzRJ8Y odst20GVd//mMgTESu2yoZm9rf6UNc4rd4dO+PvHiuXbo4r1s0HwItd+6hd/RISt/leZgvLIQ S3c2p7M/xIO2GMopTdRRJg5IcIUcBW3as5ruOA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WARNING: vmlinux.o(.text+0x39ecc): Section mismatch in reference from the function tegra114_gic_cpu_pm_registration() to the (unknown reference) .init.rodata:(unknown) The function tegra114_gic_cpu_pm_registration() references the (unknown reference) __initconst (unknown). This is often because tegra114_gic_cpu_pm_registration lacks a __initconst annotation or the annotation of (unknown) is wrong. Signed-off-by: Arnd Bergmann --- arch/arm/mach-tegra/irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.20.0 Acked-by: Thierry Reding diff --git a/arch/arm/mach-tegra/irq.c b/arch/arm/mach-tegra/irq.c index a69b22d37eed..a186ab663b0b 100644 --- a/arch/arm/mach-tegra/irq.c +++ b/arch/arm/mach-tegra/irq.c @@ -72,7 +72,7 @@ static const struct of_device_id tegra114_dt_gic_match[] __initconst = { { } }; -static void tegra114_gic_cpu_pm_registration(void) +static void __init tegra114_gic_cpu_pm_registration(void) { struct device_node *dn; @@ -85,7 +85,7 @@ static void tegra114_gic_cpu_pm_registration(void) cpu_pm_register_notifier(&tegra_gic_notifier_block); } #else -static void tegra114_gic_cpu_pm_registration(void) { } +static void __init tegra114_gic_cpu_pm_registration(void) { } #endif static const struct of_device_id tegra_ictlr_match[] __initconst = {