* [PATCH] MIPS: BMIPS: Fix section mismatch warning
@ 2018-02-06 3:13 Jaedon Shin
2018-02-06 17:35 ` James Hogan
0 siblings, 1 reply; 4+ messages in thread
From: Jaedon Shin @ 2018-02-06 3:13 UTC (permalink / raw)
To: Ralf Baechle, James Hogan, Florian Fainelli
Cc: Kevin Cernekee, linux-mips, Jaedon Shin
Remove the __init annotation from bmips_cpu_setup() to avoid the
following warning.
WARNING: vmlinux.o(.text+0x35c950): Section mismatch in reference from the function brcmstb_pm_s3() to the function .init.text:bmips_cpu_setup()
The function brcmstb_pm_s3() references
the function __init bmips_cpu_setup().
This is often because brcmstb_pm_s3 lacks a __init
annotation or the annotation of bmips_cpu_setup is wrong.
Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com>
---
arch/mips/kernel/smp-bmips.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c
index 87dcac2447c8..9d41732a9146 100644
--- a/arch/mips/kernel/smp-bmips.c
+++ b/arch/mips/kernel/smp-bmips.c
@@ -572,7 +572,7 @@ asmlinkage void __weak plat_wired_tlb_setup(void)
*/
}
-void __init bmips_cpu_setup(void)
+void bmips_cpu_setup(void)
{
void __iomem __maybe_unused *cbr = BMIPS_GET_CBR();
u32 __maybe_unused cfg;
--
2.16.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] MIPS: BMIPS: Fix section mismatch warning
2018-02-06 3:13 [PATCH] MIPS: BMIPS: Fix section mismatch warning Jaedon Shin
@ 2018-02-06 17:35 ` James Hogan
2018-02-06 20:09 ` Florian Fainelli
0 siblings, 1 reply; 4+ messages in thread
From: James Hogan @ 2018-02-06 17:35 UTC (permalink / raw)
To: Jaedon Shin; +Cc: Ralf Baechle, Florian Fainelli, Kevin Cernekee, linux-mips
[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]
On Tue, Feb 06, 2018 at 12:13:21PM +0900, Jaedon Shin wrote:
> Remove the __init annotation from bmips_cpu_setup() to avoid the
> following warning.
>
> WARNING: vmlinux.o(.text+0x35c950): Section mismatch in reference from the function brcmstb_pm_s3() to the function .init.text:bmips_cpu_setup()
> The function brcmstb_pm_s3() references
> the function __init bmips_cpu_setup().
> This is often because brcmstb_pm_s3 lacks a __init
> annotation or the annotation of bmips_cpu_setup is wrong.
>
> Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com>
Reviewed-by: James Hogan <jhogan@kernel.org>
Should CONFIG_BRCMSTB_PM=y be in any of the bmips defconfigs to get some
build coverage of this?
Thanks
James
> ---
> arch/mips/kernel/smp-bmips.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c
> index 87dcac2447c8..9d41732a9146 100644
> --- a/arch/mips/kernel/smp-bmips.c
> +++ b/arch/mips/kernel/smp-bmips.c
> @@ -572,7 +572,7 @@ asmlinkage void __weak plat_wired_tlb_setup(void)
> */
> }
>
> -void __init bmips_cpu_setup(void)
> +void bmips_cpu_setup(void)
> {
> void __iomem __maybe_unused *cbr = BMIPS_GET_CBR();
> u32 __maybe_unused cfg;
> --
> 2.16.1
>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] MIPS: BMIPS: Fix section mismatch warning
2018-02-06 17:35 ` James Hogan
@ 2018-02-06 20:09 ` Florian Fainelli
2018-02-15 22:14 ` James Hogan
0 siblings, 1 reply; 4+ messages in thread
From: Florian Fainelli @ 2018-02-06 20:09 UTC (permalink / raw)
To: James Hogan, Jaedon Shin; +Cc: Ralf Baechle, Kevin Cernekee, linux-mips
On 02/06/2018 09:35 AM, James Hogan wrote:
> On Tue, Feb 06, 2018 at 12:13:21PM +0900, Jaedon Shin wrote:
>> Remove the __init annotation from bmips_cpu_setup() to avoid the
>> following warning.
>>
>> WARNING: vmlinux.o(.text+0x35c950): Section mismatch in reference from the function brcmstb_pm_s3() to the function .init.text:bmips_cpu_setup()
>> The function brcmstb_pm_s3() references
>> the function __init bmips_cpu_setup().
>> This is often because brcmstb_pm_s3 lacks a __init
>> annotation or the annotation of bmips_cpu_setup is wrong.
>>
>> Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com>
>
> Reviewed-by: James Hogan <jhogan@kernel.org>
>
> Should CONFIG_BRCMSTB_PM=y be in any of the bmips defconfigs to get some
> build coverage of this?
That would be a good idea, Jaedon, do you want to submit a patch doing
that or should I?
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] MIPS: BMIPS: Fix section mismatch warning
2018-02-06 20:09 ` Florian Fainelli
@ 2018-02-15 22:14 ` James Hogan
0 siblings, 0 replies; 4+ messages in thread
From: James Hogan @ 2018-02-15 22:14 UTC (permalink / raw)
To: Florian Fainelli; +Cc: Jaedon Shin, Ralf Baechle, Kevin Cernekee, linux-mips
[-- Attachment #1: Type: text/plain, Size: 1073 bytes --]
On Tue, Feb 06, 2018 at 12:09:48PM -0800, Florian Fainelli wrote:
> On 02/06/2018 09:35 AM, James Hogan wrote:
> > On Tue, Feb 06, 2018 at 12:13:21PM +0900, Jaedon Shin wrote:
> >> Remove the __init annotation from bmips_cpu_setup() to avoid the
> >> following warning.
> >>
> >> WARNING: vmlinux.o(.text+0x35c950): Section mismatch in reference from the function brcmstb_pm_s3() to the function .init.text:bmips_cpu_setup()
> >> The function brcmstb_pm_s3() references
> >> the function __init bmips_cpu_setup().
> >> This is often because brcmstb_pm_s3 lacks a __init
> >> annotation or the annotation of bmips_cpu_setup is wrong.
> >>
> >> Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com>
> >
> > Reviewed-by: James Hogan <jhogan@kernel.org>
> >
> > Should CONFIG_BRCMSTB_PM=y be in any of the bmips defconfigs to get some
> > build coverage of this?
>
> That would be a good idea, Jaedon, do you want to submit a patch doing
> that or should I?
>
> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Applied for 4.16,
Thanks
James
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-02-15 22:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-06 3:13 [PATCH] MIPS: BMIPS: Fix section mismatch warning Jaedon Shin
2018-02-06 17:35 ` James Hogan
2018-02-06 20:09 ` Florian Fainelli
2018-02-15 22:14 ` James Hogan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox