staging:lustre: Fix externs should be avoided in .c files warning
authorDulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
Sun, 20 Oct 2013 17:35:37 +0000 (23:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Oct 2013 03:50:01 +0000 (04:50 +0100)
Fix the checkpatch.pl warning 'externs should be avoided in .c files' in
lustre/lov.

Signed-off-by: Dulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lov/lov_dev.c
drivers/staging/lustre/lustre/lov/lov_internal.h
drivers/staging/lustre/lustre/lov/lov_obd.c

index 7f422aacf6e57d08b07aff415693c1ed6858a089..1f33b04b0c38c06c02f9dae360ff5269666d63e4 100644 (file)
@@ -44,6 +44,8 @@
 #include <obd_class.h>
 
 #include "lov_cl_internal.h"
+#include "lov_internal.h"
+
 
 struct kmem_cache *lov_lock_kmem;
 struct kmem_cache *lov_object_kmem;
index 9870d360a15a8c7555cca1e423f8ce81d20f0c03..796da893087605bf520626ead6b5e37526317707 100644 (file)
@@ -89,6 +89,8 @@ struct lov_request_set {
 
 extern struct kmem_cache *lov_oinfo_slab;
 
+extern struct lu_kmem_descr lov_caches[];
+
 void lov_finish_set(struct lov_request_set *set);
 
 static inline void lov_get_reqset(struct lov_request_set *set)
index 379e2847f99bc6d0943fcbdd2d8696e263c71414..1f9722828455d12408b645505a2b0a9c3ab27825 100644 (file)
@@ -2823,8 +2823,6 @@ struct obd_ops lov_obd_ops = {
 
 struct kmem_cache *lov_oinfo_slab;
 
-extern struct lu_kmem_descr lov_caches[];
-
 int __init lov_init(void)
 {
        struct lprocfs_static_vars lvars = { 0 };