[dpdk-dev] [PATCH 3/4] raw/cnxk_bphy: add headers that provide used APIs

Tomasz Duszynski tduszynski at marvell.com
Tue Nov 2 19:41:33 CET 2021


Generally it is good practice to include all headers that provide APIs
which are being used. This is especially true in situations where 3rd
party apps include our public headers and assume that all should work
out of the box.

Including all headers explicitly helps to achieve that.

Signed-off-by: Tomasz Duszynski <tduszynski at marvell.com>
---
 drivers/raw/cnxk_bphy/rte_pmd_bphy.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/raw/cnxk_bphy/rte_pmd_bphy.h b/drivers/raw/cnxk_bphy/rte_pmd_bphy.h
index 726ff412a2..cc2372f719 100644
--- a/drivers/raw/cnxk_bphy/rte_pmd_bphy.h
+++ b/drivers/raw/cnxk_bphy/rte_pmd_bphy.h
@@ -5,7 +5,11 @@
 #ifndef _CNXK_BPHY_H_
 #define _CNXK_BPHY_H_
 
+#include <stdint.h>
+
+#include <rte_common.h>
 #include <rte_dev.h>
+#include <rte_malloc.h>
 #include <rte_memcpy.h>
 #include <rte_rawdev.h>
 
-- 
2.25.1



More information about the dev mailing list