Re: [PATCH 2/7] RDMA/bnxt_re: Add 64bit doorbells for 57500 series

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Devesh,

I love your patch! Yet something to improve:

[auto build test ERROR on rdma/for-next]
[also build test ERROR on v4.20 next-20181224]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Devesh-Sharma/Add-support-Broadcom-s-57500-series-of-adapters/20181231-151329
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
config: i386-randconfig-h1-01010806 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from drivers/infiniband/hw/bnxt_re/main.c:61:0:
   drivers/infiniband/hw/bnxt_re/qplib_fp.h: In function 'bnxt_qplib_ring_nq_db64':
>> drivers/infiniband/hw/bnxt_re/qplib_fp.h:450:2: error: implicit declaration of function 'writeq' [-Werror=implicit-function-declaration]
     writeq(*val, db);
     ^
   Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size
   Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size
   Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_read
   Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_write
   Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:set_bit
   Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:test_and_clear_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u32
   Cyclomatic Complexity 1 include/linux/list.h:INIT_LIST_HEAD
   Cyclomatic Complexity 1 include/linux/list.h:__list_del
   Cyclomatic Complexity 2 include/linux/list.h:__list_del_entry
   Cyclomatic Complexity 1 include/linux/list.h:list_empty
   Cyclomatic Complexity 1 include/linux/list.h:__list_splice
   Cyclomatic Complexity 2 include/linux/list.h:list_splice_init
   Cyclomatic Complexity 1 include/linux/string.h:strnlen
   Cyclomatic Complexity 4 include/linux/string.h:strlen
   Cyclomatic Complexity 6 include/linux/string.h:strlcpy
   Cyclomatic Complexity 3 include/linux/string.h:memset
   Cyclomatic Complexity 4 include/linux/string.h:memcpy
   Cyclomatic Complexity 4 include/linux/string.h:memcmp
   Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_read
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_set
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_inc
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_dec
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_read
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_set
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_inc
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_dec
   Cyclomatic Complexity 1 include/linux/err.h:ERR_PTR
   Cyclomatic Complexity 1 include/linux/err.h:PTR_ERR
   Cyclomatic Complexity 1 include/linux/err.h:IS_ERR
   Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_add
   Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_sub
   Cyclomatic Complexity 1 include/linux/rcupdate.h:__rcu_read_lock
   Cyclomatic Complexity 1 include/linux/rcupdate.h:__rcu_read_unlock
   Cyclomatic Complexity 1 include/linux/jiffies.h:_msecs_to_jiffies
   Cyclomatic Complexity 3 include/linux/jiffies.h:msecs_to_jiffies
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_lock_acquire
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_lock_release
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_lock
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_unlock
   Cyclomatic Complexity 1 include/linux/workqueue.h:__init_work
   Cyclomatic Complexity 1 include/linux/workqueue.h:queue_work
   Cyclomatic Complexity 1 include/linux/workqueue.h:queue_delayed_work
   Cyclomatic Complexity 1 include/linux/workqueue.h:schedule_delayed_work
   Cyclomatic Complexity 1 include/linux/module.h:try_module_get
   Cyclomatic Complexity 1 include/linux/module.h:module_put
   Cyclomatic Complexity 2 include/linux/rculist.h:__list_add_rcu
   Cyclomatic Complexity 1 include/linux/rculist.h:list_add_tail_rcu
   Cyclomatic Complexity 1 include/linux/rculist.h:list_del_rcu
   Cyclomatic Complexity 68 include/linux/slab.h:kmalloc_large
   Cyclomatic Complexity 3 include/linux/slab.h:kmalloc
   Cyclomatic Complexity 1 include/linux/slab.h:kzalloc
   Cyclomatic Complexity 1 include/linux/netdevice.h:netdev_priv
   Cyclomatic Complexity 1 include/linux/netdevice.h:netdev_notifier_info_to_dev
   Cyclomatic Complexity 1 include/linux/netdevice.h:dev_put
   Cyclomatic Complexity 1 include/linux/netdevice.h:dev_hold
   Cyclomatic Complexity 1 include/linux/netdevice.h:netif_carrier_ok
   Cyclomatic Complexity 1 include/linux/if_vlan.h:is_vlan_dev
   Cyclomatic Complexity 0 include/linux/if_vlan.h:vlan_dev_real_dev
   Cyclomatic Complexity 1 include/rdma/ib_verbs.h:rdma_set_device_sysfs_group
   Cyclomatic Complexity 1 include/rdma/ib_addr.h:rdma_vlan_dev_real_dev
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_res.h:bnxt_qplib_is_chip_gen_p5
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_res.h:bnxt_qplib_get_ring_type
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/bnxt_re.h:rdev_to_dev
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_setup_chip_ctx
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_get_sriov_func_type
   Cyclomatic Complexity 4 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_set_resource_limits
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_stop
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_start
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_unregister_netdev
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_register_netdev
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_free_msix
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_init_hwrm_hdr
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_fill_fw_msg
   Cyclomatic Complexity 4 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_net_ring_alloc
   Cyclomatic Complexity 3 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_net_stats_ctx_alloc
   Cyclomatic Complexity 3 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_from_netdev
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_dev_unprobe
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_handle_unaffi_async_event
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_get_nqdb_offset
   Cyclomatic Complexity 3 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_is_qp1_or_shadow_qp
   Cyclomatic Complexity 4 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_parse_cid_map
   Cyclomatic Complexity 6 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_dev_probe
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_query_hwrm_intf_version
   Cyclomatic Complexity 3 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_net_stats_ctx_free
   Cyclomatic Complexity 4 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_srqn_handler
   Cyclomatic Complexity 3 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_cqn_handler
   Cyclomatic Complexity 3 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_net_ring_free
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_destroy_chip_ctx
   Cyclomatic Complexity 5 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_handle_qp_async_event
   Cyclomatic Complexity 3 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_handle_affi_async_event
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_aeq_handler
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_sriov_config
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_stop_irq
   Cyclomatic Complexity 5 drivers/infiniband/hw/bnxt_re/main.c:bnxt_re_start_irq
--
   In file included from drivers/infiniband/hw/bnxt_re/ib_verbs.c:57:0:
   drivers/infiniband/hw/bnxt_re/qplib_fp.h: In function 'bnxt_qplib_ring_nq_db64':
>> drivers/infiniband/hw/bnxt_re/qplib_fp.h:450:2: error: implicit declaration of function 'writeq' [-Werror=implicit-function-declaration]
     writeq(*val, db);
     ^
   Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size
   Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_write
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls
   Cyclomatic Complexity 1 include/linux/bitops.h:fls_long
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u32
   Cyclomatic Complexity 1 include/linux/log2.h:__roundup_pow_of_two
   Cyclomatic Complexity 3 include/linux/string.h:memset
   Cyclomatic Complexity 4 include/linux/string.h:memcpy
   Cyclomatic Complexity 1 include/linux/list.h:INIT_LIST_HEAD
   Cyclomatic Complexity 2 include/linux/list.h:__list_add
   Cyclomatic Complexity 1 include/linux/list.h:list_add_tail
   Cyclomatic Complexity 1 include/linux/list.h:__list_del
   Cyclomatic Complexity 2 include/linux/list.h:__list_del_entry
   Cyclomatic Complexity 1 include/linux/list.h:list_del
   Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order
   Cyclomatic Complexity 2 arch/x86/include/asm/pgtable_types.h:cachemode2protval
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_inc
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_dec
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_add_return
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_inc
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_dec
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_add_return
   Cyclomatic Complexity 1 include/linux/err.h:ERR_PTR
   Cyclomatic Complexity 1 include/linux/err.h:PTR_ERR
   Cyclomatic Complexity 1 include/linux/err.h:IS_ERR
   Cyclomatic Complexity 3 include/linux/err.h:IS_ERR_OR_NULL
   Cyclomatic Complexity 1 include/linux/thread_info.h:check_object_size
   Cyclomatic Complexity 2 include/linux/thread_info.h:copy_overflow
   Cyclomatic Complexity 4 include/linux/thread_info.h:check_copy_size
   Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_add
   Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_sub
   Cyclomatic Complexity 1 include/linux/rcupdate.h:__rcu_read_lock
   Cyclomatic Complexity 1 include/linux/rcupdate.h:__rcu_read_unlock
   Cyclomatic Complexity 1 include/linux/spinlock.h:spinlock_check
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_lock
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock_irqrestore
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_lock_acquire
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_lock_release
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_lock
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_unlock
   Cyclomatic Complexity 1 arch/x86/include/asm/io.h:virt_to_phys
   Cyclomatic Complexity 68 include/linux/slab.h:kmalloc_large
   Cyclomatic Complexity 3 include/linux/slab.h:kmalloc
   Cyclomatic Complexity 9 include/linux/slab.h:kmalloc_array
   Cyclomatic Complexity 1 include/linux/slab.h:kcalloc
   Cyclomatic Complexity 1 include/linux/slab.h:kzalloc
   Cyclomatic Complexity 1 include/linux/dma-debug.h:debug_dma_map_single
   Cyclomatic Complexity 1 include/linux/dma-debug.h:debug_dma_map_page
   Cyclomatic Complexity 1 include/linux/dma-debug.h:debug_dma_mapping_error
   Cyclomatic Complexity 1 include/linux/dma-debug.h:debug_dma_unmap_page
   Cyclomatic Complexity 1 include/linux/dma-mapping.h:valid_dma_direction
   Cyclomatic Complexity 1 arch/x86/include/asm/dma-mapping.h:get_arch_dma_ops
   Cyclomatic Complexity 4 include/linux/dma-mapping.h:get_dma_ops
   Cyclomatic Complexity 1 include/linux/dma-mapping.h:dma_map_single_attrs
   Cyclomatic Complexity 2 include/linux/dma-mapping.h:dma_unmap_single_attrs
   Cyclomatic Complexity 2 include/linux/dma-mapping.h:dma_mapping_error
   Cyclomatic Complexity 2 include/linux/uaccess.h:copy_from_user
   Cyclomatic Complexity 2 include/linux/uaccess.h:copy_to_user
   Cyclomatic Complexity 1 include/linux/in.h:ipv4_is_multicast
   Cyclomatic Complexity 1 include/linux/netdevice.h:netif_running
   Cyclomatic Complexity 1 include/linux/netdevice.h:dev_hold
   Cyclomatic Complexity 1 include/linux/netdevice.h:netif_carrier_ok
   Cyclomatic Complexity 1 include/linux/etherdevice.h:ether_addr_copy
   Cyclomatic Complexity 1 include/linux/etherdevice.h:ether_addr_equal
   Cyclomatic Complexity 1 include/linux/if_vlan.h:is_vlan_dev
   Cyclomatic Complexity 0 include/linux/if_vlan.h:vlan_dev_vlan_id
   Cyclomatic Complexity 1 include/net/ipv6.h:ipv6_addr_v4mapped
   Cyclomatic Complexity 3 include/rdma/ib_verbs.h:rdma_gid_attr_network_type
   Cyclomatic Complexity 6 include/rdma/ib_verbs.h:ib_mtu_enum_to_int
   Cyclomatic Complexity 1 include/rdma/ib_verbs.h:rdma_wr
   Cyclomatic Complexity 1 include/rdma/ib_verbs.h:atomic_wr
   Cyclomatic Complexity 1 include/rdma/ib_verbs.h:ud_wr
   Cyclomatic Complexity 1 include/rdma/ib_verbs.h:reg_wr
   Cyclomatic Complexity 2 include/rdma/ib_verbs.h:ib_copy_from_udata
   Cyclomatic Complexity 2 include/rdma/ib_verbs.h:ib_copy_to_udata
   Cyclomatic Complexity 1 include/rdma/ib_verbs.h:ib_inc_rkey
   Cyclomatic Complexity 1 include/rdma/ib_verbs.h:rdma_ah_set_sl
   Cyclomatic Complexity 1 include/rdma/ib_verbs.h:rdma_ah_get_sl
   Cyclomatic Complexity 1 include/rdma/ib_verbs.h:rdma_ah_set_port_num
   Cyclomatic Complexity 1 include/rdma/ib_verbs.h:rdma_ah_set_static_rate
   Cyclomatic Complexity 1 include/rdma/ib_verbs.h:rdma_ah_get_ah_flags
   Cyclomatic Complexity 1 include/rdma/ib_verbs.h:rdma_ah_read_grh
   Cyclomatic Complexity 1 include/rdma/ib_verbs.h:rdma_ah_retrieve_grh
   Cyclomatic Complexity 1 include/rdma/ib_verbs.h:rdma_ah_set_dgid_raw
   Cyclomatic Complexity 2 include/rdma/ib_verbs.h:rdma_ah_set_grh
   Cyclomatic Complexity 6 include/rdma/ib_addr.h:iboe_get_mtu
   Cyclomatic Complexity 3 include/rdma/ib_addr.h:rdma_link_local_addr
   Cyclomatic Complexity 4 include/rdma/ib_addr.h:rdma_is_multicast_addr
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/bnxt_re.h:rdev_to_dev
   Cyclomatic Complexity 8 drivers/infiniband/hw/bnxt_re/ib_verbs.c:__from_ib_access_flags
   Cyclomatic Complexity 8 drivers/infiniband/hw/bnxt_re/ib_verbs.c:__to_ib_access_flags
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/ib_verbs.c:bnxt_re_build_sgl
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/ib_verbs.c:bnxt_re_create_fence_wqe
   Cyclomatic Complexity 4 drivers/infiniband/hw/bnxt_re/ib_verbs.c:__from_ib_qp_type
   Cyclomatic Complexity 7 drivers/infiniband/hw/bnxt_re/ib_verbs.c:__from_ib_qp_state
   Cyclomatic Complexity 7 drivers/infiniband/hw/bnxt_re/ib_verbs.c:__to_ib_qp_state
--
   In file included from drivers/infiniband/hw/bnxt_re/qplib_res.c:50:0:
   drivers/infiniband/hw/bnxt_re/qplib_rcfw.h: In function 'bnxt_qplib_ring_creq_db64':
>> drivers/infiniband/hw/bnxt_re/qplib_rcfw.h:175:2: error: implicit declaration of function 'writeq' [-Werror=implicit-function-declaration]
     writeq(*val, db);
     ^
   Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:clear_bit
   Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:test_and_set_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls
   Cyclomatic Complexity 1 include/linux/bitops.h:fls_long
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u32
   Cyclomatic Complexity 1 include/linux/log2.h:__roundup_pow_of_two
   Cyclomatic Complexity 3 include/linux/string.h:memset
   Cyclomatic Complexity 4 include/linux/string.h:memcpy
   Cyclomatic Complexity 4 include/linux/string.h:memcmp
   Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order
   Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:native_save_fl
   Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_local_save_flags
   Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_irqs_disabled_flags
   Cyclomatic Complexity 1 include/linux/spinlock.h:spinlock_check
   Cyclomatic Complexity 68 include/linux/slab.h:kmalloc_large
   Cyclomatic Complexity 3 include/linux/slab.h:kmalloc
   Cyclomatic Complexity 9 include/linux/slab.h:kmalloc_array
   Cyclomatic Complexity 1 include/linux/slab.h:kcalloc
   Cyclomatic Complexity 1 include/linux/mm.h:lowmem_page_address
   Cyclomatic Complexity 1 include/linux/scatterlist.h:sg_page
   Cyclomatic Complexity 1 include/linux/scatterlist.h:sg_virt
   Cyclomatic Complexity 1 include/linux/dma-debug.h:debug_dma_alloc_coherent
   Cyclomatic Complexity 1 include/linux/dma-debug.h:debug_dma_free_coherent
   Cyclomatic Complexity 1 arch/x86/include/asm/dma-mapping.h:get_arch_dma_ops
   Cyclomatic Complexity 4 include/linux/dma-mapping.h:get_dma_ops
   Cyclomatic Complexity 7 include/linux/dma-mapping.h:dma_alloc_attrs
   Cyclomatic Complexity 72 include/linux/dma-mapping.h:dma_free_attrs
   Cyclomatic Complexity 2 include/linux/dma-mapping.h:dma_alloc_coherent
   Cyclomatic Complexity 1 include/linux/dma-mapping.h:dma_free_coherent
   Cyclomatic Complexity 1 include/linux/dma-mapping.h:dma_zalloc_coherent
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_init_sgid_tbl
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_alloc_pkey_tbl
   Cyclomatic Complexity 3 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_alloc_pd_tbl
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_cleanup_pkey_tbl
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_free_stats_ctx
   Cyclomatic Complexity 4 drivers/infiniband/hw/bnxt_re/qplib_res.c:__free_pbl
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_free_pkey_tbl
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_free_sgid_tbl
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_free_pd_tbl
   Cyclomatic Complexity 5 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_alloc_sgid_tbl
   Cyclomatic Complexity 8 drivers/infiniband/hw/bnxt_re/qplib_res.c:__alloc_pbl
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_alloc_stats_ctx
   Cyclomatic Complexity 3 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_cleanup_sgid_tbl
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_init_pkey_tbl
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_free_dpi_tbl
   Cyclomatic Complexity 11 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_alloc_dpi_tbl
   Cyclomatic Complexity 5 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_free_hwq
   Cyclomatic Complexity 218 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_alloc_init_hwq
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_free_ctx
   Cyclomatic Complexity 19 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_alloc_ctx
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_get_guid
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_alloc_pd
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_dealloc_pd
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_alloc_dpi
   Cyclomatic Complexity 4 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_dealloc_dpi
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_cleanup_res
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_init_res
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_free_res
   Cyclomatic Complexity 5 drivers/infiniband/hw/bnxt_re/qplib_res.c:bnxt_qplib_alloc_res
   cc1: some warnings being treated as errors
--
   In file included from drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:49:0:
   drivers/infiniband/hw/bnxt_re/qplib_rcfw.h: In function 'bnxt_qplib_ring_creq_db64':
>> drivers/infiniband/hw/bnxt_re/qplib_rcfw.h:175:2: error: implicit declaration of function 'writeq' [-Werror=implicit-function-declaration]
     writeq(*val, db);
     ^
   Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_write
   Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:set_bit
   Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:clear_bit
   Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:test_and_set_bit
   Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:test_and_clear_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:variable_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u32
   Cyclomatic Complexity 3 include/linux/string.h:memset
   Cyclomatic Complexity 4 include/linux/string.h:memcpy
   Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_inc
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:arch_atomic_dec
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_inc
   Cyclomatic Complexity 1 include/asm-generic/atomic-instrumented.h:atomic_dec
   Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:native_save_fl
   Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_local_save_flags
   Cyclomatic Complexity 1 arch/x86/include/asm/irqflags.h:arch_irqs_disabled_flags
   Cyclomatic Complexity 1 arch/x86/include/asm/processor.h:prefetch
   Cyclomatic Complexity 1 include/linux/spinlock.h:spinlock_check
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock_irqrestore
   Cyclomatic Complexity 1 include/linux/jiffies.h:_msecs_to_jiffies
   Cyclomatic Complexity 3 include/linux/jiffies.h:msecs_to_jiffies
   Cyclomatic Complexity 1 include/linux/interrupt.h:request_irq
   Cyclomatic Complexity 2 include/linux/interrupt.h:tasklet_schedule
   Cyclomatic Complexity 1 include/linux/interrupt.h:tasklet_disable_nosync
   Cyclomatic Complexity 1 include/linux/interrupt.h:tasklet_disable
   Cyclomatic Complexity 1 include/linux/interrupt.h:tasklet_enable
   Cyclomatic Complexity 1 arch/x86/include/asm/io.h:writel
   Cyclomatic Complexity 68 include/linux/slab.h:kmalloc_large
   Cyclomatic Complexity 3 include/linux/slab.h:kmalloc
   Cyclomatic Complexity 9 include/linux/slab.h:kmalloc_array
   Cyclomatic Complexity 1 include/linux/slab.h:kcalloc
   Cyclomatic Complexity 1 include/linux/slab.h:kzalloc
   Cyclomatic Complexity 1 include/linux/dma-debug.h:debug_dma_alloc_coherent
   Cyclomatic Complexity 1 include/linux/dma-debug.h:debug_dma_free_coherent
   Cyclomatic Complexity 1 arch/x86/include/asm/dma-mapping.h:get_arch_dma_ops
   Cyclomatic Complexity 4 include/linux/dma-mapping.h:get_dma_ops
   Cyclomatic Complexity 7 include/linux/dma-mapping.h:dma_alloc_attrs
   Cyclomatic Complexity 72 include/linux/dma-mapping.h:dma_free_attrs
   Cyclomatic Complexity 2 include/linux/dma-mapping.h:dma_alloc_coherent
   Cyclomatic Complexity 1 include/linux/dma-mapping.h:dma_free_coherent
   Cyclomatic Complexity 1 include/linux/dma-mapping.h:dma_zalloc_coherent
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_res.h:bnxt_qplib_is_chip_gen_p5
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_res.h:bnxt_qplib_get_hwq_type
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h:bnxt_qplib_cmdqe_npages
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h:bnxt_qplib_cmdqe_page_size
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h:bnxt_qplib_cmdqe_cnt_per_pg
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h:bnxt_qplib_max_cmdq_idx_per_pg
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h:get_cmdq_pg
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h:get_cmdq_idx
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h:get_creq_pg
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h:get_creq_idx
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h:bnxt_qplib_ring_creq_db64
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h:bnxt_qplib_ring_creq_db_rearm
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h:bnxt_qplib_ring_creq_db
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:bnxt_qplib_process_func_event
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:bnxt_qplib_creq_irq
   Cyclomatic Complexity 7 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:__get_pbl_pg_idx
   Cyclomatic Complexity 15 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:__send_message
   Cyclomatic Complexity 11 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:bnxt_qplib_process_qp_event
   Cyclomatic Complexity 8 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:bnxt_qplib_service_creq
   Cyclomatic Complexity 8 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:__block_for_resp
   Cyclomatic Complexity 8 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:__wait_for_resp
   Cyclomatic Complexity 9 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:bnxt_qplib_rcfw_send_message
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:bnxt_qplib_deinit_rcfw
   Cyclomatic Complexity 3 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:bnxt_qplib_init_rcfw
   Cyclomatic Complexity 1 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:bnxt_qplib_free_rcfw_channel
   Cyclomatic Complexity 6 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:bnxt_qplib_alloc_rcfw_channel
   Cyclomatic Complexity 3 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:bnxt_qplib_rcfw_stop_irq
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:bnxt_qplib_disable_rcfw_channel
   Cyclomatic Complexity 4 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:bnxt_qplib_rcfw_start_irq
   Cyclomatic Complexity 8 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:bnxt_qplib_enable_rcfw_channel
   Cyclomatic Complexity 3 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:bnxt_qplib_rcfw_alloc_sbuf
   Cyclomatic Complexity 2 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c:bnxt_qplib_rcfw_free_sbuf
   cc1: some warnings being treated as errors
..

vim +/writeq +450 drivers/infiniband/hw/bnxt_re/qplib_fp.h

   425	
   426	#define NQ_CONS_PCI_BAR_REGION		2
   427	#define NQ_DB_KEY_CP			(0x2 << CMPL_DOORBELL_KEY_SFT)
   428	#define NQ_DB_IDX_VALID			CMPL_DOORBELL_IDX_VALID
   429	#define NQ_DB_IRQ_DIS			CMPL_DOORBELL_MASK
   430	#define NQ_DB_CP_FLAGS_REARM		(NQ_DB_KEY_CP |		\
   431						 NQ_DB_IDX_VALID)
   432	#define NQ_DB_CP_FLAGS			(NQ_DB_KEY_CP    |	\
   433						 NQ_DB_IDX_VALID |	\
   434						 NQ_DB_IRQ_DIS)
   435	
   436	static inline void bnxt_qplib_ring_nq_db64(void __iomem *db, u32 index,
   437						   u16 xid, bool arm)
   438	{
   439		struct dbc_dbc	hdr64 = { 0 };
   440		u32 tmp = 0;
   441		u64 *val;
   442	
   443		hdr64.index = cpu_to_le32(index & DBC_DBC_INDEX_MASK);
   444		tmp = xid & DBC_DBC_XID_MASK;
   445		tmp |= DBC_DBC_PATH_ROCE;
   446		tmp |= arm ? DBC_DBC_TYPE_NQ_ARM : DBC_DBC_TYPE_NQ;
   447		hdr64.type_path_xid = cpu_to_le32(tmp);
   448		val = (u64 *)&hdr64.index;
   449		wmb();
 > 450		writeq(*val, db);
   451	}
   452	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux