Message ID | 1468323167-1843-1-git-send-email-weiyj_lk@163.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
On Tue, Jul 12, 2016 at 11:32:47AM +0000, weiyj_lk@163.com wrote: > From: Wei Yongjun <yongjun_wei@trendmicro.com.cn> > > Fixes the following sparse warning: > > drivers/infiniband/hw/mlx5/main.c:2574:25: warning: duplicate const > > Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Thanks, Acked-by: Leon Romanovsky <leonro@mellanox.com> > --- > drivers/infiniband/hw/mlx5/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c > index 7fa2fe7..a342d73 100644 > --- a/drivers/infiniband/hw/mlx5/main.c > +++ b/drivers/infiniband/hw/mlx5/main.c > @@ -2571,7 +2571,7 @@ dealloc_counters: > return ret; > } > > -static const char const *names[] = { > +static const char * const names[] = { > "rx_write_requests", > "rx_read_requests", > "rx_atomic_requests", > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, 2016-07-12 at 11:32 +0000, weiyj_lk@163.com wrote: > From: Wei Yongjun <yongjun_wei@trendmicro.com.cn> > > Fixes the following sparse warning: > > drivers/infiniband/hw/mlx5/main.c:2574:25: warning: duplicate const > > Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> > Thanks, applied.
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 7fa2fe7..a342d73 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -2571,7 +2571,7 @@ dealloc_counters: return ret; } -static const char const *names[] = { +static const char * const names[] = { "rx_write_requests", "rx_read_requests", "rx_atomic_requests",