* [vhost:linux-next 4/11] drivers/net/ethernet/mellanox/mlx4/en_netdev.c:1376:12: error: 'tx_ring' undeclared; did you mean 'en_print'?
@ 2019-12-03 19:56 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-12-03 19:56 UTC (permalink / raw)
To: Michael S. Tsirkin; +Cc: kbuild-all, kvm, virtualization, netdev
[-- Attachment #1: Type: text/plain, Size: 2813 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
head: b5fe11663b48ca267829b34a65b4133e4e34c993
commit: 1f4098ea671b092af3806789d89e278e1f08e222 [4/11] mlx4: use new txqueue timeout argument
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 1f4098ea671b092af3806789d89e278e1f08e222
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=sparc64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/net/ethernet/mellanox/mlx4/en_netdev.c:50:0:
drivers/net/ethernet/mellanox/mlx4/en_netdev.c: In function 'mlx4_en_tx_timeout':
>> drivers/net/ethernet/mellanox/mlx4/en_netdev.c:1376:12: error: 'tx_ring' undeclared (first use in this function); did you mean 'en_print'?
txqueue, tx_ring->qpn, tx_ring->sp_cqn,
^
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h:830:41: note: in definition of macro 'en_warn'
en_print(KERN_WARNING, priv, format, ##__VA_ARGS__)
^~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx4/en_netdev.c:1376:12: note: each undeclared identifier is reported only once for each function it appears in
txqueue, tx_ring->qpn, tx_ring->sp_cqn,
^
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h:830:41: note: in definition of macro 'en_warn'
en_print(KERN_WARNING, priv, format, ##__VA_ARGS__)
^~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx4/en_netdev.c:1370:6: warning: unused variable 'i' [-Wunused-variable]
int i;
^
vim +1376 drivers/net/ethernet/mellanox/mlx4/en_netdev.c
1365
1366 static void mlx4_en_tx_timeout(struct net_device *dev, unsigned int txqueue)
1367 {
1368 struct mlx4_en_priv *priv = netdev_priv(dev);
1369 struct mlx4_en_dev *mdev = priv->mdev;
1370 int i;
1371
1372 if (netif_msg_timer(priv))
1373 en_warn(priv, "Tx timeout called on port:%d\n", priv->port);
1374
1375 en_warn(priv, "TX timeout on queue: %d, QP: 0x%x, CQ: 0x%x, Cons: 0x%x, Prod: 0x%x\n",
> 1376 txqueue, tx_ring->qpn, tx_ring->sp_cqn,
1377 tx_ring->cons, tx_ring->prod);
1378
1379 priv->port_stats.tx_timeout++;
1380 en_dbg(DRV, priv, "Scheduling watchdog\n");
1381 queue_work(mdev->workqueue, &priv->watchdog_task);
1382 }
1383
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 59122 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-03 19:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-03 19:56 [vhost:linux-next 4/11] drivers/net/ethernet/mellanox/mlx4/en_netdev.c:1376:12: error: 'tx_ring' undeclared; did you mean 'en_print'? kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).