Skip to contentSkip to conversation

eal: add missing extension to statement expression

PATCH Applied Tyler Retzlaff 2 participants 2 messages Nov 1, 2023 – Nov 6, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eal: add missing extension to statement expression

add missing __extension__ keyword to RTE_ALIGN_MUL_NEAR statement expression to be consistent with other macros using statement expressions

---
 lib/eal/include/rte_common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/eal/include/rte_common.h +1 -1
index 484f81e..c1ba32d 100644
@@ -467,7 +467,7 @@ static void __attribute__((destructor(RTE_PRIO(prio)), used)) func(void)
  * whichever difference is the lowest.
  */
 #define RTE_ALIGN_MUL_NEAR(v, mul)				\
-	({							\
+	__extension__ ({					\
 		typeof(v) ceil = RTE_ALIGN_MUL_CEIL(v, mul);	\
 		typeof(v) floor = RTE_ALIGN_MUL_FLOOR(v, mul);	\
 		(ceil - (v)) > ((v) - floor) ? floor : ceil;	\
Signature · 1 line
1.8.3.1
#1 lore raw

01/11/2023 23:07, Tyler Retzlaff:

Quoted 5 lines

add missing __extension__ keyword to RTE_ALIGN_MUL_NEAR statement expression to be consistent with other macros using statement expressions

Applied, thanks.