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: 176777 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp503910ill; Fri, 18 Oct 2019 00:59:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaH2ha88l8soO8es6UrvjiVx/kPJ7gBuFaZZK87VSJpmIB95JYwts1vs1h5dFC8GMNLZjB X-Received: by 2002:a05:6402:656:: with SMTP id u22mr8266725edx.70.1571385560488; Fri, 18 Oct 2019 00:59:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571385560; cv=none; d=google.com; s=arc-20160816; b=uKe93GWt471c+kVuYG6VjsZ2FnfzBfeFcrK7A20u7XZgl7jlVY8yxUL57t3goINc4I PasgUX3dC0dkSEXYpCZuuNBeqKGFne4Q9a39yj0FvSQJEgkDDl09B81nGjYN3sQNYpK7 SiqPGyKxjCELDVJMh1FbKdC5OK9hzlmGvUYTygdYIkDWdmE+nBGJocWhC1mLZrD2G0D2 +p6v1122i1+IvONEpZoaygbmQnTwjoB8K8xAs6RegRZUxp8Kk+Znw8LalIhJtwQ3MsV3 +aOGq/7Dqj3kF/Ydx7uAFJ9qHOH+xcsrvVFBoz1c7wA8vW5NUF9Nnj++S9lNGzfXzRpj ke1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=l4asmX/Vcwungt+8qCP5vW++psGNdIMwqGeSilBnhxQ=; b=YBMvEgLAlGoCiihSWP6BtDRH+ATUeePXNt2Rjtqhp6O72BfYRSopHi+iWfo1XdvmwV FHbz8FpVSIahKMu/AC+O5MbtMKMUNIYp3W/pTQGNrNnw1p0eYrsVg0w3ssC79oPdyUaW FWXvxOJrp14S6QdgKiM3tssA2KvkE8/999Pd7pZxT9RNwGlNYcHoIb57FI6YoStVmZht GpbHU8Y3OoKnN7BWw7H4HpYx5blY+/jRuaYGfuYxUIBBfs3N7noPpGOA+4ME7U/ZM5ED /FDrINm0SPHiv+KpD/Se0RAb2ZvpzZtIj0+8CU3tNzoI2ka9LfS7u18YxHKkJUr/ywJV eo3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id v10si3474070edc.224.2019.10.18.00.59.20; Fri, 18 Oct 2019 00:59:20 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com 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 --- app/proc-info/main.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1 Acked-by: Thierry Herbelot Acked-by: Akhil Goyal Acked-by: Akhil Goyal 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, "");