From: Justin Skists Date: Thu, 10 May 2018 19:41:29 +0000 (+0100) Subject: staging: lustre: lnet: add static to libcfs_dev declaration X-Git-Tag: for-linus-20180616~25^2~221 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=6c4187b706735d182d7abcbe663ca398a6619841;p=linux-2.6-block.git staging: lustre: lnet: add static to libcfs_dev declaration Add a static prefix to the declaration for libcfs_dev. This would fix the following sparse warning: drivers/staging/lustre/lnet/libcfs/module.c:317:19: warning: symbol 'libcfs_dev' was not declared. Should it be static? Signed-off-by: Justin Skists Reviewed-by: NeilBrown Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lnet/libcfs/module.c b/drivers/staging/lustre/lnet/libcfs/module.c index ca942f474a55..e021e439f140 100644 --- a/drivers/staging/lustre/lnet/libcfs/module.c +++ b/drivers/staging/lustre/lnet/libcfs/module.c @@ -314,7 +314,7 @@ static const struct file_operations libcfs_fops = { .unlocked_ioctl = libcfs_psdev_ioctl, }; -struct miscdevice libcfs_dev = { +static struct miscdevice libcfs_dev = { .minor = MISC_DYNAMIC_MINOR, .name = "lnet", .fops = &libcfs_fops,