All of lore.kernel.org
 help / color / mirror / Atom feed
* [leon-rdma:rdma-next 16/30] drivers/infiniband/hw/irdma/verbs.c:4357:20: warning: initialization of 'unsigned char:1' from 'struct rdma_hw_stats * (*)(struct ib_device *, u32)' {aka 'struct rdma_hw_stats * (*)(struct ib_device *, unsigned int)'} makes integer from pointer without a ...
@ 2021-06-03 13:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-03 13:30 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6133 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git rdma-next
head:   89eb4b029ed7945ebdad030a6c427bbec78f2441
commit: 2ba674c9f0917c35799fb236f185e5675ccd7ed0 [16/30] RDMA: Split the alloc_hw_stats() ops to port and device variants
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git/commit/?id=2ba674c9f0917c35799fb236f185e5675ccd7ed0
        git remote add leon-rdma https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git
        git fetch --no-tags leon-rdma rdma-next
        git checkout 2ba674c9f0917c35799fb236f185e5675ccd7ed0
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/infiniband/hw/irdma/verbs.c:4357:3: error: 'const struct ib_device_ops' has no member named 'alloc_hw_stats'; did you mean 'alloc_hw_port_stats'?
    4357 |  .alloc_hw_stats = irdma_alloc_hw_stats,
         |   ^~~~~~~~~~~~~~
         |   alloc_hw_port_stats
>> drivers/infiniband/hw/irdma/verbs.c:4357:20: warning: initialization of 'unsigned char:1' from 'struct rdma_hw_stats * (*)(struct ib_device *, u32)' {aka 'struct rdma_hw_stats * (*)(struct ib_device *, unsigned int)'} makes integer from pointer without a cast [-Wint-conversion]
    4357 |  .alloc_hw_stats = irdma_alloc_hw_stats,
         |                    ^~~~~~~~~~~~~~~~~~~~
   drivers/infiniband/hw/irdma/verbs.c:4357:20: note: (near initialization for 'irdma_dev_ops.uverbs_no_driver_id_binding')
   drivers/infiniband/hw/irdma/verbs.c:4357:20: error: initializer element is not computable at load time
   drivers/infiniband/hw/irdma/verbs.c:4357:20: note: (near initialization for 'irdma_dev_ops.uverbs_no_driver_id_binding')


vim +4357 drivers/infiniband/hw/irdma/verbs.c

b48c24c2d710cf Mustafa Ismail 2021-06-02  4351  
b48c24c2d710cf Mustafa Ismail 2021-06-02  4352  static const struct ib_device_ops irdma_dev_ops = {
b48c24c2d710cf Mustafa Ismail 2021-06-02  4353  	.owner = THIS_MODULE,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4354  	.driver_id = RDMA_DRIVER_IRDMA,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4355  	.uverbs_abi_ver = IRDMA_ABI_VER,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4356  
b48c24c2d710cf Mustafa Ismail 2021-06-02 @4357  	.alloc_hw_stats = irdma_alloc_hw_stats,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4358  	.alloc_mr = irdma_alloc_mr,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4359  	.alloc_mw = irdma_alloc_mw,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4360  	.alloc_pd = irdma_alloc_pd,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4361  	.alloc_ucontext = irdma_alloc_ucontext,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4362  	.create_cq = irdma_create_cq,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4363  	.create_qp = irdma_create_qp,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4364  	.dealloc_driver = irdma_ib_dealloc_device,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4365  	.dealloc_mw = irdma_dealloc_mw,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4366  	.dealloc_pd = irdma_dealloc_pd,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4367  	.dealloc_ucontext = irdma_dealloc_ucontext,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4368  	.dereg_mr = irdma_dereg_mr,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4369  	.destroy_cq = irdma_destroy_cq,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4370  	.destroy_qp = irdma_destroy_qp,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4371  	.disassociate_ucontext = irdma_disassociate_ucontext,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4372  	.get_dev_fw_str = irdma_get_dev_fw_str,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4373  	.get_dma_mr = irdma_get_dma_mr,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4374  	.get_hw_stats = irdma_get_hw_stats,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4375  	.map_mr_sg = irdma_map_mr_sg,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4376  	.mmap = irdma_mmap,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4377  	.mmap_free = irdma_mmap_free,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4378  	.poll_cq = irdma_poll_cq,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4379  	.post_recv = irdma_post_recv,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4380  	.post_send = irdma_post_send,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4381  	.query_device = irdma_query_device,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4382  	.query_port = irdma_query_port,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4383  	.query_qp = irdma_query_qp,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4384  	.reg_user_mr = irdma_reg_user_mr,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4385  	.req_notify_cq = irdma_req_notify_cq,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4386  	.resize_cq = irdma_resize_cq,
b48c24c2d710cf Mustafa Ismail 2021-06-02  4387  	INIT_RDMA_OBJ_SIZE(ib_pd, irdma_pd, ibpd),
b48c24c2d710cf Mustafa Ismail 2021-06-02  4388  	INIT_RDMA_OBJ_SIZE(ib_ucontext, irdma_ucontext, ibucontext),
b48c24c2d710cf Mustafa Ismail 2021-06-02  4389  	INIT_RDMA_OBJ_SIZE(ib_ah, irdma_ah, ibah),
b48c24c2d710cf Mustafa Ismail 2021-06-02  4390  	INIT_RDMA_OBJ_SIZE(ib_cq, irdma_cq, ibcq),
b48c24c2d710cf Mustafa Ismail 2021-06-02  4391  	INIT_RDMA_OBJ_SIZE(ib_mw, irdma_mr, ibmw),
b48c24c2d710cf Mustafa Ismail 2021-06-02  4392  };
b48c24c2d710cf Mustafa Ismail 2021-06-02  4393  

:::::: The code at line 4357 was first introduced by commit
:::::: b48c24c2d710cf34810c555dcef883a3d35a9c08 RDMA/irdma: Implement device supported verb APIs

:::::: TO: Mustafa Ismail <mustafa.ismail@intel.com>
:::::: CC: Jason Gunthorpe <jgg@nvidia.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 68130 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-03 13:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-03 13:30 [leon-rdma:rdma-next 16/30] drivers/infiniband/hw/irdma/verbs.c:4357:20: warning: initialization of 'unsigned char:1' from 'struct rdma_hw_stats * (*)(struct ib_device *, u32)' {aka 'struct rdma_hw_stats * (*)(struct ib_device *, unsigned int)'} makes integer from pointer without a kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.