Skip to contentSkip to conversation

i40e: Add missing header

PATCH In review Andy Shevchenko 2 participants 2 messages Jan 24 – Jan 26

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

PATCH 1/1 i40e: Add missing 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.

---
 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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 47 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Andy Shevchenko
Sent: Saturday, January 24, 2026 1:57 AM
To: Andy Shevchenko <[email protected]>; intel-wired- [email protected]; [email protected]; linux- [email protected]
Cc: Nguyen, Anthony L <[email protected]>; Kitszel, Przemyslaw <[email protected]>; Andrew Lunn <[email protected]>; David S. Miller <[email protected]>; Eric Dumazet <[email protected]>; Jakub Kicinski <[email protected]>; Paolo Abeni <[email protected]>
Subject: [Intel-wired-lan] [PATCH net-next v1 1/1] i40e: Add missing 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.

---
 drivers/net/ethernet/intel/i40e/i40e_hmc.h | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/intel/i40e/i40e_hmc.h +2 -1
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"
--
Quoted 1 line

2.50.1