Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c4187b7 authored by Justin Skists's avatar Justin Skists Committed by Greg Kroah-Hartman
Browse files

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: default avatarJustin Skists <justin.skists@juzza.co.uk>
Reviewed-by: default avatarNeilBrown <neilb@suse.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fb28c0e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,