Re: [PATCH] fuse: ioctl: fix comparison in fuse_setup_measure_verity()

Miklos Szeredi <[email protected]>
Newsgroups dev.linux.lists.fuse-devel,org.kernel.vger.linux-kernel
Message-ID <CAJfpegv19MoYVsvGP4S4k1n5u5u=za3yNrY4Z7wULHwLcPJ42g@mail.gmail.com>
On Thu, 13 Aug 2026 at 09:07, Ali Nasrollahi <[email protected]> wrote:
>
> Clang reports a warning in fuse_setup_measure_verity() in
> fs/fuse/ioctl.c when comparing the `__u16 digest_size` with SIZE_MAX
> minus the size of `struct fsverity_digest`:
>
>         warning: result of comparison of constant 18446744073709551611
>         with expression of type '__u16' (aka 'unsigned short') is always
>         false [-Wtautological-constant-out-of-range-compare]

The warning is right: that condition is never going to succeed.  So
just remove it?

Thanks,
Miklos
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.