Re: [PATCH] fuse: ioctl: fix comparison in fuse_setup_measure_verity()
From: Miklos Szeredi
Date: Tue Aug 18 2026 - 04:54:21 EST
On Thu, 13 Aug 2026 at 09:07, Ali Nasrollahi <a.nasrolahi01@xxxxxxxxx> 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