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 89570424DA; Wed, 12 Jun 2024 09:12:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4836D40B91; Wed, 12 Jun 2024 09:12:52 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id DEBBA402AB for ; Wed, 12 Jun 2024 09:12:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718176370; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jL9XI8t4lkqr/0WgjBQMNa8IWHhYFcFVqHZrAtCQ8CM=; b=QF4kh3ziTMWvqeX/MxxI1sm9duQdnC07nt+wUMZDO6fB8L7fQHZ2h22ElN9TYA4pzbWLlo wcK2Ht8eHl5l/gqDlDEOcEkMH4dvQbTVBbfdlxS35UVaCMZmz74yVQZf/V0aH331Pdjl7r npKR/d+FGSZRf6Bt4PuV/wHDhh08hpQ= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-551-XpK6Xt6yObu_T611emz_UQ-1; Wed, 12 Jun 2024 03:12:48 -0400 X-MC-Unique: XpK6Xt6yObu_T611emz_UQ-1 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id BC1D119560BD; Wed, 12 Jun 2024 07:12:46 +0000 (UTC) Received: from dmarchan.redhat.com (unknown [10.45.225.89]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id C8BF430000C4; Wed, 12 Jun 2024 07:12:43 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: roretzla@linux.microsoft.com, Kai Ji , Pablo de Lara , Akhil Goyal , Fan Zhang , Konstantin Ananyev , Vladimir Medvedkin Subject: [PATCH] remove extension keyword for flex arrays Date: Wed, 12 Jun 2024 09:12:40 +0200 Message-ID: <20240612071240.178800-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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 Flex arrays are part of the C99 standard. No need to mark them with __extension__. Signed-off-by: David Marchand --- I noticed this while reviewing Tyler series on some libraries. Let's see if the compilers in the CI agrees with the patch. --- drivers/crypto/ipsec_mb/ipsec_mb_private.h | 2 +- lib/cryptodev/rte_cryptodev.h | 2 +- lib/ip_frag/ip_reassembly.h | 2 +- lib/ipsec/ipsec_sad.c | 2 +- lib/ipsec/sa.h | 2 +- lib/rib/rte_rib.c | 2 +- lib/rib/rte_rib6.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/crypto/ipsec_mb/ipsec_mb_private.h b/drivers/crypto/ipsec_mb/ipsec_mb_private.h index 52722f94a0..be6dbe9b1b 100644 --- a/drivers/crypto/ipsec_mb/ipsec_mb_private.h +++ b/drivers/crypto/ipsec_mb/ipsec_mb_private.h @@ -125,7 +125,7 @@ struct ipsec_mb_dev_private { /**< PMD type */ uint32_t max_nb_queue_pairs; /**< Max number of queue pairs supported by device */ - __extension__ uint8_t priv[]; + uint8_t priv[]; }; /** IPSEC Multi buffer queue pair common queue pair data for all PMDs */ diff --git a/lib/cryptodev/rte_cryptodev.h b/lib/cryptodev/rte_cryptodev.h index 00ba6a234a..31881123f9 100644 --- a/lib/cryptodev/rte_cryptodev.h +++ b/lib/cryptodev/rte_cryptodev.h @@ -1525,7 +1525,7 @@ struct rte_crypto_raw_dp_ctx { cryptodev_sym_raw_operation_done_t dequeue_done; /* Driver specific context data */ - __extension__ uint8_t drv_ctx_data[]; + uint8_t drv_ctx_data[]; }; /** diff --git a/lib/ip_frag/ip_reassembly.h b/lib/ip_frag/ip_reassembly.h index 5443c738a6..54afed5417 100644 --- a/lib/ip_frag/ip_reassembly.h +++ b/lib/ip_frag/ip_reassembly.h @@ -82,7 +82,7 @@ struct rte_ip_frag_tbl { struct ip_frag_pkt *last; /* last used entry. */ struct ip_pkt_list lru; /* LRU list for table entries. */ struct ip_frag_tbl_stat stat; /* statistics counters. */ - __extension__ struct ip_frag_pkt pkt[]; /* hash table. */ + struct ip_frag_pkt pkt[]; /* hash table. */ }; #endif /* _IP_REASSEMBLY_H_ */ diff --git a/lib/ipsec/ipsec_sad.c b/lib/ipsec/ipsec_sad.c index 7cb492d187..7e147e729c 100644 --- a/lib/ipsec/ipsec_sad.c +++ b/lib/ipsec/ipsec_sad.c @@ -42,7 +42,7 @@ struct rte_ipsec_sad { * (spi_dip or spi_dip_sip). Used only in add/delete * as a helper struct. */ - __extension__ struct hash_cnt cnt_arr[]; + struct hash_cnt cnt_arr[]; }; TAILQ_HEAD(rte_ipsec_sad_list, rte_tailq_entry); diff --git a/lib/ipsec/sa.h b/lib/ipsec/sa.h index 2560d33d84..719b5c735c 100644 --- a/lib/ipsec/sa.h +++ b/lib/ipsec/sa.h @@ -59,7 +59,7 @@ union sym_op_data { struct replay_sqn { rte_rwlock_t rwl; uint64_t sqn; - __extension__ uint64_t window[]; + uint64_t window[]; }; /*IPSEC SA supported algorithms */ diff --git a/lib/rib/rte_rib.c b/lib/rib/rte_rib.c index aa3296de19..b95d329c8b 100644 --- a/lib/rib/rte_rib.c +++ b/lib/rib/rte_rib.c @@ -40,7 +40,7 @@ struct rte_rib_node { uint8_t depth; uint8_t flag; uint64_t nh; - __extension__ uint64_t ext[]; + uint64_t ext[]; }; struct rte_rib { diff --git a/lib/rib/rte_rib6.c b/lib/rib/rte_rib6.c index b7df3926f8..89c8390c63 100644 --- a/lib/rib/rte_rib6.c +++ b/lib/rib/rte_rib6.c @@ -38,7 +38,7 @@ struct rte_rib6_node { uint8_t ip[RTE_RIB6_IPV6_ADDR_SIZE]; uint8_t depth; uint8_t flag; - __extension__ uint64_t ext[]; + uint64_t ext[]; }; struct rte_rib6 { -- 2.44.0