summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue_types.h
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2026-05-29 18:12:55 -0700
committerJens Axboe <axboe@kernel.dk>2026-05-31 19:48:53 -0600
commit2e1b3f4c51ace14f67201bd2a92ca6312a3c3724 (patch)
tree8364182ec6571fbee68708054d7e91476b60f94b /include/linux/timerqueue_types.h
parent2957771379fa335103a4b539db57bb2271e12142 (diff)
rbd: check snap_count against RBD_MAX_SNAP_COUNT
snap_count is u32 but the comparison is against a SIZE_MAX-derived value (~2^61 on 64-bit), which clang flags as always false with -Wtautological-constant-out-of-range-compare. The proper check here should be that snap_count does not go over RBD_MAX_SNAP_COUNT. Assisted-by: Opencode:Big-pickle Signed-off-by: Rosen Penev <rosenp@gmail.com> Reviewed-by: Alex Elder <elder@riscstar.com> Link: https://patch.msgid.link/20260530011255.52916-1-rosenp@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/timerqueue_types.h')
0 files changed, 0 insertions, 0 deletions