lib: add missing include dependencies
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Thu, 8 Sep 2016 12:25:07 +0000 (14:25 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 13 Sep 2016 13:35:28 +0000 (15:35 +0200)
commitf04519d8092ee582265506fedaf3443ee439f9bf
tree09a69a7c48402ee2a55a0a5bd786cd869c15e79f
parent79d6f5fc5858743b654650d8b8cf4efee55d1ae8
lib: add missing include dependencies

Exported header files for use by applications should be self sufficient and
allow out of order inclusion. Moreover, they must include all the system
headers they need for types and macros.

This commit prevents the following errors:

 error: `RTE_MAX_LCORE' undeclared here (not in a function)
 error: `RTE_LPM_VALID_EXT_ENTRY_BITMASK' undeclared
  (first use in this function)
 error: #error "Unsupported cache line size"
 error: `asm' undeclared (first use in this function)
 error: implicit declaration of function `[...]'
 error: unknown type name `[...]'
 error: field `mac_addr' has incomplete type
 error: `CHAR_BIT' undeclared here (not in a function)
 error: `struct [...]' declared inside parameter list
 error: unknown type name `uint8_t'

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
35 files changed:
lib/librte_cfgfile/rte_cfgfile.h
lib/librte_cmdline/cmdline.h
lib/librte_cmdline/cmdline_parse_portlist.h
lib/librte_cmdline/cmdline_socket.h
lib/librte_eal/common/include/arch/arm/rte_byteorder.h
lib/librte_eal/common/include/arch/arm/rte_prefetch_32.h
lib/librte_eal/common/include/arch/arm/rte_prefetch_64.h
lib/librte_eal/common/include/arch/arm/rte_vect.h
lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h
lib/librte_eal/common/include/arch/ppc_64/rte_byteorder.h
lib/librte_eal/common/include/arch/ppc_64/rte_prefetch.h
lib/librte_eal/common/include/arch/x86/rte_atomic.h
lib/librte_eal/common/include/arch/x86/rte_atomic_32.h
lib/librte_eal/common/include/arch/x86/rte_atomic_64.h
lib/librte_eal/common/include/arch/x86/rte_byteorder.h
lib/librte_eal/common/include/arch/x86/rte_byteorder_32.h
lib/librte_eal/common/include/arch/x86/rte_byteorder_64.h
lib/librte_eal/common/include/arch/x86/rte_prefetch.h
lib/librte_eal/common/include/arch/x86/rte_rtm.h
lib/librte_eal/common/include/arch/x86/rte_vect.h
lib/librte_eal/common/include/generic/rte_atomic.h
lib/librte_eal/common/include/generic/rte_byteorder.h
lib/librte_eal/common/include/rte_eal.h
lib/librte_eal/common/include/rte_memory.h
lib/librte_eal/common/include/rte_time.h
lib/librte_eal/common/include/rte_version.h
lib/librte_ether/rte_dev_info.h
lib/librte_ether/rte_eth_ctrl.h
lib/librte_lpm/rte_lpm_neon.h
lib/librte_lpm/rte_lpm_sse.h
lib/librte_pdump/rte_pdump.h
lib/librte_reorder/rte_reorder.h
lib/librte_sched/rte_bitmap.h
lib/librte_sched/rte_reciprocal.h
lib/librte_sched/rte_sched_common.h