From patchwork Tue Oct 17 11:04:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Stokes X-Patchwork-Id: 30479 X-Patchwork-Delegate: pablo.de.lara.guarch@intel.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BCFFB1B804; Tue, 17 Oct 2017 13:04:21 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id EBF881B7EC for ; Tue, 17 Oct 2017 13:04:19 +0200 (CEST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP; 17 Oct 2017 04:04:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,390,1503385200"; d="scan'208";a="161367692" Received: from sivswdev01.ir.intel.com (HELO localhost.localdomain) ([10.237.217.45]) by orsmga005.jf.intel.com with ESMTP; 17 Oct 2017 04:04:17 -0700 From: Ian Stokes To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, Ian Stokes Date: Tue, 17 Oct 2017 12:04:15 +0100 Message-Id: <1508238255-30383-1-git-send-email-ian.stokes@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH v1 1/1] rte_crypto.h: Fix compilation issue with Ofast. 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" 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 case for RTE_OP_TYPE_UNDEFINED. Signed-off-by: Ian Stokes --- lib/librte_cryptodev/rte_crypto.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/librte_cryptodev/rte_crypto.h b/lib/librte_cryptodev/rte_crypto.h index 10fe080..3ef9e41 100644 --- a/lib/librte_cryptodev/rte_crypto.h +++ b/lib/librte_cryptodev/rte_crypto.h @@ -144,6 +144,7 @@ struct rte_crypto_op { case RTE_CRYPTO_OP_TYPE_SYMMETRIC: __rte_crypto_sym_op_reset(op->sym); break; + case RTE_CRYPTO_OP_TYPE_UNDEFINED: default: break; }