From 004095a99b472b13984eabca412b9c1fc002fb81 Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Wed, 5 Feb 2014 15:08:52 +0400 Subject: [PATCH] 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 --- lustre/ptlrpc/nrs_tbf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 1.8.3.1