arm/xen: make _xen_start_info static
authorJason Yan <yanaijie@huawei.com>
Wed, 15 Apr 2020 08:48:53 +0000 (16:48 +0800)
committerJuergen Gross <jgross@suse.com>
Fri, 17 Apr 2020 05:45:12 +0000 (07:45 +0200)
Fix the following sparse warning:

arch/arm64/xen/../../arm/xen/enlighten.c:39:19: warning: symbol
'_xen_start_info' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Link: https://lore.kernel.org/r/20200415084853.5808-1-yanaijie@huawei.com
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/arm/xen/enlighten.c

index dd6804a64f1a041935e80919678be6c8f22594e6..fd4e1ce1daf96ae57aa70c84305781325252ec94 100644 (file)
@@ -36,7 +36,7 @@
 
 #include <linux/mm.h>
 
-struct start_info _xen_start_info;
+static struct start_info _xen_start_info;
 struct start_info *xen_start_info = &_xen_start_info;
 EXPORT_SYMBOL(xen_start_info);