From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3B3B3A318B for ; Fri, 18 Oct 2019 10:09:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8068F1C10C; Fri, 18 Oct 2019 10:09:31 +0200 (CEST) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by dpdk.org (Postfix) with ESMTP id D3E611C0DB for ; Fri, 18 Oct 2019 10:09:29 +0200 (CEST) Received: by mail-wm1-f68.google.com with SMTP id b24so5123140wmj.5 for ; Fri, 18 Oct 2019 01:09:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=IleW/StKCcux/ulrzITLDTUmpEEP++4R7kTMl6d9MAc=; b=OqSxVyEYhkbB/ch8W05LzrnmneO9jdTfD1yQuOrRSX3zFL5hQpGQktX3o2mqr7R5NR SPUOcBkizoqJrMfEbyLFqUKevG5yC/HrVA+tOk1ExcUCXizCaiKyjREbj+Fc31Gc9S59 VU2hceNuNcWB3XFrX/tqcwsacBasTt+F9s/WU1uQKpSo9ngNuXMyQeCR3AaO1sSY4itX 5aEIF9/MC2fuX5ap9qcNcDapBUC8z+9IBiuYtooRn6CtdiAnZliu7943WkJv4AmvGqIZ ItSJL7PrWZ+pbx6wP4RQfWt7k0XOXzKf/gixxdFiJFf8ew2pBVudgF3O8j9N60vuKEDD erMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=IleW/StKCcux/ulrzITLDTUmpEEP++4R7kTMl6d9MAc=; b=o/UN518rkGqBZ3f+5cJFDW+iQ9IuNtTilIB6nsxch78Op5oXd9/O6KXusysJUrQSRa BWZILJP/Y/8tKPrAi1TY2KY0GMwfT3xDuxeb79ff8rvBAGsltsQKZndGFvdAlOf5usDz Gf46/3PDZtHTh5pnlknpvvJPpMqemh0djYX5cP3Sxp8q8xfbNJG2kkuA6sykhp5OVpDT lAeJCEvem2BylQEbm+BxoUtXIADeet5oXS7fyhsC4d81Q/qoT/3u/LYE7KPW8tYuZ4wq xMbG1idvYxnA2oRt5qXh9GU3nqU47wDeChctRC+HLRGY8FewLIOJqvFNpJ6wLMTD1EDi ezTg== X-Gm-Message-State: APjAAAUiud6TfNc6H1wj4kcbEylyuC45oKS4coZHT75WAROcvqnaHa5q m/vEbaZSGuHb7mWUy8LRErKd X-Google-Smtp-Source: APXvYqwKzwofOD520Yh3C+jnQnZsoSOStX7XI7V4xMTCMahYp/7HjWlmSYrcAUIZ5fzgYUmf4K8DsQ== X-Received: by 2002:a7b:cc01:: with SMTP id f1mr6850631wmh.113.1571386169555; Fri, 18 Oct 2019 01:09:29 -0700 (PDT) Received: from [10.16.0.208] (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id o22sm6278999wra.96.2019.10.18.01.09.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Oct 2019 01:09:29 -0700 (PDT) To: Hemant Agrawal , dev@dpdk.org Cc: akhil.goyal@nxp.com, stable@dpdk.org, vipin.varghese@intel.com References: <20191018075613.2784-1-hemant.agrawal@nxp.com> <20191018075613.2784-2-hemant.agrawal@nxp.com> From: Thierry Herbelot Message-ID: <4a08d6c1-9ae8-a75d-7bb1-adeb9c2feeec@6wind.com> Date: Fri, 18 Oct 2019 10:09:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191018075613.2784-2-hemant.agrawal@nxp.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [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" On 10/18/19 9:56 AM, Hemant Agrawal wrote: > 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(+) > > 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, ""); > Acked-by: Thierry Herbelot -- Thierry Herbelot 6WIND Senior Software Engineer