lkml.org 
[lkml]   [2010]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Section mismatch: acpi_early_processor_set_pdc()
Date
Hi all,

kernel-2.6.33-rc4, compiler output:

WARNING: Section mismatch in reference from the function
acpi_early_processor_set_pdc() to the variable .cpuinit.data:processor_idle_dmi_table
The function acpi_early_processor_set_pdc() references
the variable __cpuinitdata processor_idle_dmi_table.
This is often because acpi_early_processor_set_pdc lacks a __cpuinitdata
annotation or the annotation of processor_idle_dmi_table is wrong.

acpi_early_processor_set_pdc() is invoked only from __init acpi_bus_init()
Mark it __cpuinit.

The patch is against 2.6.33-rc4

Signed-off-by: Marin Mitov <mitov@issp.bas.bg>

===========================================================================
--- a/drivers/acpi/processor_pdc.c 2010-01-13 21:53:14.000000000 +0200
+++ b/drivers/acpi/processor_pdc.c 2010-01-13 21:58:39.000000000 +0200
@@ -151,7 +151,7 @@
return AE_OK;
}

-void acpi_early_processor_set_pdc(void)
+void __cpuinit acpi_early_processor_set_pdc(void)
{
/*
* Check whether the system is DMI table. If yes, OSPM

\
 
 \ /
  Last update: 2010-01-13 21:47    [W:0.054 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site