DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] eal: add missing extension to statement expression
@ 2023-11-01 22:07 Tyler Retzlaff
  2023-11-06 17:00 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Tyler Retzlaff @ 2023-11-01 22:07 UTC (permalink / raw)
  To: dev; +Cc: david.marchand, thomas, Tyler Retzlaff

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

Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---
 lib/eal/include/rte_common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/eal/include/rte_common.h b/lib/eal/include/rte_common.h
index 484f81e..c1ba32d 100644
--- a/lib/eal/include/rte_common.h
+++ b/lib/eal/include/rte_common.h
@@ -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;	\
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] eal: add missing extension to statement expression
  2023-11-01 22:07 [PATCH] eal: add missing extension to statement expression Tyler Retzlaff
@ 2023-11-06 17:00 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2023-11-06 17:00 UTC (permalink / raw)
  To: Tyler Retzlaff; +Cc: dev, david.marchand

01/11/2023 23:07, Tyler Retzlaff:
> add missing __extension__ keyword to RTE_ALIGN_MUL_NEAR statement
> expression to be consistent with other macros using statement
> expressions
> 
> Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>

Applied, thanks.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-06 17:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-01 22:07 [PATCH] eal: add missing extension to statement expression Tyler Retzlaff
2023-11-06 17:00 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).