All of lore.kernel.org
 help / color / mirror / Atom feed
* [leon-rdma:testing/rdma-next 3/3] drivers/infiniband/hw/hfi1/netdev.h:67:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
@ 2021-05-07  3:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-07  3:25 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git testing/rdma-next
head:   890ded1e4d6bea65ca1486ac1d3b5741a21a80e8
commit: 890ded1e4d6bea65ca1486ac1d3b5741a21a80e8 [3/3] Merge branch 'rdma-next' into testing/rdma-next
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git/commit/?id=890ded1e4d6bea65ca1486ac1d3b5741a21a80e8
        git remote add leon-rdma https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git
        git fetch --no-tags leon-rdma testing/rdma-next
        git checkout 890ded1e4d6bea65ca1486ac1d3b5741a21a80e8
        # save the attached .config to linux build tree
        make W=1 W=1 ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   In file included from drivers/infiniband/hw/hfi1/ipoib.h:25,
                    from drivers/infiniband/hw/hfi1/trace_tx.h:56,
                    from drivers/infiniband/hw/hfi1/trace.h:63,
                    from drivers/infiniband/hw/hfi1/affinity.c:56:
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_ctxt_count':
>> drivers/infiniband/hw/hfi1/netdev.h:67:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      67 |  return dd->netdev_rx->num_rx_q;
         |           ^~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_get_ctxt':
   drivers/infiniband/hw/hfi1/netdev.h:73:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      73 |  return dd->netdev_rx->rxq[ctxt].rcd;
         |           ^~
   drivers/infiniband/hw/hfi1/netdev.h:71:73: warning: parameter 'ctxt' set but not used [-Wunused-but-set-parameter]
      71 | struct hfi1_ctxtdata *hfi1_netdev_get_ctxt(struct hfi1_devdata *dd, int ctxt)
         |                                                                     ~~~~^~~~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_get_free_rmt_idx':
   drivers/infiniband/hw/hfi1/netdev.h:79:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      79 |  return dd->netdev_rx->rmt_start;
         |           ^~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_set_free_rmt_idx':
   drivers/infiniband/hw/hfi1/netdev.h:85:4: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      85 |  dd->netdev_rx->rmt_start = rmt_idx;
         |    ^~
--
   In file included from drivers/infiniband/hw/hfi1/ipoib.h:25,
                    from drivers/infiniband/hw/hfi1/trace_tx.h:56,
                    from drivers/infiniband/hw/hfi1/trace.h:63,
                    from drivers/infiniband/hw/hfi1/chip.c:58:
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_ctxt_count':
>> drivers/infiniband/hw/hfi1/netdev.h:67:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      67 |  return dd->netdev_rx->num_rx_q;
         |           ^~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_get_ctxt':
   drivers/infiniband/hw/hfi1/netdev.h:73:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      73 |  return dd->netdev_rx->rxq[ctxt].rcd;
         |           ^~
   drivers/infiniband/hw/hfi1/netdev.h:71:73: warning: parameter 'ctxt' set but not used [-Wunused-but-set-parameter]
      71 | struct hfi1_ctxtdata *hfi1_netdev_get_ctxt(struct hfi1_devdata *dd, int ctxt)
         |                                                                     ~~~~^~~~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_get_free_rmt_idx':
   drivers/infiniband/hw/hfi1/netdev.h:79:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      79 |  return dd->netdev_rx->rmt_start;
         |           ^~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_set_free_rmt_idx':
   drivers/infiniband/hw/hfi1/netdev.h:85:4: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      85 |  dd->netdev_rx->rmt_start = rmt_idx;
         |    ^~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_get_free_rmt_idx':
   drivers/infiniband/hw/hfi1/netdev.h:80:1: error: control reaches end of non-void function [-Werror=return-type]
      80 | }
         | ^
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_ctxt_count':
   drivers/infiniband/hw/hfi1/netdev.h:68:1: error: control reaches end of non-void function [-Werror=return-type]
      68 | }
         | ^
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_get_ctxt':
   drivers/infiniband/hw/hfi1/netdev.h:74:1: error: control reaches end of non-void function [-Werror=return-type]
      74 | }
         | ^
   cc1: some warnings being treated as errors
--
   In file included from drivers/infiniband/hw/hfi1/msix.c:52:
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_ctxt_count':
>> drivers/infiniband/hw/hfi1/netdev.h:67:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      67 |  return dd->netdev_rx->num_rx_q;
         |           ^~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_get_ctxt':
   drivers/infiniband/hw/hfi1/netdev.h:73:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      73 |  return dd->netdev_rx->rxq[ctxt].rcd;
         |           ^~
   drivers/infiniband/hw/hfi1/netdev.h:71:73: warning: parameter 'ctxt' set but not used [-Wunused-but-set-parameter]
      71 | struct hfi1_ctxtdata *hfi1_netdev_get_ctxt(struct hfi1_devdata *dd, int ctxt)
         |                                                                     ~~~~^~~~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_get_free_rmt_idx':
   drivers/infiniband/hw/hfi1/netdev.h:79:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      79 |  return dd->netdev_rx->rmt_start;
         |           ^~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_set_free_rmt_idx':
   drivers/infiniband/hw/hfi1/netdev.h:85:4: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      85 |  dd->netdev_rx->rmt_start = rmt_idx;
         |    ^~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_ctxt_count':
   drivers/infiniband/hw/hfi1/netdev.h:68:1: error: control reaches end of non-void function [-Werror=return-type]
      68 | }
         | ^
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_get_ctxt':
   drivers/infiniband/hw/hfi1/netdev.h:74:1: error: control reaches end of non-void function [-Werror=return-type]
      74 | }
         | ^
   cc1: some warnings being treated as errors
--
   In file included from drivers/infiniband/hw/hfi1/netdev_rx.c:13:
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_ctxt_count':
>> drivers/infiniband/hw/hfi1/netdev.h:67:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      67 |  return dd->netdev_rx->num_rx_q;
         |           ^~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_get_ctxt':
   drivers/infiniband/hw/hfi1/netdev.h:73:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      73 |  return dd->netdev_rx->rxq[ctxt].rcd;
         |           ^~
   drivers/infiniband/hw/hfi1/netdev.h:71:73: warning: parameter 'ctxt' set but not used [-Wunused-but-set-parameter]
      71 | struct hfi1_ctxtdata *hfi1_netdev_get_ctxt(struct hfi1_devdata *dd, int ctxt)
         |                                                                     ~~~~^~~~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_get_free_rmt_idx':
   drivers/infiniband/hw/hfi1/netdev.h:79:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      79 |  return dd->netdev_rx->rmt_start;
         |           ^~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_set_free_rmt_idx':
   drivers/infiniband/hw/hfi1/netdev.h:85:4: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      85 |  dd->netdev_rx->rmt_start = rmt_idx;
         |    ^~
   drivers/infiniband/hw/hfi1/netdev_rx.c: In function 'hfi1_netdev_rx_init':
>> drivers/infiniband/hw/hfi1/netdev_rx.c:309:32: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
     309 |  struct hfi1_netdev_rx *rx = dd->netdev_rx;
         |                                ^~
   drivers/infiniband/hw/hfi1/netdev_rx.c: In function 'hfi1_netdev_rx_destroy':
   drivers/infiniband/hw/hfi1/netdev_rx.c:329:32: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
     329 |  struct hfi1_netdev_rx *rx = dd->netdev_rx;
         |                                ^~
   drivers/infiniband/hw/hfi1/netdev_rx.c: In function 'hfi1_alloc_rx':
   drivers/infiniband/hw/hfi1/netdev_rx.c:368:4: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
     368 |  dd->netdev_rx = rx;
         |    ^~
   drivers/infiniband/hw/hfi1/netdev_rx.c: In function 'hfi1_free_rx':
   drivers/infiniband/hw/hfi1/netdev_rx.c:375:8: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
     375 |  if (dd->netdev_rx) {
         |        ^~
   drivers/infiniband/hw/hfi1/netdev_rx.c:377:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
     377 |   kfree(dd->netdev_rx);
         |           ^~
   drivers/infiniband/hw/hfi1/netdev_rx.c:378:5: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
     378 |   dd->netdev_rx = NULL;
         |     ^~
   drivers/infiniband/hw/hfi1/netdev_rx.c: In function 'hfi1_netdev_enable_queues':
   drivers/infiniband/hw/hfi1/netdev_rx.c:395:9: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
     395 |  if (!dd->netdev_rx)
         |         ^~
   drivers/infiniband/hw/hfi1/netdev_rx.c:398:9: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
     398 |  rx = dd->netdev_rx;
         |         ^~
   drivers/infiniband/hw/hfi1/netdev_rx.c: In function 'hfi1_netdev_disable_queues':
   drivers/infiniband/hw/hfi1/netdev_rx.c:411:9: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
     411 |  if (!dd->netdev_rx)
         |         ^~
   drivers/infiniband/hw/hfi1/netdev_rx.c:414:9: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
     414 |  rx = dd->netdev_rx;
         |         ^~
   drivers/infiniband/hw/hfi1/netdev_rx.c: In function 'hfi1_netdev_add_data':
   drivers/infiniband/hw/hfi1/netdev_rx.c:435:32: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
     435 |  struct hfi1_netdev_rx *rx = dd->netdev_rx;
         |                                ^~
   drivers/infiniband/hw/hfi1/netdev_rx.c: In function 'hfi1_netdev_remove_data':
   drivers/infiniband/hw/hfi1/netdev_rx.c:449:32: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
     449 |  struct hfi1_netdev_rx *rx = dd->netdev_rx;
         |                                ^~
   drivers/infiniband/hw/hfi1/netdev_rx.c: In function 'hfi1_netdev_get_data':
   drivers/infiniband/hw/hfi1/netdev_rx.c:462:32: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
     462 |  struct hfi1_netdev_rx *rx = dd->netdev_rx;
         |                                ^~
   drivers/infiniband/hw/hfi1/netdev_rx.c: In function 'hfi1_netdev_get_first_data':
   drivers/infiniband/hw/hfi1/netdev_rx.c:475:32: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
     475 |  struct hfi1_netdev_rx *rx = dd->netdev_rx;
         |                                ^~
--
   In file included from include/trace/define_trace.h:102,
                    from drivers/infiniband/hw/hfi1/trace_dbg.h:156,
                    from drivers/infiniband/hw/hfi1/trace.h:57,
                    from drivers/infiniband/hw/hfi1/trace.c:48:
   drivers/infiniband/hw/hfi1/./trace_dbg.h: In function 'trace_event_raw_event_hfi1_trace_template':
   include/trace/trace_events.h:690:9: warning: function 'trace_event_raw_event_hfi1_trace_template' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
     690 |  struct trace_event_raw_##call *entry;    \
         |         ^~~~~~~~~~~~~~~~
   drivers/infiniband/hw/hfi1/./trace_dbg.h:66:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
      66 | DECLARE_EVENT_CLASS(hfi1_trace_template,
         | ^~~~~~~~~~~~~~~~~~~
   In file included from include/trace/define_trace.h:103,
                    from drivers/infiniband/hw/hfi1/trace_dbg.h:156,
                    from drivers/infiniband/hw/hfi1/trace.h:57,
                    from drivers/infiniband/hw/hfi1/trace.c:48:
   drivers/infiniband/hw/hfi1/./trace_dbg.h: In function 'perf_trace_hfi1_trace_template':
   include/trace/perf.h:41:9: warning: function 'perf_trace_hfi1_trace_template' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
      41 |  struct hlist_head *head;     \
         |         ^~~~~~~~~~
   drivers/infiniband/hw/hfi1/./trace_dbg.h:66:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
      66 | DECLARE_EVENT_CLASS(hfi1_trace_template,
         | ^~~~~~~~~~~~~~~~~~~
   In file included from drivers/infiniband/hw/hfi1/ipoib.h:25,
                    from drivers/infiniband/hw/hfi1/trace_tx.h:56,
                    from drivers/infiniband/hw/hfi1/trace.h:63,
                    from drivers/infiniband/hw/hfi1/trace.c:48:
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_ctxt_count':
>> drivers/infiniband/hw/hfi1/netdev.h:67:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      67 |  return dd->netdev_rx->num_rx_q;
         |           ^~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_get_ctxt':
   drivers/infiniband/hw/hfi1/netdev.h:73:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      73 |  return dd->netdev_rx->rxq[ctxt].rcd;
         |           ^~
   drivers/infiniband/hw/hfi1/netdev.h:71:73: warning: parameter 'ctxt' set but not used [-Wunused-but-set-parameter]
      71 | struct hfi1_ctxtdata *hfi1_netdev_get_ctxt(struct hfi1_devdata *dd, int ctxt)
         |                                                                     ~~~~^~~~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_get_free_rmt_idx':
   drivers/infiniband/hw/hfi1/netdev.h:79:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      79 |  return dd->netdev_rx->rmt_start;
         |           ^~
   drivers/infiniband/hw/hfi1/netdev.h: In function 'hfi1_netdev_set_free_rmt_idx':
   drivers/infiniband/hw/hfi1/netdev.h:85:4: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
      85 |  dd->netdev_rx->rmt_start = rmt_idx;
         |    ^~


vim +67 drivers/infiniband/hw/hfi1/netdev.h

6991abcb993cf6 Kaike Wan        2020-05-11  63  
6991abcb993cf6 Kaike Wan        2020-05-11  64  static inline
6991abcb993cf6 Kaike Wan        2020-05-11  65  int hfi1_netdev_ctxt_count(struct hfi1_devdata *dd)
6991abcb993cf6 Kaike Wan        2020-05-11  66  {
780278c2c8bb50 Mike Marciniszyn 2021-03-29 @67  	return dd->netdev_rx->num_rx_q;
6991abcb993cf6 Kaike Wan        2020-05-11  68  }
6991abcb993cf6 Kaike Wan        2020-05-11  69  

:::::: The code at line 67 was first introduced by commit
:::::: 780278c2c8bb50fc01b70a7392af6ab3ba360074 IB/hfi1: Rework AIP and VNIC dummy netdev usage

:::::: TO: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.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: 65012 bytes --]

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

only message in thread, other threads:[~2021-05-07  3:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-07  3:25 [leon-rdma:testing/rdma-next 3/3] drivers/infiniband/hw/hfi1/netdev.h:67:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx' 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.