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);
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;
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)
{