From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <dev-bounces@dpdk.org> 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 <dev@dpdk.org>; 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 <roretzla@linux.microsoft.com> To: dev@dpdk.org Cc: Akhil Goyal <gakhil@marvell.com>, Anatoly Burakov <anatoly.burakov@intel.com>, Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>, Bruce Richardson <bruce.richardson@intel.com>, Chengwen Feng <fengchengwen@huawei.com>, Cristian Dumitrescu <cristian.dumitrescu@intel.com>, David Hunt <david.hunt@intel.com>, Erik Gabriel Carrillo <erik.g.carrillo@intel.com>, Fan Zhang <fanzhang.oss@gmail.com>, Ferruh Yigit <ferruh.yigit@amd.com>, Harman Kalra <hkalra@marvell.com>, Hemant Agrawal <hemant.agrawal@nxp.com>, Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>, Jerin Jacob <jerinj@marvell.com>, Junfeng Guo <junfeng.guo@intel.com>, Kevin Laatz <kevin.laatz@intel.com>, Kiran Kumar K <kirankumark@marvell.com>, Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>, Matan Azrad <matan@nvidia.com>, Matt Peters <matt.peters@windriver.com>, Naga Harish K S V <s.v.naga.harish.k@intel.com>, Nithin Dabilpuram <ndabilpuram@marvell.com>, Olivier Matz <olivier.matz@6wind.com>, Ori Kam <orika@nvidia.com>, Radu Nicolau <radu.nicolau@intel.com>, Sachin Saxena <sachin.saxena@nxp.com>, Sameh Gobriel <sameh.gobriel@intel.com>, Satha Rao <skoteshwar@marvell.com>, Simei Su <simei.su@intel.com>, Srikanth Yalavarthi <syalavarthi@marvell.com>, Steven Webster <steven.webster@windriver.com>, Suanming Mou <suanmingm@nvidia.com>, Sunil Kumar Kori <skori@marvell.com>, Thomas Monjalon <thomas@monjalon.net>, Viacheslav Ovsiienko <viacheslavo@nvidia.com>, Vladimir Medvedkin <vladimir.medvedkin@intel.com>, Yipeng Wang <yipeng1.wang@intel.com>, Zhirun Yan <zhirun.yan@intel.com>, Tyler Retzlaff <roretzla@linux.microsoft.com> 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=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 <roretzla@linux.microsoft.com> --- 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