tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
queue-4.19
head: 4b01732de5278618d8b013fa300638742392d507
commit: 4b01732de5278618d8b013fa300638742392d507 [309/309] net: hns3: fix error handling
int the hns3_get_vector_ring_chain
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.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 4b01732de5278618d8b013fa300638742392d507
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sparc64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net//ethernet/hisilicon/hns3/hns3_enet.c: In function
'hns3_nic_init_vector_data':
> drivers/net//ethernet/hisilicon/hns3/hns3_enet.c:2675:4: error:
label 'map_ring_fail' used but not defined
goto map_ring_fail;
^~~~
vim +/map_ring_fail +2675 drivers/net//ethernet/hisilicon/hns3/hns3_enet.c
2631
2632 static int hns3_nic_init_vector_data(struct hns3_nic_priv *priv)
2633 {
2634 struct hnae3_ring_chain_node vector_ring_chain;
2635 struct hnae3_handle *h = priv->ae_handle;
2636 struct hns3_enet_tqp_vector *tqp_vector;
2637 int ret = 0;
2638 u16 i;
2639
2640 for (i = 0; i < priv->vector_num; i++) {
2641 tqp_vector = &priv->tqp_vector[i];
2642 hns3_vector_gl_rl_init_hw(tqp_vector, priv);
2643 tqp_vector->num_tqps = 0;
2644 }
2645
2646 for (i = 0; i < h->kinfo.num_tqps; i++) {
2647 u16 vector_i = i % priv->vector_num;
2648 u16 tqp_num = h->kinfo.num_tqps;
2649
2650 tqp_vector = &priv->tqp_vector[vector_i];
2651
2652 hns3_add_ring_to_group(&tqp_vector->tx_group,
2653 priv->ring_data[i].ring);
2654
2655 hns3_add_ring_to_group(&tqp_vector->rx_group,
2656 priv->ring_data[i + tqp_num].ring);
2657
2658 priv->ring_data[i].ring->tqp_vector = tqp_vector;
2659 priv->ring_data[i + tqp_num].ring->tqp_vector = tqp_vector;
2660 tqp_vector->num_tqps++;
2661 }
2662
2663 for (i = 0; i < priv->vector_num; i++) {
2664 tqp_vector = &priv->tqp_vector[i];
2665
2666 tqp_vector->rx_group.total_bytes = 0;
2667 tqp_vector->rx_group.total_packets = 0;
2668 tqp_vector->tx_group.total_bytes = 0;
2669 tqp_vector->tx_group.total_packets = 0;
2670 tqp_vector->handle = h;
2671
2672 ret = hns3_get_vector_ring_chain(tqp_vector,
2673 &vector_ring_chain);
2674 if (ret)
2675 goto map_ring_fail;
2676
2677 ret = h->ae_algo->ops->map_ring_to_vector(h,
2678 tqp_vector->vector_irq, &vector_ring_chain);
2679
2680 hns3_free_vector_ring_chain(tqp_vector, &vector_ring_chain);
2681
2682 if (ret)
2683 return ret;
2684
2685 netif_napi_add(priv->netdev, &tqp_vector->napi,
2686 hns3_nic_common_poll, NAPI_POLL_WEIGHT);
2687 }
2688
2689 return 0;
2690 }
2691
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation