Skip to contentSkip to conversation

powernow-k8: section mismatch

DISCUSSION Stefan Richter 2 participants 2 messages May 25, 2010

lore
Share & tools
lore
#0 lore raw

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".

Signature · 3 lines
Stefan Richter
-=====-==-=- -=-= ==--=
http://arcgraph.de/sr/
#1 lore raw

From: Stefan Richter <[email protected]>
Date: Tue, May 25, 2010 at 04:10:03PM -0400

Quoted 12 lines

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.

Quoted 2 lines

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.

Signature · 5 lines
Regards/Gruss,
Boris.

Operating Systems Research Center
Advanced Micro Devices, Inc.