cryptodev: fix build with gcc 4.4.7
authorDeclan Doherty <declan.doherty@intel.com>
Fri, 27 Nov 2015 17:44:47 +0000 (17:44 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 27 Nov 2015 18:22:06 +0000 (19:22 +0100)
commitdbe849384ca675fbd859daad78058f73879832dd
tree2d0a8af19e2e0c3275beefb7cacaf71535f0828d
parent8c4c9915fcd6d6feb463ee29da4416df4d87188c
cryptodev: fix build with gcc 4.4.7

- Fix for build error caused by flexible array member in
struct rte_ccryptodev_session:
error: flexible array member in otherwise empty struct

- Change void** casting of sess parameter in
rte_cryptodev_session_create which causes a strict-aliasing error.

Fixes: d11b0f30df88 ("cryptodev: introduce API and framework for crypto devices")

Signed-off-by: Declan Doherty <declan.doherty@intel.com>
lib/librte_cryptodev/rte_cryptodev.c
lib/librte_cryptodev/rte_cryptodev_pmd.h