* [PATCH -next] IB/mlx5: Fix duplicate const warning
@ 2016-07-12 11:32 weiyj_lk-9Onoh4P/yGk
[not found] ` <1468323167-1843-1-git-send-email-weiyj_lk-9Onoh4P/yGk@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: weiyj_lk-9Onoh4P/yGk @ 2016-07-12 11:32 UTC (permalink / raw)
To: Matan Barak, Leon Romanovsky, Doug Ledford, Sean Hefty,
Hal Rosenstock
Cc: Wei Yongjun, linux-rdma-u79uwXL29TY76Z2rM5mHXA
From: Wei Yongjun <yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org>
Fixes the following sparse warning:
drivers/infiniband/hw/mlx5/main.c:2574:25: warning: duplicate const
Signed-off-by: Wei Yongjun <yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org>
---
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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <1468323167-1843-1-git-send-email-weiyj_lk-9Onoh4P/yGk@public.gmane.org>]
* Re: [PATCH -next] IB/mlx5: Fix duplicate const warning [not found] ` <1468323167-1843-1-git-send-email-weiyj_lk-9Onoh4P/yGk@public.gmane.org> @ 2016-07-12 12:17 ` Leon Romanovsky 2016-08-02 17:02 ` Doug Ledford 1 sibling, 0 replies; 3+ messages in thread From: Leon Romanovsky @ 2016-07-12 12:17 UTC (permalink / raw) To: weiyj_lk-9Onoh4P/yGk Cc: Matan Barak, Doug Ledford, Sean Hefty, Hal Rosenstock, Wei Yongjun, linux-rdma-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1: Type: text/plain, Size: 1260 bytes --] On Tue, Jul 12, 2016 at 11:32:47AM +0000, weiyj_lk-9Onoh4P/yGk@public.gmane.org wrote: > From: Wei Yongjun <yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org> > > Fixes the following sparse warning: > > drivers/infiniband/hw/mlx5/main.c:2574:25: warning: duplicate const > > Signed-off-by: Wei Yongjun <yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org> Thanks, Acked-by: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> > --- > 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] IB/mlx5: Fix duplicate const warning [not found] ` <1468323167-1843-1-git-send-email-weiyj_lk-9Onoh4P/yGk@public.gmane.org> 2016-07-12 12:17 ` Leon Romanovsky @ 2016-08-02 17:02 ` Doug Ledford 1 sibling, 0 replies; 3+ messages in thread From: Doug Ledford @ 2016-08-02 17:02 UTC (permalink / raw) To: weiyj_lk-9Onoh4P/yGk, Leon Romanovsky Cc: Wei Yongjun, linux-rdma-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1: Type: text/plain, Size: 516 bytes --] On Tue, 2016-07-12 at 11:32 +0000, weiyj_lk-9Onoh4P/yGk@public.gmane.org wrote: > From: Wei Yongjun <yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org> > > Fixes the following sparse warning: > > drivers/infiniband/hw/mlx5/main.c:2574:25: warning: duplicate const > > Signed-off-by: Wei Yongjun <yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org> > Thanks, applied. -- Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> GPG KeyID: 0E572FDD [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-08-02 17:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-12 11:32 [PATCH -next] IB/mlx5: Fix duplicate const warning weiyj_lk-9Onoh4P/yGk
[not found] ` <1468323167-1843-1-git-send-email-weiyj_lk-9Onoh4P/yGk@public.gmane.org>
2016-07-12 12:17 ` Leon Romanovsky
2016-08-02 17:02 ` Doug Ledford
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.