Skip to contentSkip to conversation

i40e: Add missing wordpart.h header

PATCH New Andy Shevchenko 1 participant 1 message Mar 2

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 i40e: Add missing wordpart.h header

When cleaning up another header I have met this build error:

drivers/net/ethernet/intel/i40e/i40e_hmc.h:105:22: error: implicit declaration of function 'upper_32_bits' [-Wimplicit-function-declaration]
105 | val1 = (u32)(upper_32_bits(pa)); \

This is due to missing header, add it to fix the possible issue.

---

v2: elaborated the header in the Subject (Paul), added tag (Paul)

 drivers/net/ethernet/intel/i40e/i40e_hmc.h | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/intel/i40e/i40e_hmc.h +2 -0
index 480e3a883cc7..967711405919 100644
@@ -4,6 +4,8 @@
 #ifndef _I40E_HMC_H_
 #define _I40E_HMC_H_
 
+#include <linux/wordpart.h>
+
 #include "i40e_alloc.h"
 #include "i40e_io.h"
 #include "i40e_register.h"
Signature · 1 line
2.50.1