Whamcloud - gitweb
LU-8066 obd_type: use typ_kobj.name as typ_name
[fs/lustre-release.git] / lustre / ptlrpc / sec.c
index dba6352..f0e7e1f 100644 (file)
@@ -1796,7 +1796,7 @@ static int sepol_helper(struct obd_import *imp)
            imp->imp_obd->obd_type == NULL) {
                rc = -EINVAL;
        } else {
-               argv[2] = imp->imp_obd->obd_type->typ_name;
+               argv[2] = (char *)imp->imp_obd->obd_type->typ_name;
                argv[4] = imp->imp_obd->obd_name;
                spin_lock(&imp->imp_sec->ps_lock);
                if (imp->imp_sec->ps_sepol_mtime == 0 &&