Whamcloud - gitweb
LU-4586 ptlrpc: cast type in the swith op
[fs/lustre-release.git] / lustre / ptlrpc / nrs_tbf.c
index eb5d955..5d37c52 100644 (file)
@@ -1211,7 +1211,7 @@ int nrs_tbf_ctl(struct ptlrpc_nrs_policy *policy, enum ptlrpc_nrs_ctl opc,
 
        LASSERT(spin_is_locked(&policy->pol_nrs->nrs_lock));
 
-       switch (opc) {
+       switch ((enum nrs_ctl_tbf)opc) {
        default:
                RETURN(-EINVAL);