Skip to contentSkip to conversation

linux-next: build failure after merge of the net-next tree

PATCH Mark Brown 1 participant 1 message Nov 24

Subsystems (4)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

After merging the net-next tree, today's linux-next build (arm64 defconfig) failed like this:

/tmp/next/build/drivers/net/tun.c: In function 'tun_get_user':
/tmp/next/build/drivers/net/tun.c:1881:37: error: 'struct ubuf_info' has no member named 'ops'
1881 | uarg->ops->complete(NULL, uarg, false);
| ^~

Caused by commit

ecca9bb2c855a (net: skbuff: replace ubuf_info ops ptr with type id)

interacting with

3896ae4adf5ff (tun: complete the zerocopy buffer of packets consumed by XDP)

from the net tree. I have applied Sasha's fix (see below) and can carry as needed.

From 1f0a8fbb8fcddcb0502b33987a53ed883aafb90c Mon Sep 17 00:00:00 2001
From: Sasha Levin <[email protected]>
Date: Tue, 24 Nov 2026 09:56:49 -0500
Subject: [PATCH] linux-next: semantic conflict between the net and net-next
trees

Hi Mark,

The current net tree has a semantic conflict with the net-next tree that breaks the build:

drivers/net/tun.c:1881:11: error: no member named 'ops' in 'struct ubuf_info'

3896ae4adf5f ("tun: complete the zerocopy buffer of packets consumed by XDP") in the net tree calls uarg->ops->complete() in tun_get_user(), and ecca9bb2c855 ("net: skbuff: replace ubuf_info ops ptr with type id") in the net-next tree removes ubuf_info::ops. The fix uses net_zcopy_complete(), as ecca9bb2c855 does for the same call later in tun_get_user():

---
 drivers/net/tun.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/net/tun.c +2 -5
index 84e2d0f24b417..f3735bf3819f3 100644
@@ -1875,11 +1875,8 @@ static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile,
 			goto drop;
 		if (!skb) {
 			/* consumed by XDP, after copying */
-			if (msg_control) {
-				struct ubuf_info *uarg = msg_control;
-
-				uarg->ops->complete(NULL, uarg, false);
-			}
+			if (msg_control)
+				net_zcopy_complete(NULL, msg_control, false);
 			return total_len;
 		}
 	} else {
Signature · 1 line
2.47.3