summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorAli Nasrollahi <a.nasrolahi01@gmail.com>2026-08-18 19:44:48 +0330
committerMiklos Szeredi <mszeredi@redhat.com>2026-09-02 09:36:07 +0200
commitd7185220821fe22525a0eff916c690a05690134b (patch)
tree5589bcf3ae8d048b81da8357566d91d1ac495022 /tools/lib/python
parentcee9395acd8043be0644b25c34bfa86623f2b935 (diff)
fuse: ioctl: remove unnecessary comparison in fuse_setup_measure_verity()
Clang reports a warning in fuse_setup_measure_verity() 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] This was first observed while building an x86_64 kernel with Clang and W=1. Since -Werror was enabled in my build, the warning caused the build to fail. The same warning can also be reproduced with the same build options using tinyconfig with FUSE enabled, so this is not specific to the kernel configuration used in the original build. The comparison is between the 16-bit digest_size and a size_t-sized constant. Since this comparison cannot be true, remove it. Signed-off-by: Ali Nasrollahi <A.Nasrolahi01@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions