From 8f478ec2b3dabdc5d667a0de8997c5660e2b118d Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 24 Aug 2017 15:00:59 -0700 Subject: [PATCH] rdma: fix duplicate initialization in port_names MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Build with warnings enable spotted this. link.c:51:58: note: (near initialization for ‘rdma_port_names[23]’) rdma_port_names[] = { RDMA_PORT_FLAGS(RDMA_BITMAP_NAMES) }; Assume that fields were in order and 25 is the missing value. Signed-off-by: Stephen Hemminger --- rdma/link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdma/link.c b/rdma/link.c index eae96cd89..3a4b00bd5 100644 --- a/rdma/link.c +++ b/rdma/link.c @@ -42,7 +42,7 @@ static const char *caps_to_str(uint32_t idx) x(CAP_MASK_NOTICE, 22) \ x(BOOT_MGMT, 23) \ x(LINK_LATENCY, 24) \ - x(CLIENT_REG, 23) \ + x(CLIENT_REG, 25) \ x(IP_BASED_GIDS, 26) enum { RDMA_PORT_FLAGS(RDMA_BITMAP_ENUM) }; -- 2.47.2