C11 conformant compiler is documented as a minimum requirement to build
and consume DPDK. Remove use and definition of RTE_STD_C11 macro.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---
lib/eal/common/eal_common_proc.c | 1 -
lib/eal/common/eal_interrupts.h | 1 -
lib/eal/common/malloc_mp.h | 2 --
lib/eal/include/generic/rte_atomic.h | 2 --
lib/eal/include/rte_common.h | 7 -------
lib/eal/include/rte_devargs.h | 1 -
lib/eal/include/rte_memory.h | 2 --
lib/eal/include/rte_memzone.h | 1 -
lib/eal/linux/eal_vfio.h | 1 -
lib/eal/x86/include/rte_atomic_32.h | 1 -
lib/eal/x86/include/rte_cycles.h | 1 -
11 files changed, 20 deletions(-)
@@ -80,7 +80,6 @@ struct pending_request {
struct rte_mp_msg *request;
struct rte_mp_msg *reply;
int reply_received;
- RTE_STD_C11
union {
struct {
struct async_request_param *param;
@@ -6,7 +6,6 @@
#define EAL_INTERRUPTS_H
struct rte_intr_handle {
- RTE_STD_C11
union {
struct {
int dev_fd; /**< VFIO/UIO cfg device file descriptor */
@@ -39,7 +39,6 @@ struct malloc_req_alloc {
};
struct malloc_req_free {
- RTE_STD_C11
union {
void *addr;
uint64_t addr_64;
@@ -49,7 +48,6 @@ struct malloc_req_free {
struct malloc_mp_req {
enum malloc_req_type t;
- RTE_STD_C11
union {
struct malloc_req_alloc alloc_req;
struct malloc_req_free free_req;
@@ -1069,9 +1069,7 @@ static inline void rte_atomic64_clear(rte_atomic64_t *v)
/**
* 128-bit integer structure.
*/
-RTE_STD_C11
typedef struct {
- RTE_STD_C11
union {
uint64_t val[2];
#ifdef RTE_ARCH_64
@@ -34,13 +34,6 @@
#endif
#endif
-/** C extension macro for environments lacking C11 features. */
-#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L
-#define RTE_STD_C11 __extension__
-#else
-#define RTE_STD_C11
-#endif
-
/*
* RTE_TOOLCHAIN_GCC is defined if the target is built with GCC,
* while a host application (like pmdinfogen) may have another compiler.
@@ -78,7 +78,6 @@ struct rte_devargs {
enum rte_dev_policy policy;
/** Name of the device. */
char name[RTE_DEV_NAME_MAX_LEN];
- RTE_STD_C11
union {
const char *args; /**< legacy name. */
const char *drv_str; /**< driver-related part of device string. */
@@ -47,7 +47,6 @@
*/
struct rte_memseg {
rte_iova_t iova; /**< Start IO address. */
- RTE_STD_C11
union {
void *addr; /**< Start virtual address. */
uint64_t addr_64; /**< Makes sure addr is always 64 bits */
@@ -65,7 +64,6 @@ struct rte_memseg {
* together with the array itself.
*/
struct rte_memseg_list {
- RTE_STD_C11
union {
void *base_va;
/**< Base virtual address for this memseg list. */
@@ -51,7 +51,6 @@ struct rte_memzone {
char name[RTE_MEMZONE_NAMESIZE]; /**< Name of the memory zone. */
rte_iova_t iova; /**< Start IO address. */
- RTE_STD_C11
union {
void *addr; /**< Start virtual address. */
uint64_t addr_64; /**< Makes sure addr is always 64-bits */
@@ -148,7 +148,6 @@ struct vfio_iommu_type {
struct vfio_mp_param {
int req;
int result;
- RTE_STD_C11
union {
int group_num;
int iommu_type_id;
@@ -25,7 +25,6 @@
rte_atomic64_cmpset(volatile uint64_t *dst, uint64_t exp, uint64_t src)
{
uint8_t res;
- RTE_STD_C11
union {
struct {
uint32_t l32;
@@ -25,7 +25,6 @@
{
union {
uint64_t tsc_64;
- RTE_STD_C11
struct {
uint32_t lo_32;
uint32_t hi_32;