Skip to content

Commit

Permalink
xen:pvhvm: Modpost section mismatch fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Raghavendra D Prabhu authored and Konrad Rzeszutek Wilk committed Jul 11, 2011
1 parent ee339fe commit 3c52b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/xen/platform-pci-unplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3c52b7b

Please sign in to comment.