[chrome-os:chromeos-5.4 180/242] drivers/net/wireless/mediatek/mt76/tx.c:504:7: error: 'q' undeclared; did you mean 'sq'?
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 03c601082f2f279deba7e2b6923e735273c65587
commit: 0d7e331a785cdb87c2b4005d226bf8a22f7fd87e [180/242] UPSTREAM: mt76: rely on AQL for burst size limits on tx queueing
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-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
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 0d7e331a785cdb87c2b4005d226bf8a22f7fd87e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the chrome-os/chromeos-5.4 HEAD 03c601082f2f279deba7e2b6923e735273c65587 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
drivers/net/wireless/mediatek/mt76/tx.c: In function 'mt76_txq_send_burst':
>> drivers/net/wireless/mediatek/mt76/tx.c:504:7: error: 'q' undeclared (first use in this function); did you mean 'sq'?
504 | if (q->queued + MT_TXQ_FREE_THR >= q->ndesc)
| ^
| sq
drivers/net/wireless/mediatek/mt76/tx.c:504:7: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/wireless/mediatek/mt76/tx.c: In function 'mt76_txq_schedule_list':
drivers/net/wireless/mediatek/mt76/tx.c:547:7: error: 'q' undeclared (first use in this function); did you mean 'sq'?
547 | if (q->queued + MT_TXQ_FREE_THR >= q->ndesc)
| ^
| sq
vim +504 drivers/net/wireless/mediatek/mt76/tx.c
461
462 static int
463 mt76_txq_send_burst(struct mt76_phy *phy, struct mt76_sw_queue *sq,
464 struct mt76_txq *mtxq)
465 {
466 struct mt76_dev *dev = phy->dev;
467 struct ieee80211_txq *txq = mtxq_to_txq(mtxq);
468 enum mt76_txq_id qid = mt76_txq_get_qid(txq);
469 struct mt76_wcid *wcid = mtxq->wcid;
470 struct mt76_queue *hwq = sq->q;
471 struct ieee80211_tx_info *info;
472 struct sk_buff *skb;
473 int n_frames = 1;
474 bool stop = false;
475 int idx;
476
477 if (test_bit(MT_WCID_FLAG_PS, &wcid->flags))
478 return 0;
479
480 if (atomic_read(&wcid->non_aql_packets) >= MT_MAX_NON_AQL_PKT)
481 return 0;
482
483 skb = mt76_txq_dequeue(phy, mtxq, false);
484 if (!skb)
485 return 0;
486
487 info = IEEE80211_SKB_CB(skb);
488 if (!(wcid->tx_info & MT_WCID_TX_INFO_SET))
489 ieee80211_get_tx_rates(txq->vif, txq->sta, skb,
490 info->control.rates, 1);
491
492 idx = __mt76_tx_queue_skb(dev, qid, skb, wcid, txq->sta, &stop);
493 if (idx < 0)
494 return idx;
495
496 do {
497 if (test_bit(MT76_STATE_PM, &phy->state) ||
498 test_bit(MT76_RESET, &phy->state))
499 return -EBUSY;
500
501 if (stop)
502 break;
503
> 504 if (q->queued + MT_TXQ_FREE_THR >= q->ndesc)
505 break;
506
507 skb = mt76_txq_dequeue(phy, mtxq, false);
508 if (!skb)
509 break;
510
511 info = IEEE80211_SKB_CB(skb);
512 if (!(wcid->tx_info & MT_WCID_TX_INFO_SET))
513 ieee80211_get_tx_rates(txq->vif, txq->sta, skb,
514 info->control.rates, 1);
515
516 idx = __mt76_tx_queue_skb(dev, qid, skb, wcid, txq->sta, &stop);
517 if (idx < 0)
518 break;
519
520 n_frames++;
521 } while (1);
522
523 dev->queue_ops->kick(dev, hwq);
524
525 return n_frames;
526 }
527
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[linux-next:master 12765/13394] drivers/scsi/bfa/bfa_ioc.c:2066:21: sparse: sparse: incorrect type in assignment (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 18250b538735142307082e4e99e3ae5c12d44013
commit: ef5a3a4c5d5d2be41ac4786a19172744bb18ecec [12765/13394] include/linux/compiler-gcc.h: sparse can do constant folding of __builtin_bswap*()
config: x86_64-randconfig-s021-20210419 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-330-g09ec74f6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout ef5a3a4c5d5d2be41ac4786a19172744bb18ecec
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/scsi/bfa/bfa_ioc.c:1800:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [assigned] [usertype] clscode @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:1800:28: sparse: expected unsigned short [assigned] [usertype] clscode
drivers/scsi/bfa/bfa_ioc.c:1800:28: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:1802:29: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:1813:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [assigned] [usertype] clscode @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:1813:29: sparse: expected unsigned short [assigned] [usertype] clscode
drivers/scsi/bfa/bfa_ioc.c:1813:29: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:1815:30: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:1780:24: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int val @@ got restricted __le32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:1780:24: sparse: expected unsigned int val
drivers/scsi/bfa/bfa_ioc.c:1780:24: sparse: got restricted __le32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:1963:31: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:1964:31: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:1965:31: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:1967:27: sparse: sparse: cast to restricted __be16
>> drivers/scsi/bfa/bfa_ioc.c:2066:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 [usertype] r32 @@ got unsigned int [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:2066:21: sparse: expected restricted __be32 [usertype] r32
drivers/scsi/bfa/bfa_ioc.c:2066:21: sparse: got unsigned int [usertype]
drivers/scsi/bfa/bfa_ioc.c:2067:26: sparse: sparse: cast from restricted __be32
drivers/scsi/bfa/bfa_ioc.c:2989:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] clscode @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:2989:22: sparse: expected unsigned short [usertype] clscode
drivers/scsi/bfa/bfa_ioc.c:2989:22: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:3265:52: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:3267:58: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:3269:59: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:3271:54: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:3273:54: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:3440:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] pers @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:3440:17: sparse: expected unsigned short [usertype] pers
drivers/scsi/bfa/bfa_ioc.c:3440:17: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:3441:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] bw_min @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:3441:19: sparse: expected unsigned short [usertype] bw_min
drivers/scsi/bfa/bfa_ioc.c:3441:19: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:3442:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] bw_max @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:3442:19: sparse: expected unsigned short [usertype] bw_max
drivers/scsi/bfa/bfa_ioc.c:3442:19: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:3565:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] bw_min @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:3565:19: sparse: expected unsigned short [usertype] bw_min
drivers/scsi/bfa/bfa_ioc.c:3565:19: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:3566:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] bw_max @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:3566:19: sparse: expected unsigned short [usertype] bw_max
drivers/scsi/bfa/bfa_ioc.c:3566:19: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:4268:21: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4270:23: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4273:23: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4301:21: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4303:23: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4306:23: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4325:21: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4364:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4372:40: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4373:39: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4378:41: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4380:41: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4382:41: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4384:41: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4386:41: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4388:41: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4395:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4401:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4412:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4418:35: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4435:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4441:33: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4829:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] count @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:4829:27: sparse: expected unsigned int [usertype] count
drivers/scsi/bfa/bfa_ioc.c:4829:27: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:4924:36: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:4933:33: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:4979:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] freq @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:4979:19: sparse: expected unsigned short [usertype] freq
drivers/scsi/bfa/bfa_ioc.c:4979:19: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:5006:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] period @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:5006:21: sparse: expected unsigned int [usertype] period
drivers/scsi/bfa/bfa_ioc.c:5006:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:5301:27: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:5367:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] offset @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:5367:21: sparse: expected unsigned int [usertype] offset
drivers/scsi/bfa/bfa_ioc.c:5367:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:5370:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:5370:21: sparse: expected unsigned int [usertype] length
drivers/scsi/bfa/bfa_ioc.c:5370:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:5383:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:5383:24: sparse: expected unsigned short [usertype]
drivers/scsi/bfa/bfa_ioc.c:5383:24: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:5405:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] offset @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:5405:21: sparse: expected unsigned int [usertype] offset
drivers/scsi/bfa/bfa_ioc.c:5405:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:5408:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:5408:21: sparse: expected unsigned int [usertype] length
drivers/scsi/bfa/bfa_ioc.c:5408:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:5722:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:5740:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:5757:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:5771:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:5780:35: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:5789:42: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:6222:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] offset @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:6222:21: sparse: expected unsigned int [usertype] offset
drivers/scsi/bfa/bfa_ioc.c:6222:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:6225:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:6225:21: sparse: expected unsigned int [usertype] length
drivers/scsi/bfa/bfa_ioc.c:6225:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:6256:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] offset @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:6256:21: sparse: expected unsigned int [usertype] offset
drivers/scsi/bfa/bfa_ioc.c:6256:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:6259:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:6259:21: sparse: expected unsigned int [usertype] length
drivers/scsi/bfa/bfa_ioc.c:6259:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:6571:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:6591:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:6600:35: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c: note: in included file (through drivers/scsi/bfa/bfa.h, drivers/scsi/bfa/bfa_modules.h, drivers/scsi/bfa/bfad_drv.h):
drivers/scsi/bfa/bfa_ioc.h:190:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] al_len @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.h:190:22: sparse: expected unsigned int [usertype] al_len
drivers/scsi/bfa/bfa_ioc.h:190:22: sparse: got restricted __be32 [usertype]
vim +2066 drivers/scsi/bfa/bfa_ioc.c
a36c61f9025b89 Krishna Gudipati 2010-09-15 2030
5fbe25c7a66460 Jing Huang 2010-10-18 2031 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 2032 * Read data from SMEM to host through PCI memmap
a36c61f9025b89 Krishna Gudipati 2010-09-15 2033 *
a36c61f9025b89 Krishna Gudipati 2010-09-15 2034 * @param[in] ioc memory for IOC
a36c61f9025b89 Krishna Gudipati 2010-09-15 2035 * @param[in] tbuf app memory to store data from smem
a36c61f9025b89 Krishna Gudipati 2010-09-15 2036 * @param[in] soff smem offset
a36c61f9025b89 Krishna Gudipati 2010-09-15 2037 * @param[in] sz size of smem in bytes
a36c61f9025b89 Krishna Gudipati 2010-09-15 2038 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 2039 static bfa_status_t
a36c61f9025b89 Krishna Gudipati 2010-09-15 2040 bfa_ioc_smem_read(struct bfa_ioc_s *ioc, void *tbuf, u32 soff, u32 sz)
a36c61f9025b89 Krishna Gudipati 2010-09-15 2041 {
50444a34002811 Maggie 2010-11-29 2042 u32 pgnum, loff;
50444a34002811 Maggie 2010-11-29 2043 __be32 r32;
a36c61f9025b89 Krishna Gudipati 2010-09-15 2044 int i, len;
a36c61f9025b89 Krishna Gudipati 2010-09-15 2045 u32 *buf = tbuf;
a36c61f9025b89 Krishna Gudipati 2010-09-15 2046
f7f73812e95077 Maggie Zhang 2010-12-09 2047 pgnum = PSS_SMEM_PGNUM(ioc->ioc_regs.smem_pg0, soff);
f7f73812e95077 Maggie Zhang 2010-12-09 2048 loff = PSS_SMEM_PGOFF(soff);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2049 bfa_trc(ioc, pgnum);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2050 bfa_trc(ioc, loff);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2051 bfa_trc(ioc, sz);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2052
a36c61f9025b89 Krishna Gudipati 2010-09-15 2053 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 2054 * Hold semaphore to serialize pll init and fwtrc.
a36c61f9025b89 Krishna Gudipati 2010-09-15 2055 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 2056 if (BFA_FALSE == bfa_ioc_sem_get(ioc->ioc_regs.ioc_init_sem_reg)) {
a36c61f9025b89 Krishna Gudipati 2010-09-15 2057 bfa_trc(ioc, 0);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2058 return BFA_STATUS_FAILED;
a36c61f9025b89 Krishna Gudipati 2010-09-15 2059 }
a36c61f9025b89 Krishna Gudipati 2010-09-15 2060
5344026065f79b Jing Huang 2010-10-18 2061 writel(pgnum, ioc->ioc_regs.host_page_num_fn);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2062
a36c61f9025b89 Krishna Gudipati 2010-09-15 2063 len = sz/sizeof(u32);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2064 bfa_trc(ioc, len);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2065 for (i = 0; i < len; i++) {
a36c61f9025b89 Krishna Gudipati 2010-09-15 @2066 r32 = bfa_mem_read(ioc->ioc_regs.smem_page_start, loff);
ba1340788ff302 Vijaya Mohan Guvva 2013-05-13 2067 buf[i] = swab32(r32);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2068 loff += sizeof(u32);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2069
5fbe25c7a66460 Jing Huang 2010-10-18 2070 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 2071 * handle page offset wrap around
a36c61f9025b89 Krishna Gudipati 2010-09-15 2072 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 2073 loff = PSS_SMEM_PGOFF(loff);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2074 if (loff == 0) {
a36c61f9025b89 Krishna Gudipati 2010-09-15 2075 pgnum++;
5344026065f79b Jing Huang 2010-10-18 2076 writel(pgnum, ioc->ioc_regs.host_page_num_fn);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2077 }
a36c61f9025b89 Krishna Gudipati 2010-09-15 2078 }
f7f73812e95077 Maggie Zhang 2010-12-09 2079 writel(PSS_SMEM_PGNUM(ioc->ioc_regs.smem_pg0, 0),
f7f73812e95077 Maggie Zhang 2010-12-09 2080 ioc->ioc_regs.host_page_num_fn);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2081 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 2082 * release semaphore.
a36c61f9025b89 Krishna Gudipati 2010-09-15 2083 */
5a0adaedffce91 Krishna Gudipati 2011-06-24 2084 readl(ioc->ioc_regs.ioc_init_sem_reg);
f7f73812e95077 Maggie Zhang 2010-12-09 2085 writel(1, ioc->ioc_regs.ioc_init_sem_reg);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2086
a36c61f9025b89 Krishna Gudipati 2010-09-15 2087 bfa_trc(ioc, pgnum);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2088 return BFA_STATUS_OK;
a36c61f9025b89 Krishna Gudipati 2010-09-15 2089 }
a36c61f9025b89 Krishna Gudipati 2010-09-15 2090
:::::: The code at line 2066 was first introduced by commit
:::::: a36c61f9025b8924f99f54d518763bee7aa84085 [SCSI] bfa: cleanup driver
:::::: TO: Krishna Gudipati <kgudipat(a)brocade.com>
:::::: CC: James Bottomley <James.Bottomley(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[leon-rdma:devlink-core 13/19] drivers/net/ethernet/ti/am65-cpsw-nuss.c:2398:14: error: 'struct devlink_port' has no member named 'registered'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git devlink-core
head: 84f6d5ca4cad2a2c56535c3c2c3134785250d975
commit: 0a71812973423682fac4238aa83ae41a852ac73f [13/19] devlink: Remove duplicated registration check
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-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/commi...
git remote add leon-rdma https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git
git fetch --no-tags leon-rdma devlink-core
git checkout 0a71812973423682fac4238aa83ae41a852ac73f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/ethernet/ti/am65-cpsw-nuss.c: In function 'am65_cpsw_unregister_devlink_ports':
>> drivers/net/ethernet/ti/am65-cpsw-nuss.c:2398:14: error: 'struct devlink_port' has no member named 'registered'
2398 | if (dl_port->registered)
| ^~
vim +2398 drivers/net/ethernet/ti/am65-cpsw-nuss.c
58356eb31d60dd Vignesh Raghavendra 2021-02-11 2387
58356eb31d60dd Vignesh Raghavendra 2021-02-11 2388 static void am65_cpsw_unregister_devlink_ports(struct am65_cpsw_common *common)
58356eb31d60dd Vignesh Raghavendra 2021-02-11 2389 {
58356eb31d60dd Vignesh Raghavendra 2021-02-11 2390 struct devlink_port *dl_port;
58356eb31d60dd Vignesh Raghavendra 2021-02-11 2391 struct am65_cpsw_port *port;
58356eb31d60dd Vignesh Raghavendra 2021-02-11 2392 int i;
58356eb31d60dd Vignesh Raghavendra 2021-02-11 2393
58356eb31d60dd Vignesh Raghavendra 2021-02-11 2394 for (i = 1; i <= common->port_num; i++) {
58356eb31d60dd Vignesh Raghavendra 2021-02-11 2395 port = am65_common_get_port(common, i);
58356eb31d60dd Vignesh Raghavendra 2021-02-11 2396 dl_port = &port->devlink_port;
58356eb31d60dd Vignesh Raghavendra 2021-02-11 2397
58356eb31d60dd Vignesh Raghavendra 2021-02-11 @2398 if (dl_port->registered)
58356eb31d60dd Vignesh Raghavendra 2021-02-11 2399 devlink_port_unregister(dl_port);
58356eb31d60dd Vignesh Raghavendra 2021-02-11 2400 }
58356eb31d60dd Vignesh Raghavendra 2021-02-11 2401 }
58356eb31d60dd Vignesh Raghavendra 2021-02-11 2402
:::::: The code at line 2398 was first introduced by commit
:::::: 58356eb31d60dd8994e5067096ef1a09e4d9ceda net: ti: am65-cpsw-nuss: Add devlink support
:::::: TO: Vignesh Raghavendra <vigneshr(a)ti.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[chrome-os:chromeos-5.4 56/96] arch/x86/pci/common.c:655:14: error: no member named 'dma_ops' in 'struct device'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 2c31b7382fbc783020d6d38a7a560801d1a58c7b
commit: 109d9eff9eabe16d9d2d84351d6ad709dcf14b54 [56/96] BACKPORT: dma-mapping: make support for dma ops optional
config: x86_64-randconfig-a015-20210419 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 1c10201d9660c1d6f43a7226ca7381bfa255105d)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 109d9eff9eabe16d9d2d84351d6ad709dcf14b54
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/x86/pci/common.c:655:14: error: no member named 'dma_ops' in 'struct device'
pdev->dev.dma_ops = domain->dma_ops;
~~~~~~~~~ ^
1 error generated.
vim +655 arch/x86/pci/common.c
d9c3d6ff227cbd Keith Busch 2016-01-12 647
d9c3d6ff227cbd Keith Busch 2016-01-12 648 static void set_dma_domain_ops(struct pci_dev *pdev)
d9c3d6ff227cbd Keith Busch 2016-01-12 649 {
d9c3d6ff227cbd Keith Busch 2016-01-12 650 struct dma_domain *domain;
d9c3d6ff227cbd Keith Busch 2016-01-12 651
d9c3d6ff227cbd Keith Busch 2016-01-12 652 spin_lock(&dma_domain_list_lock);
d9c3d6ff227cbd Keith Busch 2016-01-12 653 list_for_each_entry(domain, &dma_domain_list, node) {
d9c3d6ff227cbd Keith Busch 2016-01-12 654 if (pci_domain_nr(pdev->bus) == domain->domain_nr) {
5657933dbb6e25 Bart Van Assche 2017-01-20 @655 pdev->dev.dma_ops = domain->dma_ops;
d9c3d6ff227cbd Keith Busch 2016-01-12 656 break;
d9c3d6ff227cbd Keith Busch 2016-01-12 657 }
d9c3d6ff227cbd Keith Busch 2016-01-12 658 }
d9c3d6ff227cbd Keith Busch 2016-01-12 659 spin_unlock(&dma_domain_list_lock);
d9c3d6ff227cbd Keith Busch 2016-01-12 660 }
d9c3d6ff227cbd Keith Busch 2016-01-12 661 #else
d9c3d6ff227cbd Keith Busch 2016-01-12 662 static void set_dma_domain_ops(struct pci_dev *pdev) {}
d9c3d6ff227cbd Keith Busch 2016-01-12 663 #endif
d9c3d6ff227cbd Keith Busch 2016-01-12 664
:::::: The code at line 655 was first introduced by commit
:::::: 5657933dbb6e25feaf5d8df8c88f96cdade693a3 treewide: Move dma_ops from struct dev_archdata into struct device
:::::: TO: Bart Van Assche <bart.vanassche(a)sandisk.com>
:::::: CC: Doug Ledford <dledford(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[leon-rdma:testing/rdma-next 2/2] drivers/infiniband/hw/hfi1/netdev.h:67:11: error: 'struct hfi1_devdata' has no member named 'netdev_rx'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git testing/rdma-next
head: 203ac2aa1f214d1b0fc22618ceab73f393352fdf
commit: 203ac2aa1f214d1b0fc22618ceab73f393352fdf [2/2] 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/commi...
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 203ac2aa1f214d1b0fc22618ceab73f393352fdf
# 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(a)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/file_ops.c:61:
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/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;
| ^~
--
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
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(a)cornelisnetworks.com>
:::::: CC: Jason Gunthorpe <jgg(a)nvidia.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[leon-rdma:testing/rdma-next 2/2] drivers/infiniband/hw/hfi1/netdev.h:67:13: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git testing/rdma-next
head: 203ac2aa1f214d1b0fc22618ceab73f393352fdf
commit: 203ac2aa1f214d1b0fc22618ceab73f393352fdf [2/2] Merge branch 'rdma-next' into testing/rdma-next
config: x86_64-randconfig-a004-20210418 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 1c10201d9660c1d6f43a7226ca7381bfa255105d)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git/commi...
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 203ac2aa1f214d1b0fc22618ceab73f393352fdf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/infiniband/hw/hfi1/exp_rcv.c:49:
In file included from drivers/infiniband/hw/hfi1/trace.h:63:
In file included from drivers/infiniband/hw/hfi1/trace_tx.h:56:
In file included from drivers/infiniband/hw/hfi1/ipoib.h:25:
>> drivers/infiniband/hw/hfi1/netdev.h:67:13: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
return dd->netdev_rx->num_rx_q;
~~ ^
drivers/infiniband/hw/hfi1/netdev.h:73:13: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
return dd->netdev_rx->rxq[ctxt].rcd;
~~ ^
drivers/infiniband/hw/hfi1/netdev.h:79:13: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
return dd->netdev_rx->rmt_start;
~~ ^
drivers/infiniband/hw/hfi1/netdev.h:85:6: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
dd->netdev_rx->rmt_start = rmt_idx;
~~ ^
4 errors generated.
--
In file included from drivers/infiniband/hw/hfi1/netdev_rx.c:13:
>> drivers/infiniband/hw/hfi1/netdev.h:67:13: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
return dd->netdev_rx->num_rx_q;
~~ ^
drivers/infiniband/hw/hfi1/netdev.h:73:13: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
return dd->netdev_rx->rxq[ctxt].rcd;
~~ ^
drivers/infiniband/hw/hfi1/netdev.h:79:13: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
return dd->netdev_rx->rmt_start;
~~ ^
drivers/infiniband/hw/hfi1/netdev.h:85:6: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
dd->netdev_rx->rmt_start = rmt_idx;
~~ ^
>> drivers/infiniband/hw/hfi1/netdev_rx.c:309:34: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
struct hfi1_netdev_rx *rx = dd->netdev_rx;
~~ ^
drivers/infiniband/hw/hfi1/netdev_rx.c:329:34: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
struct hfi1_netdev_rx *rx = dd->netdev_rx;
~~ ^
drivers/infiniband/hw/hfi1/netdev_rx.c:368:6: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
dd->netdev_rx = rx;
~~ ^
drivers/infiniband/hw/hfi1/netdev_rx.c:375:10: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
if (dd->netdev_rx) {
~~ ^
drivers/infiniband/hw/hfi1/netdev_rx.c:377:13: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
kfree(dd->netdev_rx);
~~ ^
drivers/infiniband/hw/hfi1/netdev_rx.c:378:7: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
dd->netdev_rx = NULL;
~~ ^
drivers/infiniband/hw/hfi1/netdev_rx.c:395:11: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
if (!dd->netdev_rx)
~~ ^
drivers/infiniband/hw/hfi1/netdev_rx.c:398:11: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
rx = dd->netdev_rx;
~~ ^
drivers/infiniband/hw/hfi1/netdev_rx.c:411:11: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
if (!dd->netdev_rx)
~~ ^
drivers/infiniband/hw/hfi1/netdev_rx.c:414:11: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
rx = dd->netdev_rx;
~~ ^
drivers/infiniband/hw/hfi1/netdev_rx.c:435:34: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
struct hfi1_netdev_rx *rx = dd->netdev_rx;
~~ ^
drivers/infiniband/hw/hfi1/netdev_rx.c:449:34: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
struct hfi1_netdev_rx *rx = dd->netdev_rx;
~~ ^
drivers/infiniband/hw/hfi1/netdev_rx.c:462:34: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
struct hfi1_netdev_rx *rx = dd->netdev_rx;
~~ ^
drivers/infiniband/hw/hfi1/netdev_rx.c:475:34: error: no member named 'netdev_rx' in 'struct hfi1_devdata'
struct hfi1_netdev_rx *rx = dd->netdev_rx;
~~ ^
18 errors generated.
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(a)cornelisnetworks.com>
:::::: CC: Jason Gunthorpe <jgg(a)nvidia.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[nmenon:yaml/tisci 8/8] dtbs_check: arch/arm/boot/dts/keystone-k2g-evm.dt.yaml: pmmc@2921c00: $nodename:0: 'pmmc@2921c00' does not match '^system-controller@[0-9a-f]+$'
by kernel test robot
tree: https://github.com/nmenon/linux-2.6-playground yaml/tisci
head: a42bec264453167ceba04c47cf37cdcaa643fd61
commit: a42bec264453167ceba04c47cf37cdcaa643fd61 [8/8] dt-bindings: arm: keystone: Convert ti,sci to json schema
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce: make ARCH=arm dtbs_check
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
dtcheck warnings: (new ones prefixed by >>)
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/can@260b200: failed to match any schema with compatible: ['ti,am4372-d_can', 'ti,am3352-d_can']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/can@260b400: failed to match any schema with compatible: ['ti,am4372-d_can', 'ti,am3352-d_can']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/can@260b400: failed to match any schema with compatible: ['ti,am4372-d_can', 'ti,am3352-d_can']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/i2c@2530000: failed to match any schema with compatible: ['ti,keystone-i2c']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/i2c@2530400: failed to match any schema with compatible: ['ti,keystone-i2c']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/i2c@2530400/sii9022@3b: failed to match any schema with compatible: ['sil,sii9022']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/i2c@2530400/tlv320aic3106@1b: failed to match any schema with compatible: ['ti,tlv320aic3106']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/i2c@2530800: failed to match any schema with compatible: ['ti,keystone-i2c']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/dsp@10800000: failed to match any schema with compatible: ['ti,k2g-dsp']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/msgmgr@2a00000: failed to match any schema with compatible: ['ti,k2g-message-manager']
>> arch/arm/boot/dts/keystone-k2g-evm.dt.yaml: pmmc@2921c00: $nodename:0: 'pmmc@2921c00' does not match '^system-controller@[0-9a-f]+$'
From schema: Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml
>> arch/arm/boot/dts/keystone-k2g-evm.dt.yaml: pmmc@2921c00: 'clocks' does not match any of the regexes: '^(power-controller|clock-controller|reset-controller)$', 'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml: clocks: 'clocks' is a dependency of 'assigned-clocks'
From schema: Documentation/devicetree/bindings/clock/ti,sci-clk.yaml
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml: clocks: $nodename:0: 'clocks' does not match '^clock-controller$'
From schema: Documentation/devicetree/bindings/clock/ti,sci-clk.yaml
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml: clocks: 'assigned-clock-rates', 'assigned-clocks' do not match any of the regexes: 'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/clock/ti,sci-clk.yaml
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml: clocks: 'clocks' is a dependency of 'assigned-clocks'
From schema: /usr/local/lib/python3.9/dist-packages/dtschema/schemas/clock/clock.yaml
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/gpio@2603000: failed to match any schema with compatible: ['ti,k2g-gpio', 'ti,keystone-gpio']
--
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/device-state-control@2620000/keystone_dsp_gpio@240: failed to match any schema with compatible: ['ti,keystone-dsp-gpio']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/can@260b200: failed to match any schema with compatible: ['ti,am4372-d_can', 'ti,am3352-d_can']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/can@260b200: failed to match any schema with compatible: ['ti,am4372-d_can', 'ti,am3352-d_can']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/can@260b400: failed to match any schema with compatible: ['ti,am4372-d_can', 'ti,am3352-d_can']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/can@260b400: failed to match any schema with compatible: ['ti,am4372-d_can', 'ti,am3352-d_can']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/i2c@2530000: failed to match any schema with compatible: ['ti,keystone-i2c']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/i2c@2530400: failed to match any schema with compatible: ['ti,keystone-i2c']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/i2c@2530800: failed to match any schema with compatible: ['ti,keystone-i2c']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/dsp@10800000: failed to match any schema with compatible: ['ti,k2g-dsp']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/msgmgr@2a00000: failed to match any schema with compatible: ['ti,k2g-message-manager']
>> arch/arm/boot/dts/keystone-k2g-ice.dt.yaml: pmmc@2921c00: $nodename:0: 'pmmc@2921c00' does not match '^system-controller@[0-9a-f]+$'
From schema: Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml
>> arch/arm/boot/dts/keystone-k2g-ice.dt.yaml: pmmc@2921c00: 'clocks' does not match any of the regexes: '^(power-controller|clock-controller|reset-controller)$', 'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml: clocks: $nodename:0: 'clocks' does not match '^clock-controller$'
From schema: Documentation/devicetree/bindings/clock/ti,sci-clk.yaml
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/gpio@2603000: failed to match any schema with compatible: ['ti,k2g-gpio', 'ti,keystone-gpio']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/gpio@2603000: failed to match any schema with compatible: ['ti,k2g-gpio', 'ti,keystone-gpio']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/gpio@260a000: failed to match any schema with compatible: ['ti,k2g-gpio', 'ti,keystone-gpio']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/gpio@260a000: failed to match any schema with compatible: ['ti,k2g-gpio', 'ti,keystone-gpio']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml: dss@02540000: '#address-cells', '#size-cells', 'ranges' do not match any of the regexes: 'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/display/ti/ti,k2g-dss.yaml
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/edma@2700000: failed to match any schema with compatible: ['ti,k2g-edma3-tpcc', 'ti,edma3-tpcc']
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[leon-rdma:testing/rdma-next 2/2] drivers/infiniband/hw/hfi1/netdev.h:71:73: warning: parameter 'ctxt' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git testing/rdma-next
head: 203ac2aa1f214d1b0fc22618ceab73f393352fdf
commit: 203ac2aa1f214d1b0fc22618ceab73f393352fdf [2/2] 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/commi...
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 203ac2aa1f214d1b0fc22618ceab73f393352fdf
# 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(a)intel.com>
All warnings (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/driver.c:60:
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/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;
| ^~
--
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
vim +/ctxt +71 drivers/infiniband/hw/hfi1/netdev.h
6991abcb993cf6 Kaike Wan 2020-05-11 69
6991abcb993cf6 Kaike Wan 2020-05-11 70 static inline
6991abcb993cf6 Kaike Wan 2020-05-11 @71 struct hfi1_ctxtdata *hfi1_netdev_get_ctxt(struct hfi1_devdata *dd, int ctxt)
6991abcb993cf6 Kaike Wan 2020-05-11 72 {
780278c2c8bb50 Mike Marciniszyn 2021-03-29 73 return dd->netdev_rx->rxq[ctxt].rcd;
6991abcb993cf6 Kaike Wan 2020-05-11 74 }
6991abcb993cf6 Kaike Wan 2020-05-11 75
:::::: The code at line 71 was first introduced by commit
:::::: 6991abcb993cf6c0711237b9d393d4f0a2008f1f IB/hfi1: Add functions to receive accelerated ipoib packets
:::::: TO: Kaike Wan <kaike.wan(a)intel.com>
:::::: CC: Jason Gunthorpe <jgg(a)mellanox.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months