Whamcloud - gitweb
LU-17592 build: kernel 6.8 -Werror=missing-prototypes
[fs/lustre-release.git] / lustre / obdclass / genops.c
index b75aaaa..0e46ae7 100644 (file)
@@ -88,7 +88,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)
+SERVER_ONLY struct obd_type *class_search_type(const char *name)
 {
        struct kobject *kobj = kset_find_obj(lustre_kset, name);
 
@@ -98,9 +98,9 @@ struct obd_type *class_search_type(const char *name)
        kobject_put(kobj);
        return NULL;
 }
-EXPORT_SYMBOL(class_search_type);
+SERVER_ONLY_EXPORT_SYMBOL(class_search_type);
 
-struct obd_type *class_get_type(const char *name)
+SERVER_ONLY struct obd_type *class_get_type(const char *name)
 {
        struct obd_type *type;
 
@@ -155,7 +155,7 @@ struct obd_type *class_get_type(const char *name)
        rcu_read_unlock();
        return type;
 }
-EXPORT_SYMBOL(class_get_type);
+SERVER_ONLY_EXPORT_SYMBOL(class_get_type);
 
 void class_put_type(struct obd_type *type)
 {