mirror_iproute2/rdma
Leon Romanovsky 378dd31b4b rdma: Fix broken 32-bit compilation
Allow compilation of rdmatool on 32-bits platforms.

rdma
    CC       rdma.o
    CC       utils.o
    CC       dev.o
    CC       link.o
In file included from rdma.h:26:0,
                 from dev.c:12:
dev.c: In function 'dev_caps_tostr':
../include/utils.h:269:38: warning: left shift count >= width of type [-Wshift-count-overflow]
 #define BIT(nr)                 (1UL << (nr))
                                      ^
rdma.h:32:61: note: in expansion of macro 'BIT'
 #define RDMA_BITMAP_ENUM(name, bit_no) RDMA_BITMAP_##name = BIT(bit_no),
                                                             ^~~

Fixes: 40df8263a0 ("rdma: Add dev object")
Reported-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2018-12-13 11:34:44 -08:00
..
include/uapi/rdma rdma: align uapi headers with 4.20-rc5 2018-12-07 09:25:59 -08:00
.gitignore rdma: Add basic infrastructure for RDMA tool 2017-08-21 17:07:44 -07:00
dev.c rdma: Fix broken 32-bit compilation 2018-12-13 11:34:44 -08:00
link.c rdma: Fix representation of PortInfo CapabilityMask 2018-09-17 08:59:13 -07:00
Makefile iproute2: Installation errors without libmnl 2018-12-04 14:27:08 -08:00
rdma.c rdma: print driver resource attributes 2018-05-18 09:17:16 -07:00
rdma.h rdma: make local functions static 2018-11-19 11:42:44 -08:00
res.c rdma: Refresh help section of resource information 2018-11-05 08:36:36 -08:00
utils.c rdma: make local functions static 2018-11-19 11:42:44 -08:00