From nobody Mon Feb 9 00:42:20 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1643532246; cv=none; d=zohomail.com; s=zohoarc; b=BdNlzAmA+P23M+EwLtIjgeVHqfkCQemo/LjFsZqJ8/OYeauxnyFVV47YEFSZcjWG4Np5HuxWJSTvMZ61gYNxy4SjF/mM0BZvXVn9Pc3VWojmh760yqDUiAvPUvSFTPP6Wu8vxkM4Oslkq+jbDe1yLy/d6+rVv6aM2qkjMCksaz8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1643532246; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=YFPXGko/iSk3OMZLQ303tNgEDkqNGWgFH9pl53U/bC8=; b=Ml6iFnjbR5oulFY5lOw+LFaSHe4eOqiZE0UrM8McHygBVr3aHZ6h/kbRJ0c1KU//ZPMOtGJ4mmhxo+HtNQp/EcPnjph4BEgiVC+bcLrr7747WQQP/NrCaYbQBRf96BQJx+R1kcTVWY/f7e1E2imhirmlYEYvdaaREAGmEBmpEuE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1643532246921218.14329413926293; Sun, 30 Jan 2022 00:44:06 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.262421.454658 (Exim 4.92) (envelope-from ) id 1nE5oM-0007Sl-FR; Sun, 30 Jan 2022 08:43:50 +0000 Received: by outflank-mailman (output) from mailman id 262421.454658; Sun, 30 Jan 2022 08:43:50 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nE5oM-0007Ru-6v; Sun, 30 Jan 2022 08:43:50 +0000 Received: by outflank-mailman (input) for mailman id 262421; Sun, 30 Jan 2022 08:43:49 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nE5oK-00074R-Uw for xen-devel@lists.xenproject.org; Sun, 30 Jan 2022 08:43:49 +0000 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id bd142d6e-81a8-11ec-8f75-fffcc8bd4f1a; Sun, 30 Jan 2022 09:43:47 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id BB1E821112; Sun, 30 Jan 2022 08:43:46 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 96A0513638; Sun, 30 Jan 2022 08:43:46 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id OOaLI8JP9mHCRAAAMHmgww (envelope-from ); Sun, 30 Jan 2022 08:43:46 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: bd142d6e-81a8-11ec-8f75-fffcc8bd4f1a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1643532226; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YFPXGko/iSk3OMZLQ303tNgEDkqNGWgFH9pl53U/bC8=; b=mU9vHHrKkhT+X3QYOqxzAmlK6+Dzik8Pf1g082/NE7MaDLNnIxE0dxkb6qRb9V2JRmuF+z tLzK8E9SNKh5TTVDrw7rZVt8YG7u81n3EZ/k1RHCep95a3vO+Wn1hRU5PtyFo2TUfYgAd2 AigMfzsHEIwELAFQkqCo+8x8xWGSKeI= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Wei Liu , Anthony PERARD Subject: [PATCH 4/5] tools/libs/evtchn: use _xen_list.h Date: Sun, 30 Jan 2022 09:43:42 +0100 Message-Id: <20220130084343.19070-5-jgross@suse.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220130084343.19070-1-jgross@suse.com> References: <20220130084343.19070-1-jgross@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1643532249348100005 Content-Type: text/plain; charset="utf-8" Instead of including xen-external/bsd-sys-queue.h use the header _xen_list.h in minios.c. Signed-off-by: Juergen Gross --- tools/libs/evtchn/minios.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tools/libs/evtchn/minios.c b/tools/libs/evtchn/minios.c index 30f98bc7e4..65cfccfd09 100644 --- a/tools/libs/evtchn/minios.c +++ b/tools/libs/evtchn/minios.c @@ -20,7 +20,7 @@ * Split off from xc_minios.c */ =20 -#include "xen-external/bsd-sys-queue.h" +#include "_xen_list.h" #include #include #include @@ -38,10 +38,10 @@ =20 #include "private.h" =20 -LIST_HEAD(port_list, port_info); +XEN_LIST_HEAD(port_list, struct port_info); =20 struct port_info { - LIST_ENTRY(port_info) list; + XEN_LIST_ENTRY(struct port_info) list; evtchn_port_t port; bool pending; bool bound; @@ -62,7 +62,7 @@ static struct port_info *port_alloc(xenevtchn_handle *xce) port_info->port =3D -1; port_info->bound =3D false; =20 - LIST_INSERT_HEAD(port_list, port_info, list); + XEN_LIST_INSERT_HEAD(port_list, port_info, list); =20 return port_info; } @@ -72,7 +72,7 @@ static void port_dealloc(struct port_info *port_info) if ( port_info->bound ) unbind_evtchn(port_info->port); =20 - LIST_REMOVE(port_info, list); + XEN_LIST_REMOVE(port_info, list); free(port_info); } =20 @@ -81,7 +81,7 @@ static int evtchn_close_fd(struct file *file) struct port_info *port_info, *tmp; struct port_list *port_list =3D file->dev; =20 - LIST_FOREACH_SAFE(port_info, port_list, list, tmp) + XEN_LIST_FOREACH_SAFE(port_info, port_list, list, tmp) port_dealloc(port_info); free(port_list); =20 @@ -126,7 +126,7 @@ int osdep_evtchn_open(xenevtchn_handle *xce, unsigned i= nt flags) } =20 file->dev =3D list; - LIST_INIT(list); + XEN_LIST_INIT(list); xce->fd =3D fd; printf("evtchn_open() -> %d\n", fd); =20 @@ -173,7 +173,7 @@ static void evtchn_handler(evtchn_port_t port, struct p= t_regs *regs, void *data) assert(file); port_list =3D file->dev; mask_evtchn(port); - LIST_FOREACH(port_info, port_list, list) + XEN_LIST_FOREACH(port_info, port_list, list) { if ( port_info->port =3D=3D port ) goto found; @@ -257,7 +257,7 @@ int xenevtchn_unbind(xenevtchn_handle *xce, evtchn_port= _t port) struct port_info *port_info; struct port_list *port_list =3D file->dev; =20 - LIST_FOREACH(port_info, port_list, list) + XEN_LIST_FOREACH(port_info, port_list, list) { if ( port_info->port =3D=3D port ) { @@ -314,7 +314,7 @@ xenevtchn_port_or_error_t xenevtchn_pending(xenevtchn_h= andle *xce) =20 file->read =3D false; =20 - LIST_FOREACH(port_info, port_list, list) + XEN_LIST_FOREACH(port_info, port_list, list) { if ( port_info->port !=3D -1 && port_info->pending ) { --=20 2.31.1