From: David Sterba Date: Mon, 26 Mar 2018 16:29:41 +0000 (+0200) Subject: btrfs: user proper type for btrfs_mask_flags flags X-Git-Tag: v4.17-rc1~137^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=38e82de8ccd1878fb5f8371b8a6f455a6bbd0325;p=thirdparty%2Fkernel%2Flinux.git btrfs: user proper type for btrfs_mask_flags flags All users pass a local unsigned int and not the __uXX types that are supposed to be used for userspace interfaces. Signed-off-by: David Sterba --- diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 8c3ff75cbdd4b..ac85e07f567b5 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -106,7 +106,7 @@ static int btrfs_clone(struct inode *src, struct inode *inode, int no_time_update); /* Mask out flags that are inappropriate for the given type of inode. */ -static inline __u32 btrfs_mask_flags(umode_t mode, __u32 flags) +static unsigned int btrfs_mask_flags(umode_t mode, unsigned int flags) { if (S_ISDIR(mode)) return flags;