Whamcloud - gitweb
LU-3179 build: fix compilation error with gcc 4.7.2
[fs/lustre-release.git] / lustre / ptlrpc / nrs_crr.c
index 0335bf9..6545913 100644 (file)
@@ -278,7 +278,7 @@ int nrs_crrn_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_crr)opc) {
        default:
                RETURN(-EINVAL);