Commit 4dd201be authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Olof Johansson

ARM: tegra: avoid section mismatch warning

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: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 4aa64677
...@@ -72,7 +72,7 @@ static const struct of_device_id tegra114_dt_gic_match[] __initconst = { ...@@ -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; struct device_node *dn;
...@@ -85,7 +85,7 @@ static void tegra114_gic_cpu_pm_registration(void) ...@@ -85,7 +85,7 @@ static void tegra114_gic_cpu_pm_registration(void)
cpu_pm_register_notifier(&tegra_gic_notifier_block); cpu_pm_register_notifier(&tegra_gic_notifier_block);
} }
#else #else
static void tegra114_gic_cpu_pm_registration(void) { } static void __init tegra114_gic_cpu_pm_registration(void) { }
#endif #endif
static const struct of_device_id tegra_ictlr_match[] __initconst = { static const struct of_device_id tegra_ictlr_match[] __initconst = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment