Re: [net-next v4 08/12] net: bnxt: Implement software USO
From: kernel test robot
Date: Sun Mar 22 2026 - 04:45:37 EST
Hi Joe,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 9f4960b94f1a044f76da98a765d6cbd294c22c92]
url: https://github.com/intel-lab-lkp/linux/commits/Joe-Damato/net-tso-Introduce-tso_dma_map/20260322-071901
base: 9f4960b94f1a044f76da98a765d6cbd294c22c92
patch link: https://lore.kernel.org/r/20260320144141.260246-9-joe%40dama.to
patch subject: [net-next v4 08/12] net: bnxt: Implement software USO
config: i386-randconfig-012-20260322 (https://download.01.org/0day-ci/archive/20260322/202603221823.WbZUThzj-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260322/202603221823.WbZUThzj-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603221823.WbZUThzj-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
drivers/net/ethernet/broadcom/bnxt/bnxt_gso.c: In function 'bnxt_sw_udp_gso_xmit':
>> drivers/net/ethernet/broadcom/bnxt/bnxt_gso.c:43:20: warning: variable 'last_unmap_addr' set but not used [-Wunused-but-set-variable]
43 | dma_addr_t last_unmap_addr = 0;
| ^~~~~~~~~~~~~~~
>> drivers/net/ethernet/broadcom/bnxt/bnxt_gso.c:41:22: warning: variable 'last_unmap_len' set but not used [-Wunused-but-set-variable]
41 | unsigned int last_unmap_len = 0;
| ^~~~~~~~~~~~~~
vim +/last_unmap_addr +43 drivers/net/ethernet/broadcom/bnxt/bnxt_gso.c
33
34 netdev_tx_t bnxt_sw_udp_gso_xmit(struct bnxt *bp,
35 struct bnxt_tx_ring_info *txr,
36 struct netdev_queue *txq,
37 struct sk_buff *skb)
38 {
39 struct bnxt_sw_tx_bd *last_unmap_buf = NULL;
40 unsigned int hdr_len, mss, num_segs;
> 41 unsigned int last_unmap_len = 0;
42 struct pci_dev *pdev = bp->pdev;
> 43 dma_addr_t last_unmap_addr = 0;
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki