From: Ferruh Yigit Date: Fri, 26 Mar 2021 16:46:15 +0000 (+0000) Subject: drivers: add missing includes X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=bd063651d5741de698e93757ea330b7c675d796c;p=dpdk.git drivers: add missing includes These headers are used but not included explicitly, including them. "arpa/inet.h" is included for 'htons' and friends. "netinet/in.h" is included for 'IPPROTO_IP'. Signed-off-by: Ferruh Yigit Acked-by: Andrew Rybchenko Acked-by: Hemant Agrawal Acked-by: Rasesh Mody --- diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index a4c4b094bb..43363ba6ba 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -20,6 +20,7 @@ #endif #include #include +#include #include #include #include diff --git a/drivers/event/octeontx/ssovf_worker.h b/drivers/event/octeontx/ssovf_worker.h index 6b2fb9b817..4354f007d7 100644 --- a/drivers/event/octeontx/ssovf_worker.h +++ b/drivers/event/octeontx/ssovf_worker.h @@ -2,6 +2,8 @@ * Copyright(c) 2017 Cavium, Inc */ +#include + #include #include diff --git a/drivers/net/bnx2x/bnx2x.c b/drivers/net/bnx2x/bnx2x.c index 8eb6d609bd..654878d9de 100644 --- a/drivers/net/bnx2x/bnx2x.c +++ b/drivers/net/bnx2x/bnx2x.c @@ -23,6 +23,7 @@ #include #include +#include #include #include #include diff --git a/drivers/net/igc/igc_ethdev.h b/drivers/net/igc/igc_ethdev.h index 6f658a0e83..7b6c209df3 100644 --- a/drivers/net/igc/igc_ethdev.h +++ b/drivers/net/igc/igc_ethdev.h @@ -6,6 +6,7 @@ #define _IGC_ETHDEV_H_ #include +#include #include "base/igc_osdep.h" #include "base/igc_hw.h" diff --git a/drivers/net/igc/igc_txrx.c b/drivers/net/igc/igc_txrx.c index f092709c02..8eaed728cc 100644 --- a/drivers/net/igc/igc_txrx.c +++ b/drivers/net/igc/igc_txrx.c @@ -3,6 +3,7 @@ */ #include +#include #include #include #include diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c index 51e950413c..a7b7f15c16 100644 --- a/drivers/net/netvsc/hn_ethdev.c +++ b/drivers/net/netvsc/hn_ethdev.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include diff --git a/drivers/net/nfb/nfb_rx.h b/drivers/net/nfb/nfb_rx.h index 27a2888a75..c9708259af 100644 --- a/drivers/net/nfb/nfb_rx.h +++ b/drivers/net/nfb/nfb_rx.h @@ -11,6 +11,7 @@ #include #include +#include #include #define NFB_TIMESTAMP_FLAG (1 << 0) diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c index 28a5027315..ef50d088f3 100644 --- a/drivers/net/pcap/rte_eth_pcap.c +++ b/drivers/net/pcap/rte_eth_pcap.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include diff --git a/drivers/net/pfe/pfe_hal.c b/drivers/net/pfe/pfe_hal.c index 0d25ec0523..41d783dbff 100644 --- a/drivers/net/pfe/pfe_hal.c +++ b/drivers/net/pfe/pfe_hal.c @@ -2,6 +2,8 @@ * Copyright 2018-2019 NXP */ +#include + #include "pfe_logs.h" #include "pfe_mod.h" diff --git a/drivers/net/pfe/pfe_hif.c b/drivers/net/pfe/pfe_hif.c index be5b2ada16..c4a7154ba7 100644 --- a/drivers/net/pfe/pfe_hif.c +++ b/drivers/net/pfe/pfe_hif.c @@ -7,6 +7,7 @@ #include #include #include +#include static int pfe_hif_alloc_descr(struct pfe_hif *hif) diff --git a/drivers/net/sfc/sfc_tso.h b/drivers/net/sfc/sfc_tso.h index cfc09d1645..f081e856e1 100644 --- a/drivers/net/sfc/sfc_tso.h +++ b/drivers/net/sfc/sfc_tso.h @@ -10,6 +10,8 @@ #ifndef _SFC_TSO_H #define _SFC_TSO_H +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.h b/drivers/net/vmxnet3/vmxnet3_ethdev.h index 9d00f5d127..f93bb474b2 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.h +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.h @@ -6,6 +6,7 @@ #define _VMXNET3_ETHDEV_H_ #include +#include #define VMXNET3_MAX_MAC_ADDRS 1