From 6a91436fcca792ee4225029d2a7372d5636d7c71 Mon Sep 17 00:00:00 2001 From: Mr NeilBrown Date: Thu, 16 Jul 2020 13:53:39 +1000 Subject: [PATCH] LU-6142 obdclass: make obd_psdev static obd_psdev is only used in one file, so it can be local to that file. Test-Parameters: trivial Signed-off-by: Mr NeilBrown Change-Id: Ib74d78e0e72e054d5f998d54f1476216926b293b Reviewed-on: https://review.whamcloud.com/39395 Tested-by: jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Arshad Hussain Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- lustre/include/obd_class.h | 1 - lustre/obdclass/class_obd.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lustre/include/obd_class.h b/lustre/include/obd_class.h index afb71e7..8148dcc 100644 --- a/lustre/include/obd_class.h +++ b/lustre/include/obd_class.h @@ -1861,7 +1861,6 @@ struct root_squash_info { int server_name2index(const char *svname, __u32 *idx, const char **endptr); /* linux-module.c */ -extern struct miscdevice obd_psdev; int obd_ioctl_getdata(char **buf, int *len, void __user *arg); int class_procfs_init(void); int class_procfs_clean(void); diff --git a/lustre/obdclass/class_obd.c b/lustre/obdclass/class_obd.c index a399698..9b34434 100644 --- a/lustre/obdclass/class_obd.c +++ b/lustre/obdclass/class_obd.c @@ -502,7 +502,7 @@ static struct file_operations obd_psdev_fops = { }; /* modules setup */ -struct miscdevice obd_psdev = { +static struct miscdevice obd_psdev = { .minor = MISC_DYNAMIC_MINOR, .name = OBD_DEV_NAME, .fops = &obd_psdev_fops, -- 1.8.3.1