From patchwork Fri Oct 18 07:56:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 61461 X-Patchwork-Delegate: gakhil@marvell.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 64BAB1C0D6; Fri, 18 Oct 2019 09:59:09 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id 764861C0CE; Fri, 18 Oct 2019 09:59:03 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 13CB81A0021; Fri, 18 Oct 2019 09:59:03 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 105001A013A; Fri, 18 Oct 2019 09:59:00 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id D94FE402C7; Fri, 18 Oct 2019 15:58:55 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org Cc: akhil.goyal@nxp.com, thierry.herbelot@6wind.com, stable@dpdk.org, vipin.varghese@intel.com, Hemant Agrawal Date: Fri, 18 Oct 2019 13:26:12 +0530 Message-Id: <20191018075613.2784-2-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191018075613.2784-1-hemant.agrawal@nxp.com> References: <20191018075613.2784-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH] app/proc-info: fix compilation with no security 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" This patch fixes the compilation issues when RTE_LIBRTE_SECURITY is disabled. Fixes: 8a37f37fc243 ("app/procinfo: add --show-port") Cc: stable@dpdk.org Cc: vipin.varghese@intel.com Signed-off-by: Hemant Agrawal Acked-by: Thierry Herbelot Acked-by: Akhil Goyal Acked-by: Akhil Goyal --- app/proc-info/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index a3f854b89..8cf501d06 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -30,7 +30,9 @@ #include #include #include +#ifdef RTE_LIBRTE_SECURITY #include +#endif #include #include #include @@ -733,6 +735,7 @@ show_port(void) } printf(" - cyrpto context\n"); +#ifdef RTE_LIBRTE_SECURITY void *p_ctx = rte_eth_dev_get_sec_ctx(i); printf("\t -- security context - %p\n", p_ctx); @@ -751,6 +754,7 @@ show_port(void) s_cap->crypto_capabilities->op); } } +#endif } STATS_BDR_STR(50, "");