summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/platform-pci-unplug.c
diff options
context:
space:
mode:
authorRaghavendra D Prabhu <rprabhu@wnohang.net>2011-07-09 18:29:07 +0200
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-07-11 19:37:04 +0200
commit3c52b7bf6967e53dec3fbbcf99fee65e49e600df (patch)
treed3995473bae6373db8d7a8c8ae8ec4c6c716ff93 /arch/x86/xen/platform-pci-unplug.c
parentxen/pci: Move check for acpi_sci_override_gsi to xen_setup_acpi_sci. (diff)
downloadlinux-3c52b7bf6967e53dec3fbbcf99fee65e49e600df.tar.xz
linux-3c52b7bf6967e53dec3fbbcf99fee65e49e600df.zip
xen:pvhvm: Modpost section mismatch fix
Removing __init from check_platform_magic since it is called by xen_unplug_emulated_devices in non-init contexts (It probably gets inlined because of -finline-functions-called-once, removing __init is more to avoid mismatch being reported). Signed-off-by: Raghavendra D Prabhu <rprabhu@wnohang.net> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'arch/x86/xen/platform-pci-unplug.c')
-rw-r--r--arch/x86/xen/platform-pci-unplug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/xen/platform-pci-unplug.c b/arch/x86/xen/platform-pci-unplug.c
index 25c52f94a27c..ffcf2615640b 100644
--- a/arch/x86/xen/platform-pci-unplug.c
+++ b/arch/x86/xen/platform-pci-unplug.c
@@ -35,7 +35,7 @@ EXPORT_SYMBOL_GPL(xen_platform_pci_unplug);
#ifdef CONFIG_XEN_PVHVM
static int xen_emul_unplug;
-static int __init check_platform_magic(void)
+static int check_platform_magic(void)
{
short magic;
char protocol;