From: Ian Stokes Date: Tue, 17 Oct 2017 14:15:06 +0000 (+0100) Subject: cryptodev: fix build with -Ofast X-Git-Tag: spdx-start~1201 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=812f48370f93198f082f98a69f0882b6ae1bde61;p=dpdk.git cryptodev: fix build with -Ofast When compiling with an application that includes rte_cryptodev.h with Ofast, an error is reported regarding enumeration RTE_CRYPTO_OP_TYPE_UNDEFINED not handled in switch case in function __rte_crypto_op_reset(). Fix this by adding a case for RTE_CRYPTO_OP_TYPE_UNDEFINED. Fixes: c0f87eb5252b ("cryptodev: change burst API to be crypto op oriented") Cc: stable@dpdk.org Signed-off-by: Ian Stokes Acked-by: Pablo de Lara --- diff --git a/lib/librte_cryptodev/rte_crypto.h b/lib/librte_cryptodev/rte_crypto.h index 10fe0804b2..3ef9e41ced 100644 --- a/lib/librte_cryptodev/rte_crypto.h +++ b/lib/librte_cryptodev/rte_crypto.h @@ -144,6 +144,7 @@ __rte_crypto_op_reset(struct rte_crypto_op *op, enum rte_crypto_op_type type) case RTE_CRYPTO_OP_TYPE_SYMMETRIC: __rte_crypto_sym_op_reset(op->sym); break; + case RTE_CRYPTO_OP_TYPE_UNDEFINED: default: break; }