ANDROID: fuse: fix __u32 type usage warning

A recently introduced usage of __u32 in fuse.h uapi header generates the
following warning for !__KERNEL__.

usr/include/linux/fuse.h:967: found __[us]{8,16,32,64} type without #include <linux/types.h>

This patch fixes such warning but perhaps upstream header needs to
always include linux/types.h instead.

Fixes: 37314b838d ("ANDROID: fuse/passthrough: API V2 with __u32 open argument")
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Change-Id: Ibc2b84b4be4740389e8c73e3af75c993d95cbda9
This commit is contained in:
Carlos Llamas 2022-03-18 00:56:50 +00:00
parent 185610e38e
commit a131e0b4b9

View File

@ -968,7 +968,7 @@ struct fuse_notify_retrieve_in {
#define FUSE_DEV_IOC_CLONE _IOR(FUSE_DEV_IOC_MAGIC, 0, uint32_t)
/* 127 is reserved for the V1 interface implementation in Android (deprecated) */
/* 126 is reserved for the V2 interface implementation in Android */
#define FUSE_DEV_IOC_PASSTHROUGH_OPEN _IOW(FUSE_DEV_IOC_MAGIC, 126, __u32)
#define FUSE_DEV_IOC_PASSTHROUGH_OPEN _IOW(FUSE_DEV_IOC_MAGIC, 126, uint32_t)
struct fuse_lseek_in {
uint64_t fh;