linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: arm@kernel.org, Thierry Reding <thierry.reding@gmail.com>,
	Jonathan Hunter <jonathanh@nvidia.com>,
	Arnd Bergmann <arnd@arndb.de>
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	[thread overview]
Message-ID: <20181210215856.2238253-2-arnd@arndb.de> (raw)
In-Reply-To: <20181210215856.2238253-1-arnd@arndb.de>

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 <arnd@arndb.de>
---
 arch/arm/mach-tegra/irq.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 = {
-- 
2.20.0


  reply	other threads:[~2018-12-10 21:59 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-10 21:58 [PATCH 1/4] ARM: omap2: avoid section mismatch warning Arnd Bergmann
2018-12-10 21:58 ` Arnd Bergmann [this message]
2018-12-11 10:05   ` [PATCH 2/4] ARM: tegra: " Thierry Reding
2018-12-11 10:08     ` Arnd Bergmann
2018-12-11 10:28       ` Thierry Reding
2018-12-12 21:57         ` Olof Johansson
2018-12-10 21:58 ` [PATCH 3/4] ARM: ks8695: fix " Arnd Bergmann
2018-12-12 21:56   ` Olof Johansson
2018-12-10 21:58 ` [PATCH 4/4] ARM: pxa: avoid " Arnd Bergmann
2018-12-11  9:39   ` Ulf Hansson
2018-12-11 10:10     ` Arnd Bergmann
2018-12-11 10:44     ` Linus Walleij
2018-12-12 21:56   ` Olof Johansson
2018-12-10 22:09 ` [PATCH 1/4] ARM: omap2: " Tony Lindgren
2018-12-12 22:05   ` Olof Johansson
2018-12-11  2:11 ` Santosh Shilimkar
2018-12-11 18:12 ` Kevin Hilman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181210215856.2238253-2-arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=arm@kernel.org \
    --cc=jonathanh@nvidia.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=thierry.reding@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).