lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202601131736.i41CNo5A-lkp@intel.com>
Date: Tue, 13 Jan 2026 17:29:55 +0800
From: kernel test robot <lkp@...el.com>
To: Wei Fang <wei.fang@....com>, shenwei.wang@....com,
	xiaoning.wang@....com, frank.li@....com, andrew+netdev@...n.ch,
	davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
	pabeni@...hat.com, ast@...nel.org, daniel@...earbox.net,
	hawk@...nel.org, john.fastabend@...il.com, sdf@...ichev.me
Cc: oe-kbuild-all@...ts.linux.dev, netdev@...r.kernel.org,
	linux-kernel@...r.kernel.org, imx@...ts.linux.dev,
	bpf@...r.kernel.org
Subject: Re: [PATCH net-next 11/11] net: fec: add AF_XDP zero-copy support

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 <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601131736.i41CNo5A-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/freescale/fec_main.c: In function 'fec_enet_rx_queue_xsk':
>> 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ