mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-15 22:15:13 +08:00
bb4cc9cca4
The addition of driver QP type with index 0xFF caused to the following
clang compilation error:
res.c:152:10: warning: result of comparison of constant 256 with expression of type 'uint8_t' (aka 'unsigned char') is always true [-Wtautological-constant-out-of-range-compare]
if (idx < ARRAY_SIZE(qp_types_str) && qp_types_str[idx])
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~
Instead of allocating very sparse array, simply create separate check
for the driver QP type.
Fixes:
|
||
---|---|---|
.. | ||
include/uapi/rdma | ||
.gitignore | ||
dev.c | ||
link.c | ||
Makefile | ||
rdma.c | ||
rdma.h | ||
res-cmid.c | ||
res-cq.c | ||
res-ctx.c | ||
res-mr.c | ||
res-pd.c | ||
res-qp.c | ||
res-srq.c | ||
res.c | ||
res.h | ||
stat-mr.c | ||
stat.c | ||
stat.h | ||
sys.c | ||
utils.c |