Staging: lustre: obdclass: genops: Declare as static
authorShraddha Barke <shraddha.6596@gmail.com>
Fri, 2 Oct 2015 17:49:13 +0000 (23:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 07:46:19 +0000 (08:46 +0100)
Declare class_get_type and class_search_type as static since they
are used only in this particular file. Also remove the declaration
from header files.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
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 5ab72964c8f2bf26b07f8ca9bb03fbc061f299f7..2cd445821251d0e03d369b1db31dcdfd7b72e301 100644 (file)
@@ -256,8 +256,6 @@ void class_import_put(struct obd_import *);
 struct obd_import *class_new_import(struct obd_device *obd);
 void class_destroy_import(struct obd_import *exp);
 
-struct obd_type *class_search_type(const char *name);
-struct obd_type *class_get_type(const char *name);
 void class_put_type(struct obd_type *type);
 int class_connect(struct lustre_handle *conn, struct obd_device *obd,
                  struct obd_uuid *cluuid);
index c1bffcd8b8ef3c080ee3bd7cbf59552fb9db6560..2ae0ea903be04f7326f9aa00b76d5fed31018426 100644 (file)
@@ -90,7 +90,7 @@ static void obd_device_free(struct obd_device *obd)
        OBD_SLAB_FREE_PTR(obd, obd_device_cachep);
 }
 
-struct obd_type *class_search_type(const char *name)
+static struct obd_type *class_search_type(const char *name)
 {
        struct list_head *tmp;
        struct obd_type *type;
@@ -106,9 +106,8 @@ struct obd_type *class_search_type(const char *name)
        spin_unlock(&obd_types_lock);
        return NULL;
 }
-EXPORT_SYMBOL(class_search_type);
 
-struct obd_type *class_get_type(const char *name)
+static struct obd_type *class_get_type(const char *name)
 {
        struct obd_type *type = class_search_type(name);
 
@@ -140,7 +139,6 @@ struct obd_type *class_get_type(const char *name)
        }
        return type;
 }
-EXPORT_SYMBOL(class_get_type);
 
 void class_put_type(struct obd_type *type)
 {