DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] cryptodev: fix compilation error in SUSE 11 SP2
@ 2016-09-26 21:50 Pablo de Lara
  2016-09-27  7:45 ` Adrien Mazarguil
  2016-10-05  2:45 ` [dpdk-dev] [PATCH v2] " Pablo de Lara
  0 siblings, 2 replies; 8+ messages in thread
From: Pablo de Lara @ 2016-09-26 21:50 UTC (permalink / raw)
  To: dev; +Cc: adrien.mazarguil, declan.doherty, Pablo de Lara

This commit fixes following build error, which happens in SUSE 11 SP2,
with gcc 4.5.1:

In file included from lib/librte_cryptodev/rte_cryptodev.c:71:0:
lib/librte_cryptodev/rte_cryptodev_pmd.h:76:7:
error: flexible array member in otherwise empty struct

Fixes: 347a1e037fd3 ("lib: use C99 syntax for zero-size arrays")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
 lib/librte_cryptodev/rte_cryptodev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h
index 7fb5f6e..d19b378 100644
--- a/lib/librte_cryptodev/rte_cryptodev.h
+++ b/lib/librte_cryptodev/rte_cryptodev.h
@@ -769,7 +769,7 @@ struct rte_cryptodev_sym_session {
 	} __rte_aligned(8);
 	/**< Public symmetric session details */
 
-	char _private[];
+	__extension__ char _private[0];
 	/**< Private session material */
 };
 
-- 
2.7.4

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-10-06 21:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-26 21:50 [dpdk-dev] [PATCH] cryptodev: fix compilation error in SUSE 11 SP2 Pablo de Lara
2016-09-27  7:45 ` Adrien Mazarguil
2016-09-29 19:30   ` De Lara Guarch, Pablo
2016-09-30  8:33     ` Adrien Mazarguil
2016-10-05  2:31       ` De Lara Guarch, Pablo
2016-10-05  2:45 ` [dpdk-dev] [PATCH v2] " Pablo de Lara
2016-10-05  8:51   ` Adrien Mazarguil
2016-10-06 21:00     ` De Lara Guarch, Pablo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).