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 03F8743265; Wed, 1 Nov 2023 23:08:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C3B04402EC; Wed, 1 Nov 2023 23:08:00 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id D457740298 for ; Wed, 1 Nov 2023 23:07:59 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 3092220B74C0; Wed, 1 Nov 2023 15:07:59 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3092220B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1698876479; bh=5w/elQBSkiibLvXw0/Bjk3ZwuvL4EbGelqkU+fAloQ0=; h=From:To:Cc:Subject:Date:From; b=lyLKzFVujOV3CQi2DN+Vlmcscg/bCXt6z9+DKrxGRDjZhY7JEqj2wUut1/DXZKiQu Dn//i2jrm8SNVGhWcLeFRw3WGdEcPAXJlHja+51AF05gXog0de6mVeXc+IYdoA/7yV Hzmwp5D3z2+R89L3VtI1q/rGS7vnhHR+lDKrqP6c= From: Tyler Retzlaff To: dev@dpdk.org Cc: david.marchand@redhat.com, thomas@monjalon.net, Tyler Retzlaff Subject: [PATCH] eal: add missing extension to statement expression Date: Wed, 1 Nov 2023 15:07:58 -0700 Message-Id: <1698876478-10095-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 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 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 --- 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