From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E547A46F71; Thu, 25 Sep 2025 14:32:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9C96740A70; Thu, 25 Sep 2025 14:32:26 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 06929406BA for ; Thu, 25 Sep 2025 14:32:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1758803544; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=h/47yvZGIQCznnnT1McGyuYfPurKBCTU52psMxMhmmU=; b=czf8QHa4DJsPxYACE6WDhtqe7vYGL2pH2O6MoXPjnjMJO7TITP/mEQOpwreQenrOVXTGQz 47ia7LVWgDIKCg4fQKOJqOKesFDPbMT4Wq3HIahlQVmzGlSh38aERLZ5QcjoXrdMgAIV8V GM2dIbTxp0LiyhSta6klXYDj0iGhLvQ= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-606-iXJwX3bRNECayCkNyyGmhw-1; Thu, 25 Sep 2025 08:32:23 -0400 X-MC-Unique: iXJwX3bRNECayCkNyyGmhw-1 X-Mimecast-MFC-AGG-ID: iXJwX3bRNECayCkNyyGmhw_1758803542 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 54B42195607B; Thu, 25 Sep 2025 12:32:22 +0000 (UTC) Received: from dmarchan.lan (unknown [10.45.225.72]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 478E9180044F; Thu, 25 Sep 2025 12:32:20 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: bruce.richardson@intel.com, Elena Agostini , Thomas Monjalon Subject: [PATCH v4 4/7] gpudev: fix driver header for Windows Date: Thu, 25 Sep 2025 14:31:46 +0200 Message-ID: <20250925123150.3063298-5-david.marchand@redhat.com> In-Reply-To: <20250925123150.3063298-1-david.marchand@redhat.com> References: <20241127112617.1331125-1-david.marchand@redhat.com> <20250925123150.3063298-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: mbH7MNLFqK72XiZMcpm_2UkhLzPs0ATkgItvvZojQew_1758803542 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Use rte_os.h and its RTE_TAILQ_HEAD definition compatible with BSD sys/queue.h Fixes: 18cb07563165 ("gpudev: add event notification") Signed-off-by: David Marchand --- lib/gpudev/gpudev.c | 1 + lib/gpudev/gpudev_driver.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/gpudev/gpudev.c b/lib/gpudev/gpudev.c index 0473d9ffb3..4a2335834c 100644 --- a/lib/gpudev/gpudev.c +++ b/lib/gpudev/gpudev.c @@ -3,6 +3,7 @@ */ #include +#include #include #include diff --git a/lib/gpudev/gpudev_driver.h b/lib/gpudev/gpudev_driver.h index 37b6ae3149..b7621f6e5a 100644 --- a/lib/gpudev/gpudev_driver.h +++ b/lib/gpudev/gpudev_driver.h @@ -12,11 +12,11 @@ #define RTE_GPUDEV_DRIVER_H #include -#include #include #include +#include #include "rte_gpudev.h" #ifdef __cplusplus @@ -80,7 +80,7 @@ struct __rte_cache_aligned rte_gpu { /* Driver functions. */ struct rte_gpu_ops ops; /* Event callback list. */ - TAILQ_HEAD(rte_gpu_callback_list, rte_gpu_callback) callbacks; + RTE_TAILQ_HEAD(rte_gpu_callback_list, rte_gpu_callback) callbacks; /* Current state (used or not) in the running process. */ enum rte_gpu_state process_state; /* Updated by this library. */ /* Driver-specific private data for the running process. */ -- 2.51.0