From 948be25cdbee77e15461ab2b6124fed9ee75b97f Mon Sep 17 00:00:00 2001 From: Ali Alnubani Date: Sun, 7 Nov 2021 18:30:54 +0200 Subject: [PATCH] sched: fix debug build Compare pkt_len to 0 instead of NULL to avoid the following build failure with debug mode enabled: ../lib/sched/rte_pie.h: In function 'rte_pie_enqueue_empty': ../lib/sched/rte_pie.h:125:21: error: comparison between pointer and integer [-Werror] RTE_ASSERT(pkt_len != NULL); Bugzilla ID: 878 Fixes: 44c730b0e379 ("sched: add PIE based congestion management") Signed-off-by: Ali Alnubani --- lib/sched/rte_pie.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sched/rte_pie.h b/lib/sched/rte_pie.h index a3441ffe51..dfdf572311 100644 --- a/lib/sched/rte_pie.h +++ b/lib/sched/rte_pie.h @@ -122,7 +122,7 @@ rte_pie_enqueue_empty(const struct rte_pie_config *pie_cfg, struct rte_pie *pie, uint32_t pkt_len) { - RTE_ASSERT(pkt_len != NULL); + RTE_ASSERT(pkt_len != 0); /* Update the PIE qlen parameter */ pie->qlen++; -- 2.39.5