diff options
author | Haneen Mohammed <hamohammed.sa@gmail.com> | 2015-03-21 08:48:30 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-23 22:14:55 +0100 |
commit | 826ad46d05c631d139289d095a68ea3c58aee821 (patch) | |
tree | 187d6e7391c5ecff0c59a3d893b66a73150752dd /drivers | |
parent | Staging: lustre: Fix externs should be avoided in .c (diff) | |
download | linux-826ad46d05c631d139289d095a68ea3c58aee821.tar.xz linux-826ad46d05c631d139289d095a68ea3c58aee821.zip |
Stagin: lustre: Fix externs should be avoided in .c
This patch moves extern declaration from genops.c to obd_class.h,
addressing checkpatch.pl warning: externs should be avoided in .c
Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/lustre/lustre/include/obd_class.h | 1 | ||||
-rw-r--r-- | drivers/staging/lustre/lustre/obdclass/genops.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/include/obd_class.h b/drivers/staging/lustre/lustre/include/obd_class.h index e75f4b5a4362..5314f6f3dd43 100644 --- a/drivers/staging/lustre/lustre/include/obd_class.h +++ b/drivers/staging/lustre/lustre/include/obd_class.h @@ -72,6 +72,7 @@ extern int lustre_get_jobid(char *jobid); struct lu_device_type; /* genops.c */ +extern struct list_head obd_types; struct obd_export *class_conn2export(struct lustre_handle *); int class_register_type(struct obd_ops *, struct md_ops *, struct lprocfs_vars *, const char *nm, diff --git a/drivers/staging/lustre/lustre/obdclass/genops.c b/drivers/staging/lustre/lustre/obdclass/genops.c index 01858b0af01c..f2165635e6eb 100644 --- a/drivers/staging/lustre/lustre/obdclass/genops.c +++ b/drivers/staging/lustre/lustre/obdclass/genops.c @@ -43,7 +43,6 @@ #include "../include/obd_class.h" #include "../include/lprocfs_status.h" -extern struct list_head obd_types; spinlock_t obd_types_lock; struct kmem_cache *obd_device_cachep; |