On Wed, Jul 05, 2023 at 10:30:12AM +0300, Leon Romanovsky wrote: > > On Tue, 13 Jun 2023 15:19:31 +0200, Daniel Vacek wrote: > > Our customer reported the below warning whe using Clang v16.0.4 and C++20, > > on a code that includes the header "/usr/include/infiniband/verbs.h": > > > > error: bitwise operation between different enumeration types ('ibv_access_flags' and > > 'ib_uverbs_access_flags') is deprecated [-Werror,-Wdeprecated-enum-enum-conversion] > > mem->mr = ibv_reg_mr(dev->pd, (void*)start, len, IBV_ACCESS_LOCAL_WRITE); > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > /usr/include/infiniband/verbs.h:2514:19: note: expanded from macro 'ibv_reg_mr' > > ((access) & IBV_ACCESS_OPTIONAL_RANGE) == 0)) > > ~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ > > 1 error generated. > > > > [...] > > Applied, thanks! > > [1/1] verbs: fix compilation warning with C++20 > https://git.kernel.org/rdma/rdma/c/9e5ccbfdd208a1 The more accurate link is https://github.com/linux-rdma/rdma-core/pull/1367 Thanks > > Best regards, > -- > Leon Romanovsky <leonro@xxxxxxxxxx>