OSDN Git Service

x86/xen: make xen_pvmmu_arch_setup() static
authorJason Yan <yanaijie@huawei.com>
Wed, 8 Apr 2020 02:46:05 +0000 (10:46 +0800)
committerJuergen Gross <jgross@suse.com>
Wed, 8 Apr 2020 08:46:25 +0000 (10:46 +0200)
Fix the following sparse warning:

arch/x86/xen/setup.c:998:12: warning: symbol 'xen_pvmmu_arch_setup' was not
declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20200408024605.42394-1-yanaijie@huawei.com
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/setup.c

index 33b0e20..1a2d8a5 100644 (file)
@@ -985,7 +985,7 @@ void xen_enable_syscall(void)
 #endif /* CONFIG_X86_64 */
 }
 
-void __init xen_pvmmu_arch_setup(void)
+static void __init xen_pvmmu_arch_setup(void)
 {
        HYPERVISOR_vm_assist(VMASST_CMD_enable, VMASST_TYPE_4gb_segments);
        HYPERVISOR_vm_assist(VMASST_CMD_enable, VMASST_TYPE_writable_pagetables);