linux/drivers/infiniband/hw/qib
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
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qib_6120_regs.h
qib_7220_regs.h
qib_7220.h Merge branch 'timer_setup' into for-next 2017-10-18 13:12:09 -04:00
qib_7322_regs.h
qib_common.h RDMA: Delete not-used static inline functions 2021-03-22 09:31:19 -03:00
qib_debugfs.c infiniband: qib: no need to check return value of debugfs_create functions 2019-01-24 09:22:29 -07:00
qib_debugfs.h
qib_diag.c RDMA: Use u64_to_user_ptr everywhere 2018-03-29 13:42:29 -06:00
qib_driver.c RDMA/hw/qib/qib_driver: Fix misspelling in 'ppd's param description 2021-01-22 14:37:30 -04:00
qib_eeprom.c RDMA/hw/qib/qib_eeprom: Fix misspelling of 'buff' in 'qib_eeprom_{read,write}()' 2021-01-22 14:37:30 -04:00
qib_file_ops.c RDMA: switch from 'pci_' to 'dma_' API 2021-08-23 13:43:54 -03:00
qib_fs.c qib_fs: switch to simple_recursive_removal() 2021-03-08 10:20:48 -05:00
qib_iba6120.c RDMA: Fix kernel-doc compilation warnings 2021-03-22 09:31:19 -03:00
qib_iba7220.c RDMA: Fix kernel-doc compilation warnings 2021-03-22 09:31:19 -03:00
qib_iba7322.c RDMA/qib: Remove useless qib_read_ureg() function 2021-04-13 13:06:25 -03:00
qib_init.c RDMA: switch from 'pci_' to 'dma_' API 2021-08-23 13:43:54 -03:00
qib_intr.c RDMA/hw/qib/qib_intr: Fix a bunch of formatting issues 2021-01-22 14:37:31 -04:00
qib_mad.c RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
qib_mad.h
qib_pcie.c RDMA/hw/qib/qib_pcie: Demote obvious kernel-doc abuse 2021-01-22 14:37:31 -04:00
qib_pio_copy.c
qib_qp.c RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
qib_qsfp.c IB/qib: Remove empty function 2017-01-24 16:20:37 -05:00
qib_qsfp.h IB/qib: Remove empty function 2017-01-24 16:20:37 -05:00
qib_rc.c RDMA/hw/qib/qib_rc: Fix some worthy kernel-docs demote hardly complete one 2021-01-22 14:37:31 -04:00
qib_ruc.c IB/{hfi1, qib, rdmavt}: Move ruc_loopback to rdmavt 2018-10-03 16:38:28 -06:00
qib_sd7220.c IB/qib: Remove redundant assignment to ret 2021-04-30 10:58:15 -03:00
qib_sdma.c RDMA/qib: Convert tasklets to use new tasklet_setup() API 2020-09-03 12:01:53 -03:00
qib_sysfs.c IB/qib: Fix clang confusion of NULL pointer comparison 2021-09-13 16:28:39 -03:00
qib_twsi.c RDMA/hw/qib/qib_twsi: Provide description for missing param 'last' 2021-01-22 14:37:32 -04:00
qib_tx.c RDMA/hw/qib/qib_tx: Provide description for 'qib_chg_pioavailkernel()'s 'rcd' param 2021-01-22 14:37:32 -04:00
qib_uc.c RDMA/hw/qib/qib_uc: Provide description for missing 'flags' param 2021-01-22 14:37:32 -04:00
qib_ud.c RDMA/hw/qib/qib_ud: Provide description for 'qib_make_ud_req's 'flags' param 2021-01-22 14:37:33 -04:00
qib_user_pages.c RDMA: switch from 'pci_' to 'dma_' API 2021-08-23 13:43:54 -03:00
qib_user_sdma.c mm, tree-wide: rename put_user_page*() to unpin_user_page*() 2020-01-31 10:30:38 -08:00
qib_user_sdma.h
qib_verbs.c RDMA: Remove rdma_set_device_sysfs_group() 2021-06-16 20:58:32 -03:00
qib_verbs.h RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
qib_wc_ppc64.c
qib_wc_x86_64.c
qib.h RDMA: Change ops->init_port to ops->port_groups 2021-06-16 20:58:31 -03:00