xen:pvhvm: Modpost section mismatch fix
authorRaghavendra D Prabhu <rprabhu@wnohang.net>
Sat, 9 Jul 2011 16:29:07 +0000 (21:59 +0530)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 11 Jul 2011 17:37:04 +0000 (13:37 -0400)
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>
arch/x86/xen/platform-pci-unplug.c

index 25c52f9..ffcf261 100644 (file)
@@ -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;