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 32E13A052F; Mon, 10 Feb 2020 14:40:11 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3602A5F13; Mon, 10 Feb 2020 14:40:09 +0100 (CET) Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id D4F2449E0 for ; Mon, 10 Feb 2020 14:40:06 +0100 (CET) Received: from 2606-a000-111b-43ee-0000-0000-0000-115f.inf6.spectrum.com ([2606:a000:111b:43ee::115f] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1j19Hl-00023k-R0; Mon, 10 Feb 2020 08:39:46 -0500 Date: Mon, 10 Feb 2020 08:39:36 -0500 From: Neil Horman To: Thomas Monjalon Cc: Wenzhuo Lu , Jingjing Wu , Bernard Iremonger , Matan Azrad , Shahaf Shuler , Viacheslav Ovsiienko , Ravi Kumar , Xiaolong Ye , Qi Zhang , Gaetan Rivet , Ziyang Xuan , Xiaoyun Wang , Guoyang Zhou , dev@dpdk.org Message-ID: <20200210133936.GA26588@hmswarspite.think-freely.org> References: <20200210095334.1167059-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200210095334.1167059-1-thomas@monjalon.net> X-Spam-Score: -2.9 (--) X-Spam-Status: No Subject: Re: [dpdk-dev] [PATCH] build: remove redundant config include 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 Mon, Feb 10, 2020 at 10:53:34AM +0100, Thomas Monjalon wrote: > The header file rte_config.h is always included by make or meson. > If required in an exported API header file, it must be included > in the public header file for external applications. > In the internal files, explicit include of rte_config.h is useless, > and can be removed. > > Signed-off-by: Thomas Monjalon > --- > app/test-pmd/config.c | 1 - > buildtools/pmdinfogen/pmdinfogen.h | 1 - > drivers/common/mlx5/mlx5_glue.c | 2 -- > drivers/crypto/ccp/rte_ccp_pmd.c | 1 - > drivers/net/af_xdp/rte_eth_af_xdp.c | 1 - > drivers/net/failsafe/failsafe_intr.c | 1 - > drivers/net/hinic/base/hinic_compat.h | 1 - > drivers/net/mlx4/mlx4.c | 1 - > drivers/net/mlx5/mlx5.c | 1 - > drivers/net/vdev_netvsc/vdev_netvsc.c | 1 - > lib/librte_eal/common/eal_common_mcfg.c | 1 - > lib/librte_eal/common/eal_memcfg.h | 1 - > 12 files changed, 13 deletions(-) > > diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c > index 9669cbd4cb..67840d86b7 100644 > --- a/app/test-pmd/config.c > +++ b/app/test-pmd/config.c > @@ -49,7 +49,6 @@ > #include > #endif > #include > -#include > > #include "testpmd.h" > > diff --git a/buildtools/pmdinfogen/pmdinfogen.h b/buildtools/pmdinfogen/pmdinfogen.h > index c8a9e2136a..160867b9f3 100644 > --- a/buildtools/pmdinfogen/pmdinfogen.h > +++ b/buildtools/pmdinfogen/pmdinfogen.h > @@ -24,7 +24,6 @@ > #include > #include > #include > -#include > #include > > /* On BSD-alike OSes elf.h defines these according to host's word size */ > diff --git a/drivers/common/mlx5/mlx5_glue.c b/drivers/common/mlx5/mlx5_glue.c > index 27cf33cdb9..0af0b86677 100644 > --- a/drivers/common/mlx5/mlx5_glue.c > +++ b/drivers/common/mlx5/mlx5_glue.c > @@ -14,8 +14,6 @@ > */ > #include > > -#include > - > #include "mlx5_glue.h" > > static int > diff --git a/drivers/crypto/ccp/rte_ccp_pmd.c b/drivers/crypto/ccp/rte_ccp_pmd.c > index b5bb6790bc..f6ea008444 100644 > --- a/drivers/crypto/ccp/rte_ccp_pmd.c > +++ b/drivers/crypto/ccp/rte_ccp_pmd.c > @@ -6,7 +6,6 @@ > #include > #include > #include > -#include > #include > #include > #include > diff --git a/drivers/net/af_xdp/rte_eth_af_xdp.c b/drivers/net/af_xdp/rte_eth_af_xdp.c > index 683e2a5594..ed784dff19 100644 > --- a/drivers/net/af_xdp/rte_eth_af_xdp.c > +++ b/drivers/net/af_xdp/rte_eth_af_xdp.c > @@ -26,7 +26,6 @@ > #include > #include > #include > -#include > #include > #include > #include > diff --git a/drivers/net/failsafe/failsafe_intr.c b/drivers/net/failsafe/failsafe_intr.c > index 0f34c5bbac..d8728fe7e3 100644 > --- a/drivers/net/failsafe/failsafe_intr.c > +++ b/drivers/net/failsafe/failsafe_intr.c > @@ -13,7 +13,6 @@ > #include > > #include > -#include > #include > #include > #include > diff --git a/drivers/net/hinic/base/hinic_compat.h b/drivers/net/hinic/base/hinic_compat.h > index e4a7f12d15..b72e8cfe26 100644 > --- a/drivers/net/hinic/base/hinic_compat.h > +++ b/drivers/net/hinic/base/hinic_compat.h > @@ -18,7 +18,6 @@ > #include > #include > #include > -#include > > typedef uint8_t u8; > typedef int8_t s8; > diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c > index 5522eb595c..a1dd658176 100644 > --- a/drivers/net/mlx4/mlx4.c > +++ b/drivers/net/mlx4/mlx4.c > @@ -29,7 +29,6 @@ > #endif > > #include > -#include > #include > #include > #include > diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c > index b4ec6cba1a..23a50f3f92 100644 > --- a/drivers/net/mlx5/mlx5.c > +++ b/drivers/net/mlx5/mlx5.c > @@ -29,7 +29,6 @@ > #include > #include > #include > -#include > #include > #include > #include > diff --git a/drivers/net/vdev_netvsc/vdev_netvsc.c b/drivers/net/vdev_netvsc/vdev_netvsc.c > index be8f19c0c6..9ed74a1d6a 100644 > --- a/drivers/net/vdev_netvsc/vdev_netvsc.c > +++ b/drivers/net/vdev_netvsc/vdev_netvsc.c > @@ -27,7 +27,6 @@ > #include > #include > #include > -#include > #include > #include > #include > diff --git a/lib/librte_eal/common/eal_common_mcfg.c b/lib/librte_eal/common/eal_common_mcfg.c > index 36a8ca8fcf..49d3ed0ce5 100644 > --- a/lib/librte_eal/common/eal_common_mcfg.c > +++ b/lib/librte_eal/common/eal_common_mcfg.c > @@ -2,7 +2,6 @@ > * Copyright(c) 2019 Intel Corporation > */ > > -#include > #include > #include > > diff --git a/lib/librte_eal/common/eal_memcfg.h b/lib/librte_eal/common/eal_memcfg.h > index 4d650025c2..583fcb5953 100644 > --- a/lib/librte_eal/common/eal_memcfg.h > +++ b/lib/librte_eal/common/eal_memcfg.h > @@ -5,7 +5,6 @@ > #ifndef EAL_MEMCFG_H > #define EAL_MEMCFG_H > > -#include > #include > #include > #include > -- > 2.25.0 > > Acked-by: Neil Horman