From patchwork Wed Nov 15 23:02:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 134408 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E2FA64333B; Thu, 16 Nov 2023 00:03:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 32DE640E13; Thu, 16 Nov 2023 00:03:06 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 7DBFD40A71 for ; Thu, 16 Nov 2023 00:03:00 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 7220220B74C5; Wed, 15 Nov 2023 15:02:59 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7220220B74C5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1700089379; bh=wuotUbAsO2LPVSGeoierOIcSGDmE4jv4CPqWuhsGYy0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=icB2EjP/m/2hudPt1JRanCCzbasFEZvgMU8aYpFrrqkEIs6QR7R9a4+w4HgqZ01HI KRY4DV0nKqAV/l60NFBEYFG6hQ/rGMcd5YTpp4zE38ggEvU7ylbMeGZVv6n7oxEYDT HT5k7bV98jIuLjJ/VZ13Me6MA3FtzTyhNCL2wQM0= From: Tyler Retzlaff To: dev@dpdk.org Cc: Ajit Khaparde , Aman Singh , Amit Bernstein , Andrew Rybchenko , Apeksha Gupta , Beilei Xing , Brian Dooley , Chengwen Feng , Cristian Dumitrescu , Evgeny Schemeilin , Ferruh Yigit , Gagandeep Singh , Gowrishankar Muthukrishnan , Harman Kalra , Hemant Agrawal , Jerin Jacob , Jian Wang , Jiawen Wu , Kai Ji , Kiran Kumar K , Maciej Czekaj , Nithin Dabilpuram , Qi Zhang , Rahul Lakkireddy , Rakesh Kudurumalla , Ron Beider , Rosen Xu , Ruifeng Wang , Sachin Saxena , Satha Rao , Shai Brandes , Somnath Kotur , Srikanth Yalavarthi , Sunil Kumar Kori , Thomas Monjalon , Tianfei Zhang , Wajeeh Atrash , Xiao Wang , Yuying Zhang , Tyler Retzlaff Subject: [PATCH 4/4] examples: add extension keyword to statement expressions Date: Wed, 15 Nov 2023 15:02:58 -0800 Message-Id: <1700089378-26197-5-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1700089378-26197-1-git-send-email-roretzla@linux.microsoft.com> References: <1700089378-26197-1-git-send-email-roretzla@linux.microsoft.com> 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 __extension__ keyword to gcc statement expression extensions. Signed-off-by: Tyler Retzlaff --- examples/fips_validation/fips_validation.c | 2 +- examples/ip_pipeline/parser.h | 2 +- examples/pipeline/cli.c | 2 +- examples/qos_meter/main.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/fips_validation/fips_validation.c b/examples/fips_validation/fips_validation.c index f840804..ba65d44 100644 --- a/examples/fips_validation/fips_validation.c +++ b/examples/fips_validation/fips_validation.c @@ -14,7 +14,7 @@ #include "fips_validation.h" #define skip_white_spaces(pos) \ -({ \ +__extension__ ({ \ __typeof__(pos) _p = (pos); \ for ( ; isspace(*_p); _p++) \ ; \ diff --git a/examples/ip_pipeline/parser.h b/examples/ip_pipeline/parser.h index 5224b18..4b3fdff 100644 --- a/examples/ip_pipeline/parser.h +++ b/examples/ip_pipeline/parser.h @@ -14,7 +14,7 @@ #define PARSE_DELIMITER " \f\n\r\t\v" #define skip_white_spaces(pos) \ -({ \ +__extension__ ({ \ __typeof__(pos) _p = (pos); \ for ( ; isspace(*_p); _p++) \ ; \ diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c index 2ae6cc5..57a5a53 100644 --- a/examples/pipeline/cli.c +++ b/examples/pipeline/cli.c @@ -46,7 +46,7 @@ #define MSG_CMD_FAIL "Command \"%s\" failed.\n" #define skip_white_spaces(pos) \ -({ \ +__extension__ ({ \ __typeof__(pos) _p = (pos); \ for ( ; isspace(*_p); _p++) \ ; \ diff --git a/examples/qos_meter/main.h b/examples/qos_meter/main.h index 864f019..59e5e0b 100644 --- a/examples/qos_meter/main.h +++ b/examples/qos_meter/main.h @@ -24,7 +24,7 @@ enum policer_action policer_table[RTE_COLORS][RTE_COLORS] = #if APP_MODE == APP_MODE_FWD #define FUNC_METER(m, p, time, pkt_len, pkt_color) \ -({ \ +__extension__ ({ \ void *mp = m; \ void *pp = p; \ mp = mp; \