aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/obdclass/genops.c
diff options
context:
space:
mode:
authorShraddha Barke <shraddha.6596@gmail.com>2015-10-02 23:19:13 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-04 08:46:19 +0100
commitcbe327246da118513004f9022e1061d11a8f320b (patch)
tree76600367c90d8f6d87d22ee4ffa0991d12e8ec50 /drivers/staging/lustre/lustre/obdclass/genops.c
parentStaging: lustre: obdclass: obd_config: Declare as static (diff)
downloadlinux-dev-cbe327246da118513004f9022e1061d11a8f320b.tar.xz
linux-dev-cbe327246da118513004f9022e1061d11a8f320b.zip
Staging: lustre: obdclass: genops: Declare as static
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>
Diffstat (limited to 'drivers/staging/lustre/lustre/obdclass/genops.c')
-rw-r--r--drivers/staging/lustre/lustre/obdclass/genops.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/lustre/lustre/obdclass/genops.c b/drivers/staging/lustre/lustre/obdclass/genops.c
index c1bffcd8b8ef..2ae0ea903be0 100644
--- a/drivers/staging/lustre/lustre/obdclass/genops.c
+++ b/drivers/staging/lustre/lustre/obdclass/genops.c
@@ -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)
{