From: Stephen Hemminger Date: Thu, 24 Aug 2017 22:00:59 +0000 (-0700) Subject: rdma: fix duplicate initialization in port_names X-Git-Tag: v4.13.0~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f478ec2b3dabdc5d667a0de8997c5660e2b118d;p=thirdparty%2Fiproute2.git rdma: fix duplicate initialization in port_names 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 --- 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) };