kbuild test robot
2019-Dec-03 19:56 UTC
[vhost:linux-next 4/11] drivers/net/ethernet/mellanox/mlx4/en_netdev.c:1376:12: error: 'tx_ring' undeclared; did you mean 'en_print'?
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 at 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 at lists.01.org Intel
Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 59122 bytes
Desc: not available
URL:
<http://lists.linuxfoundation.org/pipermail/virtualization/attachments/20191204/20e940ac/attachment-0001.gz>
Reasonably Related Threads
- [PATCH net-next v10 2/3] mlx4: use new txqueue timeout argument
- [PATCH net-next v10 2/3] mlx4: use new txqueue timeout argument
- [PATCH net-next v2] drivers: net: virtio_net: Implement a dev_watchdog handler
- [PATCH net-next v2] drivers: net: virtio_net: Implement a dev_watchdog handler
- [PATCH net-next v2] drivers: net: virtio_net: Implement a dev_watchdog handler
