Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Mark Brown
Tue, 24 Nov 2026 16:29
linux-next: build failure after merge of the net-next tree
Author: Mark Brown
Date: Tue, 24 Nov 2026 16:29
Date: Tue, 24 Nov 2026 16:29
96 lines
10271 bytes
10271 bytes
--M84+XN09hS7xgber
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
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, fal=
se);
| ^~
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)
=66rom the net tree. I have applied Sasha's fix (see below) and can carry
as needed. =20
=46rom 1f0a8fbb8fcddcb0502b33987a53ed883aafb90c Mon Sep 17 00:00:00 2001
=46rom: Sasha Levin <sashal@kernel.org>
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_i=
nfo'
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():
Signed-off-by: Mark Brown <broonie@kernel.org>
---
drivers/net/tun.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 84e2d0f24b417..f3735bf3819f3 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -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 =3D msg_control;
-
- uarg->ops->complete(NULL, uarg, false);
- }
+ if (msg_control)
+ net_zcopy_complete(NULL, msg_control, false);
return total_len;
}
} else {
--=20
2.47.3
--M84+XN09hS7xgber
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmsFu2kACgkQJNaLcl1U
h9Dxbwf/QrnMGp5a8Z+zZgxyUxldzWsN8v0VMTw1aIHEMEketLslrYwqGMCj8Doi
pYa57mAkmAjGVEPqMJYVmoLl1M3mOMpoIQ8QWjchfg2KSdy504OTkw7bl60DM9HU
qmi8BebLYxsv8+wuiOa7m3U9SMzHBEShtq8+cYBaoEOZnnl4AJN75AWr/vBo4KSb
Syg5uGiZnUDfJXR3EKkDlY/Qv35mvh3Vh7tHXdlDRE0KZw77KEszd+0QK4jIl3z6
GElxYVMxqbk+2cnSwjm7zB2sYT8tcirkLy896EO3wyArjzPBoc11yiwOTKwNvgYK
PdBRozVofY1A/j+88JKz16HpDo36vQ==
=YcMj
-----END PGP SIGNATURE-----
--M84+XN09hS7xgber--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads