Skip to contentSkip to conversation

powerpc/pseries: include linux/types.h in asm/hvcall.h

PATCH Applied Michal Suchanek 4 participants 4 messages Jan 15, 2018 – Jan 17, 2018 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/pseries: include linux/types.h in asm/hvcall.h

Commit 6e032b350cd1 ("powerpc/powernv: Check device-tree for RFI flush settings") uses u64 in asm/hvcall.h without including linux/types.h

This breaks hvcall.h users that do not include the header themselves.

Fixes 6e032b350cd1 ("powerpc/powernv: Check device-tree for RFI flush

settings")

---
 arch/powerpc/include/asm/hvcall.h | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/include/asm/hvcall.h +1 -0
index f0461618bf7b..eca3f9c68907 100644
@@ -353,6 +353,7 @@
 #define PROC_TABLE_GTSE		0x01
 
 #ifndef __ASSEMBLY__
+#include <linux/types.h>
 
 /**
  * plpar_hcall_norets: - Make a pseries hypervisor call with no return arguments
Signature · 1 line
2.13.6
#1 lore raw
Quoted 5 lines · Michal Suchanek

Commit 6e032b350cd1 ("powerpc/powernv: Check device-tree for RFI flush settings") uses u64 in asm/hvcall.h without including linux/types.h

This breaks hvcall.h users that do not include the header themselves.

Quoted 7 lines
Fixes 6e032b350cd1 ("powerpc/powernv: Check device-tree for RFI flush

settings")

---
 arch/powerpc/include/asm/hvcall.h | 1 +
 1 file changed, 1 insertion(+)

Thanks. None of my ~250 defconfig test builds hit this, what config are you using?

cheers

Quoted 14 lines
arch/powerpc/include/asm/hvcall.h +1 -0
index f0461618bf7b..eca3f9c68907 100644
@@ -353,6 +353,7 @@
 #define PROC_TABLE_GTSE		0x01
 
 #ifndef __ASSEMBLY__
+#include <linux/types.h>
 
 /**
  * plpar_hcall_norets: - Make a pseries hypervisor call with no return arguments
Signature · 1 line
2.13.6
#2 lore raw
Quoted 10 lines · Michael Ellerman
Quoted 8 lines · Michal Suchanek

Commit 6e032b350cd1 ("powerpc/powernv: Check device-tree for RFI flush settings") uses u64 in asm/hvcall.h without including linux/types.h

This breaks hvcall.h users that do not include the header themselves.

Fixes 6e032b350cd1 ("powerpc/powernv: Check device-tree for RFI flush

settings")

Quoted 7 lines
Quoted 4 lines
---
 arch/powerpc/include/asm/hvcall.h | 1 +
 1 file changed, 1 insertion(+)

Thanks. None of my ~250 defconfig test builds hit this, what config are you using?

I also hit this, but only when I backported the change to RH's 3.10 kernel. I assumed something since then had added an indirect include.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
#3 lore raw
In reply to Michal Suchanek
Quoted 9 lines · Michal Suchanek

Commit 6e032b350cd1 ("powerpc/powernv: Check device-tree for RFI flush settings") uses u64 in asm/hvcall.h without including linux/types.h

This breaks hvcall.h users that do not include the header themselves.

Fixes 6e032b350cd1 ("powerpc/powernv: Check device-tree for RFI flush

settings")

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/1b689a95ce7427075f9ac9fb4aea1a

cheers