[dpdk-dev] remove include of generated config header
Checks
Commit Message
The file rte_config.h is generated and automatically included
with -include option.
The explicit includes in drivers and libraries are useless.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
drivers/bus/dpaa/dpaa_bus.c | 1 -
drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 1 -
drivers/crypto/kasumi/rte_kasumi_pmd.c | 1 -
drivers/crypto/null/null_crypto_pmd.c | 1 -
drivers/crypto/null/null_crypto_pmd_private.h | 2 --
drivers/crypto/scheduler/scheduler_pmd_ops.c | 1 -
drivers/crypto/snow3g/rte_snow3g_pmd.c | 1 -
drivers/crypto/zuc/rte_zuc_pmd.c | 1 -
drivers/event/octeontx/ssovf_evdev.h | 1 -
drivers/mempool/dpaa/dpaa_mempool.c | 1 -
drivers/net/dpaa/dpaa_ethdev.c | 1 -
drivers/net/dpaa/dpaa_rxtx.c | 1 -
drivers/net/mrvl/mrvl_qos.h | 1 -
lib/librte_eal/common/include/rte_dev.h | 1 -
lib/librte_eal/common/include/rte_eal.h | 1 -
lib/librte_eal/common/include/rte_memory.h | 2 --
lib/librte_ether/ethdev_profile.c | 2 --
17 files changed, 20 deletions(-)
Comments
02/11/2017 22:38, Thomas Monjalon:
> The file rte_config.h is generated and automatically included
> with -include option.
> The explicit includes in drivers and libraries are useless.
>
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Applied
@@ -40,7 +40,6 @@
#include <sys/types.h>
#include <sys/syscall.h>
-#include <rte_config.h>
#include <rte_byteorder.h>
#include <rte_common.h>
#include <rte_interrupts.h>
@@ -31,7 +31,6 @@
*/
#include <rte_common.h>
-#include <rte_config.h>
#include <rte_hexdump.h>
#include <rte_cryptodev.h>
#include <rte_cryptodev_pmd.h>
@@ -31,7 +31,6 @@
*/
#include <rte_common.h>
-#include <rte_config.h>
#include <rte_hexdump.h>
#include <rte_cryptodev.h>
#include <rte_cryptodev_pmd.h>
@@ -31,7 +31,6 @@
*/
#include <rte_common.h>
-#include <rte_config.h>
#include <rte_cryptodev_pmd.h>
#include <rte_vdev.h>
#include <rte_malloc.h>
@@ -33,8 +33,6 @@
#ifndef _NULL_CRYPTO_PMD_PRIVATE_H_
#define _NULL_CRYPTO_PMD_PRIVATE_H_
-#include "rte_config.h"
-
#define CRYPTODEV_NAME_NULL_PMD crypto_null
/**< Null crypto PMD device name */
@@ -31,7 +31,6 @@
*/
#include <string.h>
-#include <rte_config.h>
#include <rte_common.h>
#include <rte_malloc.h>
#include <rte_dev.h>
@@ -31,7 +31,6 @@
*/
#include <rte_common.h>
-#include <rte_config.h>
#include <rte_hexdump.h>
#include <rte_cryptodev.h>
#include <rte_cryptodev_pmd.h>
@@ -31,7 +31,6 @@
*/
#include <rte_common.h>
-#include <rte_config.h>
#include <rte_hexdump.h>
#include <rte_cryptodev.h>
#include <rte_cryptodev_pmd.h>
@@ -33,7 +33,6 @@
#ifndef __SSOVF_EVDEV_H__
#define __SSOVF_EVDEV_H__
-#include <rte_config.h>
#include <rte_eventdev_pmd_vdev.h>
#include <rte_io.h>
@@ -41,7 +41,6 @@
#include <sys/types.h>
#include <sys/syscall.h>
-#include <rte_config.h>
#include <rte_byteorder.h>
#include <rte_common.h>
#include <rte_log.h>
@@ -41,7 +41,6 @@
#include <sys/types.h>
#include <sys/syscall.h>
-#include <rte_config.h>
#include <rte_byteorder.h>
#include <rte_common.h>
#include <rte_interrupts.h>
@@ -39,7 +39,6 @@
#include <sched.h>
#include <pthread.h>
-#include <rte_config.h>
#include <rte_byteorder.h>
#include <rte_common.h>
#include <rte_interrupts.h>
@@ -36,7 +36,6 @@
#define _MRVL_QOS_H_
#include <rte_common.h>
-#include <rte_config.h>
#include "mrvl_ethdev.h"
@@ -49,7 +49,6 @@ extern "C" {
#include <stdio.h>
#include <sys/queue.h>
-#include <rte_config.h>
#include <rte_log.h>
__attribute__((format(printf, 2, 0)))
@@ -44,7 +44,6 @@
#include <sched.h>
#include <rte_per_lcore.h>
-#include <rte_config.h>
#include <rte_bus.h>
#include <rte_pci_dev_feature_defs.h>
@@ -44,8 +44,6 @@
#include <stddef.h>
#include <stdio.h>
-#include <rte_config.h>
-
#ifdef __cplusplus
extern "C" {
#endif
@@ -31,8 +31,6 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <rte_config.h>
-
#include "ethdev_profile.h"
/**