From: Dou Liyang Date: Wed, 17 Jan 2018 03:45:43 +0000 (+0800) Subject: x86/x2apic: Mark set_x2apic_phys_mode() as __init X-Git-Tag: pci-v4.17-changes-2~110^2~12 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=afed7d172091040f38c75a2927fed170ea11585f;p=users%2Fdwmw2%2Flinux.git x86/x2apic: Mark set_x2apic_phys_mode() as __init set_x2apic_phys_mode() is only called as part of early_param() initialization - so mark it as __init. Signed-off-by: Dou Liyang Cc: Juergen Gross Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20180117034543.26723-1-douly.fnst@cn.fujitsu.com Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/apic/x2apic_phys.c b/arch/x86/kernel/apic/x2apic_phys.c index f8d9d69994e61..e2829bf40e4a0 100644 --- a/arch/x86/kernel/apic/x2apic_phys.c +++ b/arch/x86/kernel/apic/x2apic_phys.c @@ -14,7 +14,7 @@ int x2apic_phys; static struct apic apic_x2apic_phys; -static int set_x2apic_phys_mode(char *arg) +static int __init set_x2apic_phys_mode(char *arg) { x2apic_phys = 1; return 0;