Arnd Bergmann 58638e3b48 dm integrity: fix out-of-range warning
[ Upstream commit 8e91c2342351e0f5ef6c0a704384a7f6fc70c3b2 ]

Depending on the value of CONFIG_HZ, clang complains about a pointless
comparison:

drivers/md/dm-integrity.c:4085:12: error: result of comparison of
                        constant 42949672950 with expression of type
                        'unsigned int' is always false
                        [-Werror,-Wtautological-constant-out-of-range-compare]
                        if (val >= (uint64_t)UINT_MAX * 1000 / HZ) {

As the check remains useful for other configurations, shut up the
warning by adding a second type cast to uint64_t.

Fixes: 468dfca38b1a ("dm integrity: add a bitmap mode")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Mikulas Patocka <mpatocka@redhat.com>
Reviewed-by: Justin Stitt <justinstitt@google.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-10 16:28:23 +02:00
..
2024-03-26 18:21:02 -04:00
2024-03-26 18:21:02 -04:00
2024-03-26 18:21:02 -04:00
2024-03-26 18:21:02 -04:00
2024-03-26 18:21:02 -04:00
2023-07-19 16:22:07 +02:00
2024-03-26 18:21:02 -04:00
2024-03-26 18:21:02 -04:00
2024-03-26 18:21:02 -04:00
2023-07-19 16:22:07 +02:00
2024-03-26 18:21:02 -04:00
2024-03-26 18:21:02 -04:00
2023-04-13 16:55:17 +02:00
2022-08-02 14:38:59 -07:00
2022-03-08 15:16:54 -08:00