* [PATCH 2/4] ARM: tegra: avoid section mismatch warning
[not found] <20181210215856.2238253-1-arnd@arndb.de>
@ 2018-12-10 21:58 ` Arnd Bergmann
2018-12-11 10:05 ` Thierry Reding
0 siblings, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2018-12-10 21:58 UTC (permalink / raw)
To: arm, Thierry Reding, Jonathan Hunter, Arnd Bergmann
Cc: linux-tegra, linux-kernel, linux-arm-kernel
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/4] ARM: tegra: avoid section mismatch warning
2018-12-10 21:58 ` [PATCH 2/4] ARM: tegra: avoid section mismatch warning Arnd Bergmann
@ 2018-12-11 10:05 ` Thierry Reding
2018-12-11 10:08 ` Arnd Bergmann
0 siblings, 1 reply; 5+ messages in thread
From: Thierry Reding @ 2018-12-11 10:05 UTC (permalink / raw)
To: Arnd Bergmann
Cc: arm, Jonathan Hunter, linux-arm-kernel, linux-tegra, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 955 bytes --]
On Mon, Dec 10, 2018 at 10:58:37PM +0100, Arnd Bergmann wrote:
> 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(-)
I'm not seeing these. Do I need to enable any special options to trigger
these? Or are these just so new that I haven't run into them yet?
In either case, I see that this is called by tegra_init_irq() and that
does have an __init annotation, so this looks good to me:
Acked-by: Thierry Reding <treding@nvidia.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/4] ARM: tegra: avoid section mismatch warning
2018-12-11 10:05 ` Thierry Reding
@ 2018-12-11 10:08 ` Arnd Bergmann
2018-12-11 10:28 ` Thierry Reding
0 siblings, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2018-12-11 10:08 UTC (permalink / raw)
To: Thierry Reding
Cc: arm-soc, Jonathan Hunter, Linux ARM,
open list:TEGRA ARCHITECTURE SUPPORT, Linux Kernel Mailing List
On Tue, Dec 11, 2018 at 11:05 AM Thierry Reding
<thierry.reding@gmail.com> wrote:
>
> On Mon, Dec 10, 2018 at 10:58:37PM +0100, Arnd Bergmann wrote:
> > 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(-)
>
> I'm not seeing these. Do I need to enable any special options to trigger
> these? Or are these just so new that I haven't run into them yet?
My guess would be that this is a result of the CONFIG_NO_AUTO_INLINE
option that is now available in linux-next.
Arnd
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/4] ARM: tegra: avoid section mismatch warning
2018-12-11 10:08 ` Arnd Bergmann
@ 2018-12-11 10:28 ` Thierry Reding
2018-12-12 21:57 ` Olof Johansson
0 siblings, 1 reply; 5+ messages in thread
From: Thierry Reding @ 2018-12-11 10:28 UTC (permalink / raw)
To: Arnd Bergmann
Cc: arm-soc, Jonathan Hunter, Linux ARM,
open list:TEGRA ARCHITECTURE SUPPORT, Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 1295 bytes --]
On Tue, Dec 11, 2018 at 11:08:53AM +0100, Arnd Bergmann wrote:
> On Tue, Dec 11, 2018 at 11:05 AM Thierry Reding
> <thierry.reding@gmail.com> wrote:
> >
> > On Mon, Dec 10, 2018 at 10:58:37PM +0100, Arnd Bergmann wrote:
> > > 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(-)
> >
> > I'm not seeing these. Do I need to enable any special options to trigger
> > these? Or are these just so new that I haven't run into them yet?
>
> My guess would be that this is a result of the CONFIG_NO_AUTO_INLINE
> option that is now available in linux-next.
Okay, that would explain. It's not set in my configurations currently.
Do you want to apply this to ARM-SoC directly with my Acked-by, or
should I queue it up for v4.22?
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/4] ARM: tegra: avoid section mismatch warning
2018-12-11 10:28 ` Thierry Reding
@ 2018-12-12 21:57 ` Olof Johansson
0 siblings, 0 replies; 5+ messages in thread
From: Olof Johansson @ 2018-12-12 21:57 UTC (permalink / raw)
To: Thierry Reding
Cc: Arnd Bergmann, arm-soc, Jonathan Hunter, Linux ARM,
open list:TEGRA ARCHITECTURE SUPPORT, Linux Kernel Mailing List
On Tue, Dec 11, 2018 at 11:28:56AM +0100, Thierry Reding wrote:
> On Tue, Dec 11, 2018 at 11:08:53AM +0100, Arnd Bergmann wrote:
> > On Tue, Dec 11, 2018 at 11:05 AM Thierry Reding
> > <thierry.reding@gmail.com> wrote:
> > >
> > > On Mon, Dec 10, 2018 at 10:58:37PM +0100, Arnd Bergmann wrote:
> > > > 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(-)
> > >
> > > I'm not seeing these. Do I need to enable any special options to trigger
> > > these? Or are these just so new that I haven't run into them yet?
> >
> > My guess would be that this is a result of the CONFIG_NO_AUTO_INLINE
> > option that is now available in linux-next.
>
> Okay, that would explain. It's not set in my configurations currently.
>
> Do you want to apply this to ARM-SoC directly with my Acked-by, or
> should I queue it up for v4.22?
I'm picking up a few others of these, so I'll include it in that batch.
Applied to arm-soc next/soc.
Thanks!
-Olof
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-12-12 21:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20181210215856.2238253-1-arnd@arndb.de>
2018-12-10 21:58 ` [PATCH 2/4] ARM: tegra: avoid section mismatch warning Arnd Bergmann
2018-12-11 10:05 ` Thierry Reding
2018-12-11 10:08 ` Arnd Bergmann
2018-12-11 10:28 ` Thierry Reding
2018-12-12 21:57 ` Olof Johansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox