Arnd Bergmann
e78f604693
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: 468dfca38b ("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-13 12:51:33 +02:00
..
2024-03-26 18:22:16 -04:00
2023-09-23 10:59:52 +02:00
2024-02-23 08:25:11 +01:00
2024-04-13 12:51:28 +02:00
2024-02-23 08:25:06 +01:00
2024-04-13 12:51:25 +02:00
2024-04-13 12:51:30 +02:00
2024-01-25 14:34:26 -08:00
2024-03-26 18:22:15 -04:00
2024-02-23 08:24:48 +01:00
2024-04-13 12:51:24 +02:00
2023-11-28 16:50:13 +00:00
2023-05-17 11:35:31 +02:00
2023-12-08 08:44:28 +01:00
2024-04-13 12:51:23 +02:00
2023-09-23 10:59:54 +02:00
2024-03-26 18:22:19 -04:00
2023-08-30 16:27:28 +02:00
2024-01-25 14:34:21 -08:00
2023-07-27 08:37:20 +02:00
2024-03-26 18:22:13 -04:00
2024-04-13 12:51:31 +02:00
2023-05-17 11:35:46 +02:00
2023-09-23 10:59:37 +02:00
2024-03-06 14:36:10 +00:00
2024-04-13 12:51:27 +02:00
2024-03-26 18:22:12 -04:00
2023-06-28 10:18:36 +02:00
2024-04-13 12:51:26 +02:00
2024-01-25 14:34:21 -08:00
2024-02-23 08:25:10 +01:00
2024-02-23 08:25:02 +01:00
2023-06-09 10:29:01 +02:00
2024-02-23 08:25:11 +01:00
2024-03-26 18:22:23 -04:00
2024-03-26 18:22:13 -04:00
2024-01-08 11:29:45 +01:00
2024-03-26 18:22:15 -04:00
2024-02-23 08:25:13 +01:00
2023-08-16 18:19:23 +02:00
2024-02-23 08:25:02 +01:00
2023-05-17 11:35:50 +02:00
2023-07-27 08:37:23 +02:00
2023-11-28 16:50:19 +00:00
2024-04-13 12:51:33 +02:00
2024-04-13 12:51:22 +02:00
2023-07-27 08:37:14 +02:00
2023-07-27 08:37:10 +02:00
2023-05-30 12:44:03 +01:00
2024-03-26 18:22:21 -04:00
2024-02-23 08:25:11 +01:00
2024-04-13 12:51:31 +02:00
2024-04-13 12:51:23 +02:00
2024-04-13 12:51:33 +02:00
2023-06-28 10:18:41 +02:00
2023-09-23 10:59:55 +02:00
2023-11-20 10:30:12 +01:00
2024-03-01 13:13:34 +01:00
2024-04-13 12:51:26 +02:00
2024-02-23 08:25:15 +01:00
2023-09-23 10:59:40 +02:00
2023-10-10 21:46:39 +02:00
2024-01-25 14:34:21 -08:00
2024-04-13 12:51:25 +02:00
2023-11-20 10:30:14 +01:00
2023-09-23 11:00:03 +02:00
2024-02-23 08:25:06 +01:00
2024-03-01 13:13:35 +01:00
2023-12-20 15:41:21 +01:00
2024-02-23 08:24:54 +01:00
2024-03-06 14:36:09 +00:00
2023-07-27 08:37:06 +02:00
2023-11-28 16:50:16 +00:00
2023-11-20 10:30:15 +01:00
2024-03-01 13:13:34 +01:00
2023-05-17 11:36:01 +02:00
2024-01-25 14:34:20 -08:00
2024-02-23 08:24:48 +01:00
2024-03-26 18:22:24 -04:00
2024-04-13 12:51:27 +02:00
2024-04-13 12:51:32 +02:00
2024-04-13 12:51:26 +02:00
2024-04-13 12:51:27 +02:00
2023-12-20 15:41:24 +01:00
2024-03-26 18:22:25 -04:00
2023-05-17 11:35:49 +02:00
2023-06-09 10:29:01 +02:00
2024-04-13 12:51:28 +02:00
2024-03-01 13:13:33 +01:00
2023-11-20 10:30:09 +01:00
2023-04-05 11:16:39 +02:00
2024-04-13 12:51:31 +02:00
2024-01-25 14:34:21 -08:00
2024-04-13 12:51:32 +02:00
2024-04-13 12:51:26 +02:00
2024-02-23 08:25:08 +01:00
2024-03-26 18:22:23 -04:00
2023-11-08 11:23:34 +01:00
2023-07-27 08:37:19 +02:00
2024-03-26 18:22:24 -04:00
2024-04-13 12:51:29 +02:00