From: Huang Jing <rne.kou@icloud.com>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: Stefano Brivio <sbrivio@redhat.com>,
Huang Jing <rne.kou@icloud.com>,
passt-dev@passt.top
Subject: [PATCH] isolation: Include linux_dep.h for close_range()
Date: Sat, 08 Aug 2026 00:10:32 +0800 [thread overview]
Message-ID: <87fr0pgbd3.wl-rne.kou@icloud.com> (raw)
In-Reply-To: <87v79lly7p.wl-rne.kou@icloud.com>
Include linux_dep.h for close_range() usage in isolation.c. And now
that the close_open_files() function which makes use of linux_dep.h
has been moved from util.c to isolation.c, we can safely remove the
header inclusion from util.c.
Link: https://github.com/gentoo/gentoo/pull/46644
Fixes: 0a510066e916 ("isolation: Move close_open_files() to isolate_fds()")
Signed-off-by: Jing Huang <rne.kou@icloud.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
---
Makefile | 4 ++--
isolation.c | 1 +
util.c | 1 -
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 77474d6..b315242 100644
--- a/Makefile
+++ b/Makefile
@@ -48,8 +48,8 @@ MANPAGES = passt.1 pasta.1 pesto.1 passt-repair.1
PASST_HEADERS = arch.h arp.h bitmap.h checksum.h conf.h dhcp.h dhcpv6.h \
epoll_ctl.h flow.h fwd.h fwd_rule.h flow_table.h icmp.h icmp_flow.h \
- inany.h iov.h ip.h isolation.h lineread.h log.h migrate.h ndp.h \
- netlink.h packet.h parse.h passt.h pasta.h pcap.h pif.h repair.h \
+ inany.h iov.h ip.h isolation.h lineread.h linux_dep.h log.h migrate.h \
+ ndp.h netlink.h packet.h parse.h passt.h pasta.h pcap.h pif.h repair.h \
serialise.h siphash.h tap.h tcp.h tcp_buf.h tcp_conn.h tcp_internal.h \
tcp_splice.h tcp_vu.h udp.h udp_flow.h udp_internal.h udp_vu.h util.h \
vhost_user.h virtio.h vu_common.h
diff --git a/isolation.c b/isolation.c
index 94cbe7f..a30b329 100644
--- a/isolation.c
+++ b/isolation.c
@@ -89,6 +89,7 @@
#include <linux/seccomp.h>
#include "util.h"
+#include "linux_dep.h"
#include "seccomp.h"
#include "passt.h"
#include "log.h"
diff --git a/util.c b/util.c
index bd4c6ca..28c32e4 100644
--- a/util.c
+++ b/util.c
@@ -27,7 +27,6 @@
#include <linux/errqueue.h>
#include <linux/in6.h>
-#include "linux_dep.h"
#include "util.h"
#include "iov.h"
#include "passt.h"
--
2.55.0
prev parent reply other threads:[~2026-08-07 16:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-06 12:06 Patch for the close_range() musl build failure Huang Jing
2026-08-06 21:54 ` Stefano Brivio
2026-08-07 1:09 ` David Gibson
2026-08-07 15:58 ` Huang Jing
2026-08-07 16:10 ` Huang Jing [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fr0pgbd3.wl-rne.kou@icloud.com \
--to=rne.kou@icloud.com \
--cc=david@gibson.dropbear.id.au \
--cc=passt-dev@passt.top \
--cc=sbrivio@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
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 IMAP folder(s).