mirror of
https://github.com/torvalds/linux.git
synced 2026-05-03 22:12:32 -04:00
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: 043439ad1a ("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
34 lines
816 B
C
34 lines
816 B
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
#ifndef _UAPI_PAPR_HVPIPE_H_
|
|
#define _UAPI_PAPR_HVPIPE_H_
|
|
|
|
#include <linux/types.h>
|
|
#include <asm/ioctl.h>
|
|
#include <asm/papr-miscdev.h>
|
|
|
|
/*
|
|
* This header is included in payload between OS and the user
|
|
* space.
|
|
* flags: OS notifies the user space whether the hvpipe is
|
|
* closed or the buffer has the payload.
|
|
*/
|
|
struct papr_hvpipe_hdr {
|
|
__u8 version;
|
|
__u8 reserved[3];
|
|
__u32 flags;
|
|
__u8 reserved2[40];
|
|
};
|
|
|
|
/*
|
|
* ioctl for /dev/papr-hvpipe
|
|
*/
|
|
#define PAPR_HVPIPE_IOC_CREATE_HANDLE _IOW(PAPR_MISCDEV_IOC_ID, 9, __u32)
|
|
|
|
/*
|
|
* hvpipe_hdr flags used for read()
|
|
*/
|
|
#define HVPIPE_MSG_AVAILABLE 0x01 /* Payload is available */
|
|
#define HVPIPE_LOST_CONNECTION 0x02 /* Pipe connection is closed/unavailable */
|
|
|
|
#endif /* _UAPI_PAPR_HVPIPE_H_ */
|