Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen/pvcalls: Make pvcalls_back_global static

Fix sparse warning:

drivers/xen/pvcalls-back.c:30:3: warning:
symbol 'pvcalls_back_global' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20200410115620.33024-1-yuehaibing@huawei.com
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>

authored by

YueHaibing and committed by
Boris Ostrovsky
53338753 c54b071c

+1 -1
+1 -1
drivers/xen/pvcalls-back.c
··· 24 24 #define PVCALLS_VERSIONS "1" 25 25 #define MAX_RING_ORDER XENBUS_MAX_RING_GRANT_ORDER 26 26 27 - struct pvcalls_back_global { 27 + static struct pvcalls_back_global { 28 28 struct list_head frontends; 29 29 struct semaphore frontends_lock; 30 30 } pvcalls_back_global;