From: NĂ©lio Laranjeiro Date: Thu, 23 Nov 2017 10:02:39 +0000 (+0100) Subject: security: fix pedantic compilation X-Git-Tag: spdx-start~120 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9ee625c2cfaa2bd0e0b8f8beecdd3ed0a06e8cd5;p=dpdk.git security: fix pedantic compilation /x86_64-native-linuxapp-gcc/include/rte_security.h:229:8: error: struct has no members [-Werror=pedantic] struct rte_security_macsec_xform { ^~~~~~~~~~~~~~~~~~~~~~~~~ /x86_64-native-linuxapp-gcc/include/rte_security.h:453:3: error: struct has no members [-Werror=pedantic] struct { ^~~~~~ Fixes: c261d1431bd8 ("security: introduce security API and framework") Cc: stable@dpdk.org Signed-off-by: Nelio Laranjeiro Acked-by: Akhil Goyal --- diff --git a/lib/librte_security/rte_security.h b/lib/librte_security/rte_security.h index 629f5473d8..fc4cec2937 100644 --- a/lib/librte_security/rte_security.h +++ b/lib/librte_security/rte_security.h @@ -228,6 +228,7 @@ struct rte_security_ipsec_xform { */ struct rte_security_macsec_xform { /** To be Filled */ + int dummy; }; /** @@ -452,6 +453,7 @@ struct rte_security_capability { /**< IPsec capability */ struct { /* To be Filled */ + int dummy; } macsec; /**< MACsec capability */ };