aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2020-02-17 13:43:18 -0700
committerJason Gunthorpe <[email protected]>2020-02-19 16:42:12 -0400
commit4ca501d6aaf21de31541deac35128bbea8427aa6 (patch)
tree51c612d6ee4c93623f198706c4161fdf5546a40f /tools/perf/scripts/python/export-to-sqlite.py
parente4103312d7b7afb8a3a7a842a33ef2b1856b2c0f (diff)
RDMA/core: Fix use of logical OR in get_new_pps
Clang warns: ../drivers/infiniband/core/security.c:351:41: warning: converting the enum constant to a boolean [-Wint-in-bool-context] if (!(qp_attr_mask & (IB_QP_PKEY_INDEX || IB_QP_PORT)) && qp_pps) { ^ 1 warning generated. A bitwise OR should have been used instead. Fixes: 1dd017882e01 ("RDMA/core: Fix protection fault in get_pkey_idx_qp_list") Link: https://lore.kernel.org/r/[email protected] Link: https://github.com/ClangBuiltLinux/linux/issues/889 Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Nathan Chancellor <[email protected]> Reviewed-by: Leon Romanovsky <[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