Hi,
This seems to be pretty new :
WARNING: arch/i386/kernel/cpu/cpufreq/speedstep-centrino.o - Section mismatch:
reference to .init.text: from .data between 'sw_any_bug_dmi_table' (at offset
0x320) and 'centrino_attr'
Using Linus' latest git tree.
Regards,
ismail
--
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
-- Benjamin Franklin
>-----Original Message-----
>From: [email protected]
>[mailto:[email protected]] On Behalf Of Ismail Donmez
>Sent: Sunday, September 24, 2006 1:58 AM
>To: LKML
>Subject: New section mismatch warning on latest linux-2.6 git tree
>
>Hi,
>
>This seems to be pretty new :
>
>WARNING: arch/i386/kernel/cpu/cpufreq/speedstep-centrino.o -
>Section mismatch:
>reference to .init.text: from .data between
>'sw_any_bug_dmi_table' (at offset
>0x320) and 'centrino_attr'
>
>Using Linus' latest git tree.
>
>Regards,
>ismail
Andrew,
Can you please push the patch from Jeremy here:
http://www.ussg.iu.edu/hypermail/linux/kernel/0609.1/1389.html
Thanks,
Venki
On Mon, Sep 25, 2006 at 10:51:54AM -0700, Pallipadi, Venkatesh wrote:
> >This seems to be pretty new :
> >
> >WARNING: arch/i386/kernel/cpu/cpufreq/speedstep-centrino.o -
> >Section mismatch:
> >reference to .init.text: from .data between
> >'sw_any_bug_dmi_table' (at offset
> >0x320) and 'centrino_attr'
> >
> >Using Linus' latest git tree.
> >
> >Regards,
> >ismail
>
> Andrew,
>
> Can you please push the patch from Jeremy here:
>
> http://www.ussg.iu.edu/hypermail/linux/kernel/0609.1/1389.html
That's the patch that has caused this situation.
Andrew had it in -mm until recently, when I merged it into cpufreq.git.
And now, Linus has pulled it into mainline.
Dave
On Mon, Sep 25, 2006 at 02:23:47PM -0400, Dave Jones wrote:
>
> That's the patch that has caused this situation.
> Andrew had it in -mm until recently, when I merged it into cpufreq.git.
> And now, Linus has pulled it into mainline.
>
> Dave
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
Patch below resolves this section mismatch issue.
Please apply.
Thanks,
Venki
Make the sections proper and get rid of section mismatch warnings.
Signed-off-by: Venkatesh Pallipadi <[email protected]>
Index: linux-2.6.18-rc4/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
===================================================================
--- linux-2.6.18-rc4.orig/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
+++ linux-2.6.18-rc4/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
@@ -569,13 +569,13 @@ static int acpi_cpufreq_early_init(void)
*/
static int bios_with_sw_any_bug;
-static int __init sw_any_bug_found(struct dmi_system_id *d)
+static int sw_any_bug_found(struct dmi_system_id *d)
{
bios_with_sw_any_bug = 1;
return 0;
}
-static struct dmi_system_id __initdata sw_any_bug_dmi_table[] = {
+static struct dmi_system_id sw_any_bug_dmi_table[] = {
{
.callback = sw_any_bug_found,
.ident = "Supermicro Server X6DLP",
Index: linux-2.6.18-rc4/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
===================================================================
--- linux-2.6.18-rc4.orig/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
+++ linux-2.6.18-rc4/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
@@ -386,7 +386,7 @@ static int centrino_cpu_early_init_acpi(
* than OS intended it to run at. Detect it and handle it cleanly.
*/
static int bios_with_sw_any_bug;
-static int __init sw_any_bug_found(struct dmi_system_id *d)
+static int sw_any_bug_found(struct dmi_system_id *d)
{
bios_with_sw_any_bug = 1;
return 0;
Ar Llu, 2006-09-25 am 11:23 -0700, ysgrifennodd Venkatesh Pallipadi:
> Patch below resolves this section mismatch issue.
>
> Please apply.
>
> Thanks,
> Venki
I was about to send the same
> Make the sections proper and get rid of section mismatch warnings.
>
> Signed-off-by: Venkatesh Pallipadi <[email protected]>
Acked-by: Alan Cox <[email protected]>
on 2.6.18-git4 SMP x86_64
[xxx@localhost linux-2.6.18]$ make -j 4
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CHK include/linux/compile.h
MODPOST vmlinux
Building modules, stage 2.
Kernel: arch/x86_64/boot/bzImage is ready (#4)
MODPOST 1150 modules
WARNING: arch/x86_64/kernel/cpufreq/acpi-cpufreq.o - Section mismatch:
reference to .init.data: from .text between 'acpi_cpufreq_cpu_init'
(at offset 0x3b9) and 'acpi_cpufreq_target'
WARNING: drivers/atm/he.o - Section mismatch: reference to .init.text:
from .text between 'he_start' (at offset 0x211e) and 'he_service_tbrq'
xboom