Skip to content

Commit

Permalink
remove extension keyword for flex arrays
Browse files Browse the repository at this point in the history
Flex arrays are part of the C99 standard.
No need to mark them with __extension__.

Signed-off-by: David Marchand <[email protected]>
  • Loading branch information
david-marchand committed Jun 12, 2024
1 parent 85e3270 commit 6f12ef7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion drivers/crypto/ipsec_mb/ipsec_mb_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion lib/cryptodev/rte_cryptodev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
};

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/ip_frag/ip_reassembly.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */
2 changes: 1 addition & 1 deletion lib/ipsec/ipsec_sad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/ipsec/sa.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion lib/rib/rte_rib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion lib/rib/rte_rib6.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6f12ef7

Please sign in to comment.