2024-05-15 06:37:30

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: build warning after merge of the powerpc tree

Hi all,

After merging the powerpc tree, today's (it may have been yesterday's)
linux-next build (powerpc allyesconfig) produced this warning:

WARNING: modpost: vmlinux: section mismatch in reference: fadump_setup_param_area+0x200 (section: .text.fadump_setup_param_area) -> memblock_phys_alloc_range (section: .init.text)

Introduced by commit

683eab94da75 ("powerpc/fadump: setup additional parameters for dump capture kernel")

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (499.00 B)
OpenPGP digital signature

2024-05-16 02:42:37

by Michael Ellerman

[permalink] [raw]
Subject: Re: linux-next: build warning after merge of the powerpc tree

Stephen Rothwell <[email protected]> writes:
> Hi all,
>
> After merging the powerpc tree, today's (it may have been yesterday's)
> linux-next build (powerpc allyesconfig) produced this warning:
>
> WARNING: modpost: vmlinux: section mismatch in reference: fadump_setup_param_area+0x200 (section: .text.fadump_setup_param_area) -> memblock_phys_alloc_range (section: .init.text)

I don't see the warning, but clearly it is possible if the compiler
decides not to inline fadump_setup_param_area().

What compiler version are you using?

cheers

2024-05-16 04:44:06

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: build warning after merge of the powerpc tree

Hi Michael,

On Thu, 16 May 2024 12:42:01 +1000 Michael Ellerman <[email protected]> wrote:
>
> Stephen Rothwell <[email protected]> writes:
> >
> > After merging the powerpc tree, today's (it may have been yesterday's)
> > linux-next build (powerpc allyesconfig) produced this warning:
> >
> > WARNING: modpost: vmlinux: section mismatch in reference: fadump_setup_param_area+0x200 (section: .text.fadump_setup_param_area) -> memblock_phys_alloc_range (section: .init.text)
>
> I don't see the warning, but clearly it is possible if the compiler
> decides not to inline fadump_setup_param_area().
>
> What compiler version are you using?

$ gcc --version
gcc (Debian 13.2.0-7) 13.2.0

(on zz1 if you want to test)
--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (499.00 B)
OpenPGP digital signature