[dpdk-dev] [PATCH 1/2] net/sfc/base: improve headers independence

Andrew Rybchenko arybchenko at solarflare.com
Tue Jul 21 10:57:54 CEST 2020


efx_types.h uses defines from efx_annote.h, but does not include the
header. As the result if efx_types.h is included by a driver first,
build fails.

Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
---
 drivers/net/sfc/base/efx_types.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/sfc/base/efx_types.h b/drivers/net/sfc/base/efx_types.h
index 4fddbbcdc4..ae8a1031df 100644
--- a/drivers/net/sfc/base/efx_types.h
+++ b/drivers/net/sfc/base/efx_types.h
@@ -10,6 +10,7 @@
 #define	_SYS_EFX_TYPES_H
 
 #include "efsys.h"
+#include "efx_annote.h"
 
 #ifdef	__cplusplus
 extern "C" {
-- 
2.17.1



More information about the dev mailing list