]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
rdma: fix duplicate initialization in port_names
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 24 Aug 2017 22:00:59 +0000 (15:00 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 24 Aug 2017 22:02:16 +0000 (15:02 -0700)
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 <stephen@networkplumber.org>
rdma/link.c

index eae96cd89b4883e64c719d71bd560afe5dbdbd0b..3a4b00bd533b18267fdfe203e0fea8494236539c 100644 (file)
@@ -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) };