]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
powerpc/pseries: Define __u{8,32} types in papr_hvpipe_hdr struct
authorHaren Myneni <haren@linux.ibm.com>
Mon, 22 Sep 2025 09:11:08 +0000 (02:11 -0700)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 23 Sep 2025 09:00:48 +0000 (14:30 +0530)
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")
Reported-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250922091108.1483970-1-haren@linux.ibm.com
arch/powerpc/include/uapi/asm/papr-hvpipe.h

index 459a7bb0e6c9c67fdbb37b61a636f692089a211e..f8794139d06a4a1f9a5f5d91ddcaa95bf9b7692a 100644 (file)
  *        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];
 };
 
 /*