Re: linux-next: build warning after merge of the vfs-brauner tree

From: Arnd Bergmann
Date: Tue May 28 2024 - 08:40:13 EST


On Tue, May 28, 2024, at 05:31, Stephen Rothwell wrote:
> From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
> Date: Tue, 28 May 2024 13:20:29 +1000
> Subject: [PATCH] fix up for "fs/xattr: add *at family syscalls"
>
> Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
> ---
> fs/xattr.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/fs/xattr.c b/fs/xattr.c
> index 8e712795ab80..d0d54ae2f9cb 100644
> --- a/fs/xattr.c
> +++ b/fs/xattr.c
> @@ -706,7 +706,8 @@ SYSCALL_DEFINE6(setxattrat, int, dfd, const char
> __user *, pathname, unsigned in
> if (error)
> return error;
>
> - return do_setxattrat(dfd, pathname, at_flags, name, (const void
> __user *)args.value,
> + return do_setxattrat(dfd, pathname, at_flags, name,
> + (const void __user *)(unsigned long)args.value,
> args.size, args.flags);
> }
>

We have a u64_to_user_ptr() helper to make this slightly
more readable.

Arnd