Skip to content

Commit

Permalink
xen: resolve section mismatch warnings in xen-acpi-processor
Browse files Browse the repository at this point in the history
The following resolves a section mismatch warning below in xen-acpi-processor introduced by
3fac101 [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>
  • Loading branch information
Ben Guthro authored and Konrad Rzeszutek Wilk committed Apr 19, 2013
1 parent 3fac101 commit 18c0025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/xen/xen-acpi-processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ static unsigned int __init get_max_acpi_id(void)
* for_each_[present|online]_cpu macros which are banded to the virtual
* CPU amount.
*/
static acpi_status __init
static acpi_status
read_acpi_id(acpi_handle handle, u32 lvl, void *context, void **rv)
{
u32 acpi_id;
Expand Down Expand Up @@ -385,7 +385,7 @@ read_acpi_id(acpi_handle handle, u32 lvl, void *context, void **rv)

return AE_OK;
}
static int __init check_acpi_ids(struct acpi_processor *pr_backup)
static int check_acpi_ids(struct acpi_processor *pr_backup)
{

if (!pr_backup)
Expand Down

0 comments on commit 18c0025

Please sign in to comment.