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 60EF146F89; Fri, 26 Sep 2025 14:41:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4E76A40691; Fri, 26 Sep 2025 14:41:47 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 17EBA40691 for ; Fri, 26 Sep 2025 14:41:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1758890505; 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=V3WSTLrR7KmC2xjh32XFBDeGgTLVr0xRPqVFDKzX66E=; b=Xoch04jC3Fl2gMSxpTsM8HFpVAyOVhzI0Fr8fCH0tO/nODUh9tI072zTQYg6HWJq+dLZYF Ek7aXuvvfj0zLcMZ6hgSD1fd6SljVE/qYY8arYWZTH+rbfqkUI1rSTauQ7utuZP+rM8LXT 1615gOe54r8/em1hw1gQGH4v1ACh5TU= Received: from mx-prod-mc-04.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-503-O9yp9wT4PVal02RDP1G8pg-1; Fri, 26 Sep 2025 08:41:42 -0400 X-MC-Unique: O9yp9wT4PVal02RDP1G8pg-1 X-Mimecast-MFC-AGG-ID: O9yp9wT4PVal02RDP1G8pg_1758890500 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2FDF719560AF; Fri, 26 Sep 2025 12:41:40 +0000 (UTC) Received: from dmarchan.lan (unknown [10.45.225.72]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8567819560AB; Fri, 26 Sep 2025 12:41:38 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: bruce.richardson@intel.com, Elena Agostini , Thomas Monjalon Subject: [PATCH v5 4/9] gpudev: fix driver header for Windows Date: Fri, 26 Sep 2025 14:40:57 +0200 Message-ID: <20250926124103.750844-5-david.marchand@redhat.com> In-Reply-To: <20250926124103.750844-1-david.marchand@redhat.com> References: <20241127112617.1331125-1-david.marchand@redhat.com> <20250926124103.750844-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: iAtXG0M-V_4xfqMo-51V6BhcXSReODtptApcPi4zvUM_1758890500 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 Acked-by: Bruce Richardson --- 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