diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-04-08 05:46:05 +0300 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2020-04-08 11:46:25 +0300 |
commit | 0e1b4271078787d3408d3dd314d80b290578cc00 (patch) | |
tree | 1edbb1b8185eb8d31298d0fd6a584ba28a5af0c9 /arch/x86 | |
parent | 3a169c0be75b59dd85d159493634870cdec6d3c4 (diff) | |
download | linux-0e1b4271078787d3408d3dd314d80b290578cc00.tar.xz |
x86/xen: make xen_pvmmu_arch_setup() static
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>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/xen/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index 33b0e20df7fc..1a2d8a50dac4 100644 --- a/arch/x86/xen/setup.c +++ b/arch/x86/xen/setup.c @@ -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); |