]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Stagin: lustre: Fix externs should be avoided in .c
authorHaneen Mohammed <hamohammed.sa@gmail.com>
Sat, 21 Mar 2015 07:48:30 +0000 (10:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Mar 2015 21:14:55 +0000 (22:14 +0100)
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>
drivers/staging/lustre/lustre/include/obd_class.h
drivers/staging/lustre/lustre/obdclass/genops.c

index e75f4b5a4362980c85f0417f7cc06670cbae7a67..5314f6f3dd43d202d93798d149212afb3cc255bd 100644 (file)
@@ -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,
index 01858b0af01c4d5b786e89c1c393ecd1d0d2bd31..f2165635e6eba557e165d1d34111eee7bdf23fe7 100644 (file)
@@ -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;