From: Alex Zhuravlev Date: Wed, 5 Feb 2014 11:08:52 +0000 (+0400) Subject: LU-4586 ptlrpc: cast type in the swith op X-Git-Tag: 2.5.56~58 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=004095a99b472b13984eabca412b9c1fc002fb81;p=fs%2Flustre-release.git LU-4586 ptlrpc: cast type in the swith op should allow to build with gcc-4.7.2 Signed-off-by: Alex Zhuravlev Change-Id: I489ea927d3dc87a7b01f57c5d390612c015b8c47 Reviewed-on: http://review.whamcloud.com/9130 Tested-by: Jenkins Reviewed-by: James Simmons Reviewed-by: Bob Glossman Tested-by: Maloo Reviewed-by: Li Xi Reviewed-by: Oleg Drokin --- diff --git a/lustre/ptlrpc/nrs_tbf.c b/lustre/ptlrpc/nrs_tbf.c index eb5d955..5d37c52 100644 --- a/lustre/ptlrpc/nrs_tbf.c +++ b/lustre/ptlrpc/nrs_tbf.c @@ -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);