[toke:xdp-queueing-08 5/10] include/net/xdp.h:549:19: error: redefinition of 'dev_xdp_enqueue'

kernel test robot
2023-12-17T03:52:21Z

Hi Toke,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git xdp-queueing-08
head: 707bff6510161065e4e624c99c8c668b6c0114b6
commit: 901d57633459462242239a51dd6b9bed3e7d96d7 [5/10] xdp: Move bulk queue functions and data structures out of devmap.c
config: i386-buildonly-randconfig-003-20231217 (https://download.01.org/0day-ci/archive/20231217/202312171147.k361NPR4-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231217/202312171147.k361NPR4-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/202312171147.k361NPR4-lkp@intel.com/

All errors (new ones prefixed by >>):

In file included from fs/eventpoll.c:40:
In file included from include/net/busy_poll.h:19:
>> include/net/xdp.h:549:19: error: redefinition of 'dev_xdp_enqueue'
static inline int dev_xdp_enqueue(struct net_device *dev, struct xdp_frame *xdpf,
^
include/linux/bpf.h:2567:5: note: previous definition is here
int dev_xdp_enqueue(struct net_device *dev, struct xdp_frame *xdpf,
^
1 error generated.

vim +/dev_xdp_enqueue +549 include/net/xdp.h

548
> 549 static inline int dev_xdp_enqueue(struct net_device *dev, struct xdp_frame *xdpf,
550 struct net_device *dev_rx)
551 {
552 return __xdp_enqueue_frame(dev, xdpf, dev_rx, NULL);
553 }
554

--
0-DAY CI Kernel Test Service