* powernow-k8: section mismatch
@ 2010-05-25 20:10 Stefan Richter
2010-05-25 22:04 ` Borislav Petkov
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Richter @ 2010-05-25 20:10 UTC (permalink / raw)
To: cpufreq; +Cc: Borislav Petkov, H. Peter Anvin, linux-kernel
Hi,
I got the following with current git:
WARNING: arch/x86/kernel/cpu/cpufreq/powernow-k8.o(.exit.text+0x1c): Section mismatch in reference from the function cleanup_module() to the variable .cpuinit.data:cpb_nb
The function __exit cleanup_module() references
a variable __cpuinitdata cpb_nb.
This is often seen when error handling in the exit function
uses functionality in the init path.
The fix is often to remove the __cpuinitdata annotation of
cpb_nb so it may be used outside an init section.
Looks like it was introduced by
"powernow-k8: Add core performance boost support".
--
Stefan Richter
-=====-==-=- -=-= ==--=
http://arcgraph.de/sr/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: powernow-k8: section mismatch
2010-05-25 20:10 powernow-k8: section mismatch Stefan Richter
@ 2010-05-25 22:04 ` Borislav Petkov
0 siblings, 0 replies; 2+ messages in thread
From: Borislav Petkov @ 2010-05-25 22:04 UTC (permalink / raw)
To: Stefan Richter
Cc: cpufreq@vger.kernel.org, H. Peter Anvin,
linux-kernel@vger.kernel.org
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
Date: Tue, May 25, 2010 at 04:10:03PM -0400
> Hi,
>
> I got the following with current git:
>
> WARNING: arch/x86/kernel/cpu/cpufreq/powernow-k8.o(.exit.text+0x1c): Section mismatch in reference from the function cleanup_module() to the variable .cpuinit.data:cpb_nb
> The function __exit cleanup_module() references
> a variable __cpuinitdata cpb_nb.
> This is often seen when error handling in the exit function
> uses functionality in the init path.
> The fix is often to remove the __cpuinitdata annotation of
> cpb_nb so it may be used outside an init section.
>
> Looks like it was introduced by
> "powernow-k8: Add core performance boost support".
Oh yeah, Peter pointed it out to me earlier, we have a fix already:
https://patchwork.kernel.org/patch/102225/
Thanks.
--
Regards/Gruss,
Boris.
Operating Systems Research Center
Advanced Micro Devices, Inc.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-25 22:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-25 20:10 powernow-k8: section mismatch Stefan Richter
2010-05-25 22:04 ` Borislav Petkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox