From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=icloud.com Authentication-Results: passt.top; dkim=pass (2048-bit key; unprotected) header.d=icloud.com header.i=@icloud.com header.a=rsa-sha256 header.s=1a1hai header.b=BbUSmdqt; dkim-atps=neutral Received: from outbound.ms.icloud.com (ms-2005j-snip6-11.eps.apple.com [IPv6:2a01:b747:3002:200::65]) by passt.top (Postfix) with ESMTPS id D71AF5A0269 for ; Fri, 07 Aug 2026 18:10:42 +0200 (CEST) Received: from outbound.ms.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-west-3a-100-percent-8 (Postfix) with ESMTPS id 834821800406; Fri, 07 Aug 2026 16:10:38 +0000 (UTC) X-ICL-RepId: 019fdcfd-a5d3-7a43-8077-2ec7ec64b03d X-ICL-Out-Info: HUtFAUMEWwJACUgBTUQeDx5WFlZNRAJCTQ1NHV4FRQNBF0kCVBcOVk1LFlZDXARHMFAbXwJCDxwTVhUTC1NWWxNVF0YJGQhdHRkKUFADS1oVVRcOAkIfUB9MFldDWhgcGVoUXBhTRVEfVFhDGUVWaUELTx1dGVscQmRYVwkKAlEcVg1XQ1QEX1BUEVdQC1MFFktIQwpVDwFeThQeH1kOHBtWDXMEVAddBV1WUAJaVRIEQAhWUF4IXh9MHA== Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1786119041; x=1788711041; bh=UBeA1USyjM9JCPif7bCRAixzeHJWvnNuuqWbyZvoZFM=; h=Date:Message-ID:From:To:Subject:MIME-Version:Content-Type:x-icloud-hme; b=BbUSmdqteiKJplRAsnSk2UKqJ+3t8Eit/dkcbqHwKWQxik0KYi68Kl8vAdtaAMcFP7ZRjqx2ISmAZSPWU3zdfaqknncdSXbuBc1VGiyy9XEnVZqjNK2N1s4oCNQ3b239NjODvPK2hdmy6wiiVOTqY+HerqfHBhyDadEuHsosw5/45ZabOvIjfqbL2ndmsYmxZcTjik9xSBm27QcK2NU/ASyDACQetVIWemu9vzSwP0vw8iTZFMDMrRcIAwkxahlWD55pdS5Elg0ySh/dWWL5Ei8c+jN8iPI7YJ9hsy0eOm14cMax+v2du6OMTnzZRu9mKWwMMQd1mAaE+LpSsrSltw== Received: from cat-v.icloud.com (unknown [17.57.154.37]) by p00-icloudmta-asmtp-us-west-3a-100-percent-8 (Postfix) with ESMTPSA id 8E9A618002B6; Fri, 07 Aug 2026 16:10:35 +0000 (UTC) Date: Sat, 08 Aug 2026 00:10:32 +0800 Message-ID: <87fr0pgbd3.wl-rne.kou@icloud.com> From: Huang Jing To: David Gibson Subject: [PATCH] isolation: Include linux_dep.h for close_range() In-Reply-To: <87v79lly7p.wl-rne.kou@icloud.com> References: <878q6jjvww.wl-rne.kou@icloud.com> <20260806235419.722b0a71@elisabeth> <87v79lly7p.wl-rne.kou@icloud.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.2 (x86_64-pc-linux-musl) MULE/6.0 (HANACHIRUSATO) X-Face: "0XTV&77+1.L8mei_jIv?,$SI9YMI_L16Iv!+nC/as*WE|xh_Cz]cX\.kyAyE:yR!u)"H{;QZo'_9@M.+iEKMPM2PM0Km|k\+HA2@a>eTdL"}b4H~5fcj8XFtvcHRLa*",9{Nc*>!)>hf>f|gO}8rA[>|.#IL#IBHv'?kRAiLM@A>|R/&~C\:.0A{l`7W0D2r_$Iob;)7VZiR*!uN\4n#H<](bi4a/;b'II5>qmb;SG]=Glv2hD5%]MoElN'%/FpudX/LQ^%Cd2(.~iKi&{ MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Proofpoint-ORIG-GUID: WleOtsc8UOO85t4CyCgMoxsgN6tiiWKd X-Authority-Info-Out: v=2.4 cv=RtXI7SmK c=1 sm=1 tr=0 ts=6a76037f cx=c_apl:c_pps:t_out a=qkKslKyYc0ctBTeLUVfTFg==:117 a=kj9zAlcOel0A:10 a=Sv0fKeRqtYgA:10 a=x7bEGLp0ZPQA:10 a=EW7FI4N_MPcA:10 a=VkNPw1HP01LnGYTKEx00:22 a=NEAV23lmAAAA:8 a=v3ZZPjhaAAAA:8 a=k6xvTHGuw16jT6AstuMA:9 a=CjuIK1q_8ugA:10 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODA3MDEyNiBTYWx0ZWRfXzPSCvuCySL7j d17N0xZin6xrwQYvGzHU8+q/pas7AkoCOh3JcU0KPQeNrqCrl64XcaGxhz+OzIv8xXAoLvS1ziw BMPBJ+gJxnnf9mr+18SzgDzIjN5huXfCHZsCYRyW09xKR/EMe/9N+ILDAFMPLN7WSKgU99gJ2iL zKNOE0hEmP6LTH6LPFuFmBbqFbopeV7rnYsdS2XK1uVp2Tsb6FflgBbO1oMnj3XJZvmCVacG67v Wmr1OtnFuCGfKJbUqvTHX24K30BExTK6sUgwOYLRLhiusnEcFRCQXow8ITYtDI5y0wv//QUkXUx +SFPtyWiXN5HBjUCP/PEYWuJ/A8q73YhvFOYII5YaPxs9H7RIuAcQfCNnh6rY4= X-Proofpoint-GUID: WleOtsc8UOO85t4CyCgMoxsgN6tiiWKd X-MailFrom: rne.kou@icloud.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation Message-ID-Hash: FAA6H6BJVEPQHUYMGP57I5VRPFADR62B X-Message-ID-Hash: FAA6H6BJVEPQHUYMGP57I5VRPFADR62B X-Mailman-Approved-At: Fri, 07 Aug 2026 18:12:14 +0200 CC: Stefano Brivio , Huang Jing , passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 Reviewed-by: David Gibson --- 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 #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 #include -#include "linux_dep.h" #include "util.h" #include "iov.h" #include "passt.h" -- 2.55.0