aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Guthro <benjamin.guthro@citrix.com>2013-04-18 17:39:48 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2013-04-19 10:44:23 -0400
commit18c0025b692a293e3e4aecb34264563c0a442448 (patch)
treeaf55ec68f1a623332c4187e6e6e227e343aeda2b
parent3fac10145b766a2244422788f62dc35978613fd8 (diff)
xen: resolve section mismatch warnings in xen-acpi-processor
The following resolves a section mismatch warning below in xen-acpi-processor introduced by 3fac10145b766a2244422788f62dc35978613fd8 [13/13] xen: Re-upload processor PM data to hypervisor after S3 resume (v2) Warning: WARNING: drivers/xen/built-in.o(.text+0x2056a): Section mismatch in reference from the function xen_upload_processor_pm_data() to the function .init.text:read_acpi_id() The function xen_upload_processor_pm_data() references the function __init read_acpi_id(). This is often because xen_upload_processor_pm_data lacks a __init annotation or the annotation of read_acpi_id is wrong. Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Ben Guthro <benjamin.guthro@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
-rw-r--r--drivers/xen/xen-acpi-processor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/xen-acpi-processor.c b/drivers/xen/xen-acpi-processor.c
index e2a53337725d..8abd7d579037 100644
--- a/drivers/xen/xen-acpi-processor.c
+++ b/drivers/xen/xen-acpi-processor.c
@@ -330,7 +330,7 @@ static unsigned int __init get_max_acpi_id(void)
330 * for_each_[present|online]_cpu macros which are banded to the virtual 330 * for_each_[present|online]_cpu macros which are banded to the virtual
331 * CPU amount. 331 * CPU amount.
332 */ 332 */
333static acpi_status __init 333static acpi_status
334read_acpi_id(acpi_handle handle, u32 lvl, void *context, void **rv) 334read_acpi_id(acpi_handle handle, u32 lvl, void *context, void **rv)
335{ 335{
336 u32 acpi_id; 336 u32 acpi_id;
@@ -385,7 +385,7 @@ read_acpi_id(acpi_handle handle, u32 lvl, void *context, void **rv)
385 385
386 return AE_OK; 386 return AE_OK;
387} 387}
388static int __init check_acpi_ids(struct acpi_processor *pr_backup) 388static int check_acpi_ids(struct acpi_processor *pr_backup)
389{ 389{
390 390
391 if (!pr_backup) 391 if (!pr_backup)