diff options
| author | Jack Wang <[email protected]> | 2021-05-31 14:28:35 +0200 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2021-05-31 15:38:08 -0300 |
| commit | 0e8558476faf02ec51256cad9c487c93c346198c (patch) | |
| tree | 3a00d20a6be2c14cb4c28731f2986cd191c4e61b /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 7ecd7e290bee0ab9cf75b79a367a4cc113cf8292 (diff) | |
RDMA/rtrs: Avoid Wtautological-constant-out-of-range-compare
drivers/infiniband/ulp/rtrs/rtrs-clt.c:1786:19: warning: result of comparison of
constant 'MAX_SESS_QUEUE_DEPTH' (65536) with expression of type 'u16'
(aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
To fix it, limit MAX_SESS_QUEUE_DEPTH to u16 max, which is 65535, and
drop the check in rtrs-clt, as it's the type u16 max.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jack Wang <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions