OpenCloudOS-Kernel/drivers/infiniband/hw
Jason Gunthorpe 3110b942d3 IB/qib: Fix clang confusion of NULL pointer comparison
clang becomes confused due to the comparison to NULL in a integer constant
expression context:

 >> drivers/infiniband/hw/qib/qib_sysfs.c:413:1: error: static_assert expression is not an integral constant expression
    QIB_DIAGC_ATTR(rc_resends);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~
    drivers/infiniband/hw/qib/qib_sysfs.c:406:16: note: expanded from macro 'QIB_DIAGC_ATTR'
            static_assert(&((struct qib_ibport *)0)->rvp.n_##N != (u64 *)NULL);    \

Nathan found __same_type that solves this problem nicely, so use it instead.

Reported-by: kernel test robot <lkp@intel.com>
Suggested-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-09-13 16:28:39 -03:00
..
bnxt_re RDMA v5.15 merge window 2nd Pull Request 2021-09-09 11:14:14 -07:00
cxgb4 Merge branch 'sg_nents' into rdma.git for-next 2021-08-30 09:49:59 -03:00
efa RDMA v5.15 merge window Pull Request 2021-09-02 14:47:21 -07:00
hfi1 RDMA v5.15 merge window 2nd Pull Request 2021-09-09 11:14:14 -07:00
hns Merge branch 'sg_nents' into rdma.git for-next 2021-08-30 09:49:59 -03:00
irdma RDMA v5.15 merge window Pull Request 2021-09-02 14:47:21 -07:00
mlx4 Merge branch 'sg_nents' into rdma.git for-next 2021-08-30 09:49:59 -03:00
mlx5 RDMA v5.15 merge window 2nd Pull Request 2021-09-09 11:14:14 -07:00
mthca RDMA: switch from 'pci_' to 'dma_' API 2021-08-23 13:43:54 -03:00
ocrdma RDMA: Globally allocate and release QP memory 2021-08-03 13:44:27 -03:00
qedr Merge branch 'sg_nents' into rdma.git for-next 2021-08-30 09:49:59 -03:00
qib IB/qib: Fix clang confusion of NULL pointer comparison 2021-09-13 16:28:39 -03:00
usnic RDMA: Globally allocate and release QP memory 2021-08-03 13:44:27 -03:00
vmw_pvrdma RDMA: switch from 'pci_' to 'dma_' API 2021-08-23 13:43:54 -03:00
Makefile RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00