From patchwork Fri Aug 4 11:56:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrien Mazarguil X-Patchwork-Id: 27438 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 461912E41; Fri, 4 Aug 2017 13:56:38 +0200 (CEST) Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 9311D2BC9 for ; Fri, 4 Aug 2017 13:56:36 +0200 (CEST) Received: by mail-wm0-f52.google.com with SMTP id m85so17947215wma.1 for ; Fri, 04 Aug 2017 04:56:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=B+Y2gQ0kQEuuAL78mX64FYbNu5qhxehkMcKU1nKfiGk=; b=V0zuB7yW1yxqhiDxHTeUtftT4sMlGVcXwsI0pZ6IdMbaoQVpI5yQtL4nQK8W495rsQ DVjewrjVM7q/Oa+/+wRJa/nAhaUT3iktZnve4N0CsWWxRngrO8zM/xerl+TgFbm/w2AY IH2NQP0zNCJJgMlBQbEHQ+eSi+coKQvw9tA5A7F67CdgTId05brf2ga0O14zIx+msp8X 5Kq7gqkJj4f3BHI0g04C61USOmmWQa697+k+CyzPIYp4wH2AAB8+68e2KpmRclYMvh9Z 9fLk9a9KFJEpKojdsPnDAXhpDx2wfv5XLoQAk5EoWxm+C9plp1FkFRHJYRqr++u6RRiW dThA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=B+Y2gQ0kQEuuAL78mX64FYbNu5qhxehkMcKU1nKfiGk=; b=IEqRIRioOFPTAEt/smEPvM1s/VzeIIw1Vtyg7v+5n3Wp8qopp13MWKeGSQphlpNAX1 Uw5M5ZiOklMyhK8cgxvvmPACl0rp+m1Ei2aw6+d230/CkOFXGOwbpkY8dTZpgWOZFs4q Uzq3kSrb0oAbWdTonUYQSKhj3GUE8MWWWgWblTX5NmEiRUqSDMZeK+73YiS0tjC81BZt MdegNjEQaz8TIZwvlWY/XiFN/w7oVE4qmhyDywfkqs/LjMPolSKI5zMKznEp1CW9BK3r SfrwVJ+UsMpazFmjt7swTeZtXJeEf24hRkfEgf8+xLQMat4Vpbxv1cHonIFsRqGdAT2u plpg== X-Gm-Message-State: AHYfb5iGhCY2Q2+7BftIGbxkH2jRo13fl2EgT95zG7JKODGPyaK9CTh3 Xeg4C68tyOeh4OV0i54= X-Received: by 10.28.221.215 with SMTP id u206mr1149626wmg.42.1501847796195; Fri, 04 Aug 2017 04:56:36 -0700 (PDT) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id m127sm2815502wmm.46.2017.08.04.04.56.35 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 04 Aug 2017 04:56:35 -0700 (PDT) From: Adrien Mazarguil To: Thomas Monjalon Cc: dev@dpdk.org, Cristian Dumitrescu Date: Fri, 4 Aug 2017 13:56:21 +0200 Message-Id: <55d8f7ef02866b9ab921656e9e9e4a43d09f3c50.1501847638.git.adrien.mazarguil@6wind.com> X-Mailer: git-send-email 2.1.4 Subject: [dpdk-dev] [PATCH 1/2] ethdev: fix C11 extensions in exported header X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fix issues reported by check-includes.sh: rte_tm.h:473:2: error: anonymous unions are a C11 extension [-Werror,-Wc11-extensions] rte_tm.h:696:2: error: anonymous unions are a C11 extension [-Werror,-Wc11-extensions] rte_tm.h:904:2: error: anonymous unions are a C11 extension [-Werror,-Wc11-extensions] Fixes: 5d109deffa87 ("ethdev: add traffic management API") Cc: Cristian Dumitrescu Signed-off-by: Adrien Mazarguil Acked-by: Cristian Dumitrescu --- lib/librte_ether/rte_tm.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/librte_ether/rte_tm.h b/lib/librte_ether/rte_tm.h index a632b5c..ebbfa1e 100644 --- a/lib/librte_ether/rte_tm.h +++ b/lib/librte_ether/rte_tm.h @@ -50,6 +50,8 @@ #include +#include + #ifdef __cplusplus extern "C" { #endif @@ -470,6 +472,7 @@ struct rte_tm_level_capabilities { */ int leaf_nodes_identical; + RTE_STD_C11 union { /** Items valid only for the non-leaf nodes on this level. */ struct { @@ -693,6 +696,7 @@ struct rte_tm_node_capabilities { */ uint32_t shaper_shared_n_max; + RTE_STD_C11 union { /** Items valid only for non-leaf nodes. */ struct { @@ -901,6 +905,7 @@ struct rte_tm_node_params { /** Number of shared shaper IDs in the *shared_shaper_id* array. */ uint32_t n_shared_shapers; + RTE_STD_C11 union { /** Parameters only valid for non-leaf nodes. */ struct {