[PATCH v2 40/43] drivers/common: remove use of sys/queue.h
Stephen Hemminger
stephen at networkplumber.org
Mon Aug 25 05:38:53 CEST 2025
The system version of queue.h should not be used.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
drivers/common/cnxk/roc_bphy_irq.c | 3 ++-
drivers/common/cnxk/roc_npc.h | 2 --
drivers/common/mlx5/mlx5_common_mr.h | 3 +--
3 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/common/cnxk/roc_bphy_irq.c b/drivers/common/cnxk/roc_bphy_irq.c
index 7b39b61537..0c2dc04517 100644
--- a/drivers/common/cnxk/roc_bphy_irq.c
+++ b/drivers/common/cnxk/roc_bphy_irq.c
@@ -5,9 +5,10 @@
#include <pthread.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
-#include <sys/queue.h>
#include <unistd.h>
+#include <rte_bsd_queue.h>
+
#include "roc_api.h"
#include "roc_bphy_irq.h"
diff --git a/drivers/common/cnxk/roc_npc.h b/drivers/common/cnxk/roc_npc.h
index 91c84d7d97..f96c449ae8 100644
--- a/drivers/common/cnxk/roc_npc.h
+++ b/drivers/common/cnxk/roc_npc.h
@@ -5,8 +5,6 @@
#ifndef _ROC_NPC_H_
#define _ROC_NPC_H_
-#include <sys/queue.h>
-
enum roc_npc_item_type {
ROC_NPC_ITEM_TYPE_VOID,
ROC_NPC_ITEM_TYPE_ANY,
diff --git a/drivers/common/mlx5/mlx5_common_mr.h b/drivers/common/mlx5/mlx5_common_mr.h
index cf7c685e9b..8bcc13f111 100644
--- a/drivers/common/mlx5/mlx5_common_mr.h
+++ b/drivers/common/mlx5/mlx5_common_mr.h
@@ -8,10 +8,9 @@
#include <stddef.h>
#include <stdint.h>
-#include <sys/queue.h>
-
#include <rte_compat.h>
+#include <rte_bsd_queue.h>
#include <rte_rwlock.h>
#include <rte_bitmap.h>
#include <rte_mbuf.h>
--
2.47.2
More information about the dev
mailing list