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 DFCD843038; Sat, 12 Aug 2023 00:24:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ACECA432A2; Sat, 12 Aug 2023 00:23:23 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 2C67240E0F for ; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 230DD20FD407; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 230DD20FD407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=2j1KtRPVmBX2yZiPnM1MfBjEo0MkzAZwlTcDjebv/nc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TiUN7UGl4HMes/dOvH3DuiAt9BypR/vQzBD4hnzpykCoScp/AJNeo4Azj0KVNy3kI HWP7dV+7T/KRUJH4m/S8A1FONgbimtuA2LnRtt1B/O+HWRLuX7orpiaS6samFtF/rs dQUCf2FfcH8IDxcixpmENFTJ0NH202m0/kEh4flk= From: Tyler Retzlaff To: dev@dpdk.org Cc: Akhil Goyal , Anatoly Burakov , Andrew Rybchenko , Bruce Richardson , Chengwen Feng , Cristian Dumitrescu , David Hunt , Erik Gabriel Carrillo , Fan Zhang , Ferruh Yigit , Harman Kalra , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Junfeng Guo , Kevin Laatz , Kiran Kumar K , Konstantin Ananyev , Matan Azrad , Matt Peters , Naga Harish K S V , Nithin Dabilpuram , Olivier Matz , Ori Kam , Radu Nicolau , Sachin Saxena , Sameh Gobriel , Satha Rao , Simei Su , Srikanth Yalavarthi , Steven Webster , Suanming Mou , Sunil Kumar Kori , Thomas Monjalon , Viacheslav Ovsiienko , Vladimir Medvedkin , Yipeng Wang , Zhirun Yan , Tyler Retzlaff Subject: [PATCH 16/32] graph: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:31 -0700 Message-Id: <1691792567-10805-17-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff --- lib/graph/rte_graph.h | 3 --- lib/graph/rte_graph_worker_common.h | 4 ---- 2 files changed, 7 deletions(-) diff --git a/lib/graph/rte_graph.h b/lib/graph/rte_graph.h index 7e94c15..eca32a4 100644 --- a/lib/graph/rte_graph.h +++ b/lib/graph/rte_graph.h @@ -168,7 +168,6 @@ struct rte_graph_param { uint64_t num_pkt_to_capture; /**< Number of packets to capture. */ char *pcap_filename; /**< Filename in which packets to be captured.*/ - RTE_STD_C11 union { struct { uint64_t rsvd; /**< Reserved for rtc model. */ @@ -192,7 +191,6 @@ struct rte_graph_cluster_stats_param { /**< Stats print callback function. NULL value allowed, in that case, * default print stat function used. */ - RTE_STD_C11 union { void *cookie; FILE *f; /**< File pointer to dump the stats when fn == NULL. */ @@ -218,7 +216,6 @@ struct rte_graph_cluster_node_stats { uint64_t prev_objs; /**< Previous number of processed objs. */ uint64_t prev_cycles; /**< Previous number of cycles. */ - RTE_STD_C11 union { struct { uint64_t sched_objs; diff --git a/lib/graph/rte_graph_worker_common.h b/lib/graph/rte_graph_worker_common.h index a382459..7d6973c 100644 --- a/lib/graph/rte_graph_worker_common.h +++ b/lib/graph/rte_graph_worker_common.h @@ -59,7 +59,6 @@ struct rte_graph { uint8_t model; /**< graph model */ uint8_t reserved1; /**< Reserved for future use. */ uint16_t reserved2; /**< Reserved for future use. */ - RTE_STD_C11 union { /* Fast schedule area for mcore dispatch model */ struct { @@ -105,7 +104,6 @@ struct rte_node { /** Original process function when pcap is enabled. */ rte_node_process_t original_process; - RTE_STD_C11 union { /* Fast schedule area for mcore dispatch model */ struct { @@ -123,12 +121,10 @@ struct rte_node { uint64_t total_cycles; /**< Cycles spent in this node. */ uint64_t total_calls; /**< Calls done to this node. */ uint64_t total_objs; /**< Objects processed by this node. */ - RTE_STD_C11 union { void **objs; /**< Array of object pointers. */ uint64_t objs_u64; }; - RTE_STD_C11 union { rte_node_process_t process; /**< Process function. */ uint64_t process_u64; -- 1.8.3.1