Re: [PATCH net-next v5 8/8] vhost_net: Replace rx_ring with calls of TUN/TAP wrappers

From: kernel test robot

Date: Fri Sep 26 2025 - 09:47:46 EST


Hi Simon,

kernel test robot noticed the following build errors:

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

url: https://github.com/intel-lab-lkp/linux/commits/Simon-Schippers/__ptr_ring_full_next-Returns-if-ring-will-be-full-after-next-insertion/20250924-180633
base: net-next/main
patch link: https://lore.kernel.org/r/20250922221553.47802-9-simon.schippers%40tu-dortmund.de
patch subject: [PATCH net-next v5 8/8] vhost_net: Replace rx_ring with calls of TUN/TAP wrappers
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20250926/202509262102.4AmV1Mms-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250926/202509262102.4AmV1Mms-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/202509262102.4AmV1Mms-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/vhost/net.c:197:3: error: expected expression
197 | WARN_ON_ONCE();
| ^
include/asm-generic/bug.h:111:34: note: expanded from macro 'WARN_ON_ONCE'
111 | int __ret_warn_on = !!(condition); \
| ^
1 error generated.


vim +197 drivers/vhost/net.c

178
179 static int vhost_net_buf_produce(struct vhost_net_virtqueue *nvq,
180 struct sock *sk)
181 {
182 struct file *file = sk->sk_socket->file;
183 struct vhost_net_buf *rxq = &nvq->rxq;
184
185 rxq->head = 0;
186
187 switch (nvq->type) {
188 case TUN:
189 rxq->tail = tun_ring_consume_batched(file,
190 rxq->queue, VHOST_NET_BATCH);
191 break;
192 case TAP:
193 rxq->tail = tap_ring_consume_batched(file,
194 rxq->queue, VHOST_NET_BATCH);
195 break;
196 case IF_NONE:
> 197 WARN_ON_ONCE();
198 }
199
200 return rxq->tail;
201 }
202

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