Skip to contentSkip to conversation

powerpc/pseries: Define __u{8,32} types in papr_hvpipe_hdr struct

PATCH New Haren Myneni 1 participant 1 message Sep 22, 2025 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/pseries: Define __u{8,32} types in papr_hvpipe_hdr struct

Fix the the following build errors with CONFIG_UAPI_HEADER_TEST:

./usr/include/asm/papr-hvpipe.h:16:9: error: unknown type name 'u8'
16 | u8 version;
./usr/include/asm/papr-hvpipe.h:17:9: error: unknown type name 'u8'
17 | u8 reserved[3];
./usr/include/asm/papr-hvpipe.h:18:9: error: unknown type name 'u32'
18 | u32 flags;
./usr/include/asm/papr-hvpipe.h:19:9: error: unknown type name 'u8'
19 | u8 reserved2[40];

Fixes 043439ad1a23c ("powerpc/pseries: Define papr-hvpipe ioctl")
---
 arch/powerpc/include/uapi/asm/papr-hvpipe.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/powerpc/include/uapi/asm/papr-hvpipe.h +4 -4
index 459a7bb0e6c9..f8794139d06a 100644
@@ -13,10 +13,10 @@
  *        closed or the buffer has the payload.
  */
 struct papr_hvpipe_hdr {
-	u8 version;
-	u8 reserved[3];
-	u32 flags;
-	u8 reserved2[40];
+	__u8 version;
+	__u8 reserved[3];
+	__u32 flags;
+	__u8 reserved2[40];
 };
 
 /*
Signature · 1 line
2.50.1