mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-15 17:14:00 +08:00
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 <justin.skists@juzza.co.uk> Reviewed-by: NeilBrown <neilb@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fb28c0e0fe
commit
6c4187b706
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user