Thread (25 messages) 25 messages, 4 authors, 2026-01-15

Re: [PATCH net-next 11/11] net: fec: add AF_XDP zero-copy support

From: kernel test robot <hidden>
Date: 2026-01-13 09:30:56
Also in: bpf, imx, lkml, oe-kbuild-all

Hi Wei,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Wei-Fang/net-fec-add-fec_txq_trigger_xmit-helper/20260113-113607
base:   net-next/main
patch link:    https://lore.kernel.org/r/20260113032939.3705137-12-wei.fang%40nxp.com
patch subject: [PATCH net-next 11/11] net: fec: add AF_XDP zero-copy support
config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20260113/202601131736.i41CNo5A-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260113/202601131736.i41CNo5A-lkp@intel.com/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 [off-list ref]
| Closes: https://lore.kernel.org/oe-kbuild-all/202601131736.i41CNo5A-lkp@intel.com/ (local)

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/freescale/fec_main.c: In function 'fec_enet_rx_queue_xsk':
quoted
drivers/net/ethernet/freescale/fec_main.c:2261:20: warning: variable 'dma' set but not used [-Wunused-but-set-variable]
    2261 |         dma_addr_t dma;
         |                    ^~~


vim +/dma +2261 drivers/net/ethernet/freescale/fec_main.c

  2245	
  2246	static int fec_enet_rx_queue_xsk(struct fec_enet_private *fep, int queue,
  2247					 int budget, struct bpf_prog *prog)
  2248	{
  2249		u32 data_start = FEC_ENET_XDP_HEADROOM + fep->rx_shift;
  2250		struct fec_enet_priv_rx_q *rxq = fep->rx_queue[queue];
  2251		struct net_device *ndev = fep->netdev;
  2252		struct bufdesc *bdp = rxq->bd.cur;
  2253		u32 sub_len = 4 + fep->rx_shift;
  2254		int cpu = smp_processor_id();
  2255		bool wakeup_xsk = false;
  2256		struct xdp_buff *xsk;
  2257		int pkt_received = 0;
  2258		struct sk_buff *skb;
  2259		u16 status, pkt_len;
  2260		u32 xdp_res = 0;
2261		dma_addr_t dma;
  2262		int index, err;
  2263		u32 act;
  2264	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help