eal: remove unneeded includes from a public header

Do not include <ctype.h>, <errno.h>, and <stdlib.h> from <rte_common.h>,
because they are not used by this file.
Include the needed headers directly from the files that need them.

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
Dmitry Kozlyuk 2022-08-27 14:32:22 +03:00 committed by David Marchand
parent 347623c9c7
commit 72b452c5f2
168 changed files with 231 additions and 5 deletions

View File

@ -7,6 +7,7 @@
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#include <rte_eal.h>
#include <rte_common.h>

View File

@ -3,6 +3,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <math.h>

View File

@ -5,7 +5,9 @@
#ifdef RTE_EXEC_ENV_FREEBSD
#define _WITH_GETLINE
#endif
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <rte_malloc.h>

View File

@ -2,6 +2,8 @@
* Copyright(c) 2019 Intel Corporation
*/
#include <stdlib.h>
#include <rte_malloc.h>
#include <rte_eal.h>
#include <rte_log.h>

View File

@ -2,6 +2,8 @@
* Copyright(c) 2018 Intel Corporation
*/
#include <stdlib.h>
#include <rte_malloc.h>
#include <rte_eal.h>
#include <rte_log.h>

View File

@ -2,6 +2,8 @@
* Copyright(c) 2018 Intel Corporation
*/
#include <stdlib.h>
#include <rte_malloc.h>
#include <rte_eal.h>
#include <rte_log.h>

View File

@ -2,6 +2,7 @@
* Copyright(c) 2018 Intel Corporation
*/
#include <stdlib.h>
#include <signal.h>
#include <sys/types.h>
#include <unistd.h>

View File

@ -3,6 +3,7 @@
*/
#include <getopt.h>
#include <stdlib.h>
#include <unistd.h>
#include <rte_cryptodev.h>

View File

@ -3,6 +3,7 @@
*/
#include <stdbool.h>
#include <stdlib.h>
#include <rte_crypto.h>
#include <rte_cryptodev.h>

View File

@ -2,6 +2,8 @@
* Copyright(c) 2016-2017 Intel Corporation
*/
#include <stdlib.h>
#include <rte_malloc.h>
#include <rte_cycles.h>
#include <rte_crypto.h>

View File

@ -4,7 +4,9 @@
#ifdef RTE_EXEC_ENV_FREEBSD
#define _WITH_GETLINE
#endif
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <rte_malloc.h>

View File

@ -2,6 +2,8 @@
* Copyright(c) 2016-2017 Intel Corporation
*/
#include <stdlib.h>
#include <rte_malloc.h>
#include <rte_cycles.h>
#include <rte_crypto.h>

View File

@ -3,6 +3,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <rte_malloc.h>

View File

@ -3,6 +3,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>

View File

@ -3,6 +3,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <getopt.h>

View File

@ -5,6 +5,7 @@
#ifndef __INCLUDE_PARSER_H__
#define __INCLUDE_PARSER_H__
#include <ctype.h>
#include <stdint.h>
#define PARSE_DELIMITER " \f\n\r\t\v"

View File

@ -3,6 +3,7 @@
*/
#include <getopt.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/socket.h>

View File

@ -6,6 +6,7 @@
* and initializing it with needed data.
*/
#include <stdlib.h>
#include <sys/types.h>
#include <rte_malloc.h>
#include <rte_flow.h>

View File

@ -2,7 +2,9 @@
* Copyright(c) 2018 Intel Corporation
*/
#include <ctype.h>
#include <stdio.h>
#include <rte_mbuf.h>
#include <rte_ethdev.h>
#include <rte_flow.h>

View File

@ -3,6 +3,7 @@
* Copyright(c) 2014 6WIND S.A.
*/
#include <ctype.h>
#include <stdarg.h>
#include <errno.h>
#include <stdio.h>

View File

@ -2,6 +2,8 @@
* Copyright(c) 2017 Intel Corporation
*/
#include <ctype.h>
#include <cmdline_parse.h>
#include <cmdline_parse_num.h>
#include <cmdline_parse_string.h>

View File

@ -3,6 +3,7 @@
* Copyright 2013-2014 6WIND S.A.
*/
#include <ctype.h>
#include <stdarg.h>
#include <errno.h>
#include <stdio.h>

View File

@ -7,6 +7,7 @@
#include <getopt.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>

View File

@ -5,7 +5,9 @@
#ifndef _TEST_H_
#define _TEST_H_
#include <errno.h>
#include <stddef.h>
#include <stdlib.h>
#include <sys/queue.h>
#include <rte_hexdump.h>

View File

@ -2,6 +2,7 @@
* Copyright 2020-2021 NXP
*/
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>

View File

@ -2,6 +2,7 @@
* Copyright(c) 2017 Intel Corporation
*/
#include <stdlib.h>
#include <string.h>
#include <rte_common.h>

View File

@ -2,6 +2,7 @@
* Copyright(c) 2017 Intel Corporation
*/
#include <stdlib.h>
#include <string.h>
#include <rte_common.h>

View File

@ -2,6 +2,7 @@
* Copyright 2018 Gaëtan Rivet
*/
#include <errno.h>
#include <string.h>
#include <rte_dev.h>

View File

@ -2,6 +2,7 @@
* Copyright(C) 2021 Marvell.
*/
#include <ctype.h>
#include "cnxk_telemetry.h"
#include "roc_api.h"
#include "roc_priv.h"

View File

@ -2,6 +2,7 @@
* Copyright(C) 2021 Marvell.
*/
#include <ctype.h>
#include "cnxk_telemetry.h"
#include "roc_api.h"
#include "roc_priv.h"

View File

@ -2,6 +2,7 @@
* Copyright(c) 2017 Cavium, Inc
*/
#include <errno.h>
#include <string.h>
#include <rte_atomic.h>

View File

@ -5,6 +5,7 @@
#include <dirent.h>
#include <stdbool.h>
#include <stdlib.h>
#include <sys/queue.h>
#include <rte_malloc.h>

View File

@ -3,6 +3,8 @@
* All rights reserved.
*/
#include <errno.h>
#include "bcmfs_hw_defs.h"
#include "bcmfs_rm_common.h"

View File

@ -1,6 +1,9 @@
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2017 Intel Corporation
*/
#include <ctype.h>
#include <stdlib.h>
#include <rte_common.h>
#include <rte_hexdump.h>
#include <rte_cryptodev.h>

View File

@ -3,6 +3,7 @@
*/
#include <inttypes.h>
#include <stdlib.h>
#include <rte_bus_vdev.h>
#include <rte_cycles.h>

View File

@ -9,6 +9,7 @@
#endif
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <rte_cycles.h>

View File

@ -3,6 +3,7 @@
*/
#include <inttypes.h>
#include <stdlib.h>
#include <rte_common.h>
#include <cryptodev_pmd.h>

View File

@ -2,6 +2,8 @@
* Copyright(c) 2017 Cavium, Inc
*/
#include <stdlib.h>
#include <rte_atomic.h>
#include <rte_common.h>
#include <rte_cycles.h>

View File

@ -3,6 +3,7 @@
*/
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
#include <rte_bus_vdev.h>

View File

@ -5,6 +5,7 @@
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <sys/queue.h>

View File

@ -3,6 +3,7 @@
*/
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
#include <rte_bus_vdev.h>

View File

@ -5,6 +5,7 @@
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <sys/queue.h>

View File

@ -23,6 +23,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <unistd.h>

View File

@ -2,6 +2,7 @@
* Copyright (c) 2015-2018 Atomic Rules LLC
*/
#include <stdlib.h>
#include <unistd.h>
#include <rte_string_fns.h>

View File

@ -2,6 +2,7 @@
* Copyright (c) 2015-2018 Atomic Rules LLC
*/
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>

View File

@ -8,6 +8,7 @@
#ifndef AQ_HW_UTILS_H
#define AQ_HW_UTILS_H
#include <errno.h>
#include <rte_common.h>
#include <rte_io.h>
#include <rte_byteorder.h>

View File

@ -2,6 +2,8 @@
* Copyright(C) 2022 Marvell.
*/
#include <ctype.h>
#include <rte_telemetry.h>
#include <roc_api.h>

View File

@ -10,6 +10,7 @@
#if defined(LINUX)
#include <sys/epoll.h>
#endif
#include <stdlib.h>
#include <unistd.h>
#include <rte_alarm.h>

View File

@ -2,6 +2,8 @@
* Copyright(c) 2018-2021 HiSilicon Limited.
*/
#include <stdlib.h>
#include <rte_eal.h>
#include <ethdev_driver.h>
#include <rte_string_fns.h>

View File

@ -5,6 +5,8 @@
#ifndef _I40E_ADMINQ_H_
#define _I40E_ADMINQ_H_
#include <errno.h>
#include "i40e_osdep.h"
#include "i40e_status.h"
#include "i40e_adminq_cmd.h"

View File

@ -2,6 +2,7 @@
* Copyright(c) 2010-2017 Intel Corporation
*/
#include <ctype.h>
#include <stdio.h>
#include <errno.h>
#include <stdint.h>

View File

@ -2,6 +2,7 @@
* Copyright(c) 2017 Intel Corporation
*/
#include <ctype.h>
#include <sys/queue.h>
#include <stdio.h>
#include <errno.h>

View File

@ -1,6 +1,7 @@
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2020 Intel Corporation
*/
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <pthread.h>

View File

@ -2,6 +2,8 @@
* Copyright(c) 2022 Intel Corporation
*/
#include <stdlib.h>
#include <rte_string_fns.h>
#include <rte_malloc.h>
#include <rte_tailq.h>

View File

@ -5,6 +5,7 @@
#include <rte_string_fns.h>
#include <ethdev_pci.h>
#include <ctype.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -4,6 +4,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <rte_eal.h>

View File

@ -3,6 +3,8 @@
* All rights reserved.
*/
#include <stdlib.h>
#include <rte_mbuf.h>
#include <ethdev_driver.h>
#include <ethdev_vdev.h>

View File

@ -2,6 +2,7 @@
* Copyright(c) 2017 Cavium, Inc
*/
#include <errno.h>
#include <string.h>
#include "octeontx_bgx.h"

View File

@ -6,6 +6,7 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

View File

@ -2,6 +2,8 @@
* Copyright(C) 2021 Marvell.
*/
#include <errno.h>
#include <rte_common.h>
#include <rte_cycles.h>
#include "otx_ep_common.h"

View File

@ -4,6 +4,7 @@
* All rights reserved.
*/
#include <stdlib.h>
#include <time.h>
#include <pcap.h>

View File

@ -2,6 +2,8 @@
* Copyright(c) 2010-2015 Intel Corporation
*/
#include <stdlib.h>
#include "rte_eth_ring.h"
#include <rte_mbuf.h>
#include <ethdev_driver.h>

View File

@ -30,6 +30,7 @@
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <sys/uio.h>
#include <unistd.h>
#include <arpa/inet.h>

View File

@ -2,6 +2,7 @@
* Copyright(c) 2016 IGEL Co., Ltd.
* Copyright(c) 2016-2018 Intel Corporation
*/
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <stdbool.h>

View File

@ -5,6 +5,7 @@
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>

View File

@ -7,6 +7,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <rte_memory.h>

View File

@ -8,6 +8,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <sys/un.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>

View File

@ -6,6 +6,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <rte_memory.h>

View File

@ -4,6 +4,7 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>

View File

@ -3,6 +3,7 @@
*/
#include <stdint.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>

View File

@ -5,6 +5,8 @@
#ifndef _OSDEP_RTE_GENERIC_H
#define _OSDEP_RTE_GENERIC_H
#include <stdlib.h>
#include <rte_common.h>
#include <rte_cycles.h>
#include <rte_spinlock.h>

View File

@ -5,6 +5,7 @@
#include <assert.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <errno.h>
#include <stdint.h>
#include <inttypes.h>

View File

@ -2,6 +2,8 @@
* Copyright 2017 NXP
*/
#include <stdlib.h>
#include <rte_common.h>
#include <rte_mbuf.h>
#include <rte_malloc.h>

View File

@ -3,6 +3,7 @@
*/
#include <stdint.h>
#include <stdlib.h>
#include <inttypes.h>
#include <unistd.h>
#include <signal.h>

View File

@ -3,6 +3,7 @@
*/
#include <stdint.h>
#include <stdlib.h>
#include <getopt.h>
#include <signal.h>
#include <stdbool.h>

View File

@ -2,6 +2,8 @@
* Copyright(c) 2015 Intel Corporation
*/
#include <stdlib.h>
#include <cmdline_parse.h>
#include <cmdline_parse_num.h>
#include <cmdline_parse_string.h>

View File

@ -2,9 +2,11 @@
* Copyright(c) 2016-2017 Intel Corporation
*/
#include <ctype.h>
#include <getopt.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sched.h>

View File

@ -4,6 +4,8 @@
* Copyright 2017 Cavium, Inc.
*/
#include <stdlib.h>
#include "pipeline_common.h"
static __rte_always_inline int

View File

@ -4,6 +4,8 @@
* Copyright 2017 Cavium, Inc.
*/
#include <stdlib.h>
#include "pipeline_common.h"
static __rte_always_inline void

View File

@ -2,7 +2,9 @@
* Copyright(c) 2018 Intel Corporation
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <rte_string_fns.h>

View File

@ -5,6 +5,7 @@
#include <string.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef USE_JANSSON
#include <jansson.h>

View File

@ -5,6 +5,7 @@
#include <sys/stat.h>
#include <getopt.h>
#include <dirent.h>
#include <stdlib.h>
#include <rte_cryptodev.h>
#include <rte_malloc.h>

View File

@ -3,6 +3,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>

View File

@ -5,6 +5,7 @@
#ifndef __INCLUDE_PARSER_H__
#define __INCLUDE_PARSER_H__
#include <ctype.h>
#include <stdint.h>
#include <rte_ip.h>

View File

@ -1,6 +1,8 @@
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright (C) 2020 Marvell International Ltd.
*/
#include <stdlib.h>
#include <rte_bitmap.h>
#include <rte_ethdev.h>
#include <rte_eventdev.h>

View File

@ -3,6 +3,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <rte_common.h>
#include <rte_flow.h>

View File

@ -1,6 +1,7 @@
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2016 Intel Corporation
*/
#include <stdlib.h>
#include <arpa/inet.h>
#include <sys/socket.h>

View File

@ -5,6 +5,7 @@
#ifndef __PARSER_H
#define __PARSER_H
#include <ctype.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/ip.h>

View File

@ -5,6 +5,7 @@
/*
* Routing Table (RT)
*/
#include <stdlib.h>
#include <sys/types.h>
#include <rte_lpm.h>
#include <rte_lpm6.h>

View File

@ -5,6 +5,7 @@
/*
* Security Associations
*/
#include <stdlib.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/ip.h>

View File

@ -2,7 +2,9 @@
* Copyright(c) 2010-2018 Intel Corporation
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <rte_common.h>

View File

@ -4,6 +4,7 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/queue.h>
#include <errno.h>

View File

@ -16,6 +16,7 @@
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <inttypes.h>
#include <stdarg.h>
#include <errno.h>

View File

@ -3,6 +3,7 @@
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <unistd.h>
#include <signal.h>

View File

@ -2,6 +2,7 @@
* Copyright(c) 2010-2016 Intel Corporation
*/
#include <stdlib.h>
#include <signal.h>
#include <getopt.h>

View File

@ -2,6 +2,7 @@
* Copyright(c) 2020 Intel Corporation
*/
#include <ctype.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>

View File

@ -3,6 +3,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>

View File

@ -9,6 +9,7 @@
*/
#include <stdint.h>
#include <stdlib.h>
#include <inttypes.h>
#include <rte_eal.h>
#include <rte_ethdev.h>

View File

@ -3,6 +3,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <rte_common.h>

View File

@ -3,6 +3,7 @@
*/
#include <stdint.h>
#include <stdlib.h>
#include <memory.h>
#include <rte_log.h>

Some files were not shown because too many files have changed in this diff Show More