Re: [PATCH] fuse: ioctl: fix comparison in fuse_setup_measure_verity()
From: Ali Nasrollahi
Date: Tue Aug 18 2026 - 12:07:28 EST
On 26/08/18 10:53AM, Miklos Szeredi wrote:
> 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?
Well, I wasn't sure why it was there in the first place, so I didn't want
to change the logic. So I'll send the v2 considering your comment.
Thanks,
Ali