llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH RFC net-next 6/6] cadence: macb/gem: introduce xmit support
       [not found] <20251119135330.551835-7-pvalerio@redhat.com>
@ 2025-11-22 20:49 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-22 20:49 UTC (permalink / raw)
  To: Paolo Valerio; +Cc: llvm, oe-kbuild-all

Hi Paolo,

[This is a private test report for your RFC patch.]
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/Paolo-Valerio/cadence-macb-gem-Add-page-pool-support/20251119-222149
base:   net-next/main
patch link:    https://lore.kernel.org/r/20251119135330.551835-7-pvalerio%40redhat.com
patch subject: [PATCH RFC net-next 6/6] cadence: macb/gem: introduce xmit support
config: riscv-defconfig (https://download.01.org/0day-ci/archive/20251123/202511230432.HbfOQLRw-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9e9fe08b16ea2c4d9867fb4974edf2a3776d6ece)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251123/202511230432.HbfOQLRw-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511230432.HbfOQLRw-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/net/ethernet/cadence/macb_main.c:1515:3: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
    1515 |                 struct xdp_frame *xdpf = xdp_convert_buff_to_frame(xdp);
         |                 ^
   1 warning generated.


vim +1515 drivers/net/ethernet/cadence/macb_main.c

  1491	
  1492	static u32 gem_xdp_run(struct macb_queue *queue, struct xdp_buff *xdp,
  1493			       struct net_device *dev, dma_addr_t addr)
  1494	{
  1495		struct bpf_prog *prog;
  1496		u32 act = XDP_PASS;
  1497	
  1498		rcu_read_lock();
  1499	
  1500		prog = rcu_dereference(queue->bp->prog);
  1501		if (!prog)
  1502			goto out;
  1503	
  1504		act = bpf_prog_run_xdp(prog, xdp);
  1505		switch (act) {
  1506		case XDP_PASS:
  1507			goto out;
  1508		case XDP_REDIRECT:
  1509			if (unlikely(xdp_do_redirect(dev, xdp, prog))) {
  1510				act = XDP_DROP;
  1511				break;
  1512			}
  1513			goto out;
  1514		case XDP_TX:
> 1515			struct xdp_frame *xdpf = xdp_convert_buff_to_frame(xdp);
  1516	
  1517			if (!xdpf || macb_xdp_submit_frame(queue->bp, xdpf, dev, addr))
  1518				act = XDP_DROP;
  1519			goto out;
  1520		default:
  1521			bpf_warn_invalid_xdp_action(dev, prog, act);
  1522			fallthrough;
  1523		case XDP_ABORTED:
  1524			trace_xdp_exception(dev, prog, act);
  1525			fallthrough;
  1526		case XDP_DROP:
  1527			break;
  1528		}
  1529	
  1530		page_pool_put_full_page(queue->page_pool,
  1531					virt_to_head_page(xdp->data), true);
  1532	out:
  1533		rcu_read_unlock();
  1534	
  1535		return act;
  1536	}
  1537	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-11-22 20:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20251119135330.551835-7-pvalerio@redhat.com>
2025-11-22 20:49 ` [PATCH RFC net-next 6/6] cadence: macb/gem: introduce xmit support kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).