Arnd Bergmann
7cd73d9085
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-10 16:35:45 +02:00
..
2023-12-20 17:01:56 +01:00
2023-06-16 18:24:13 -04:00
2023-02-14 14:23:06 -05:00
2021-10-27 16:53:47 -04:00
2023-03-30 15:57:51 -04:00
2023-03-30 15:57:51 -04:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2024-03-26 18:20:13 -04:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-06-19 13:19:33 -07:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-07-25 11:55:50 -04:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-06-12 08:04:05 -06:00
2021-04-19 13:20:31 -04:00
2020-03-27 14:42:51 -04:00
2023-06-12 08:04:05 -06:00
2024-02-23 09:25:27 +01:00
2024-03-26 18:19:12 -04:00
2023-12-03 07:33:09 +01:00
2023-04-11 12:09:08 -04:00
2023-04-11 12:09:08 -04:00
2023-06-12 08:04:05 -06:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-06-16 18:24:13 -04:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:07 -05:00
2023-06-05 10:57:40 -06:00
2024-04-10 16:35:45 +02:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2024-03-26 18:20:13 -04:00
2024-02-23 09:25:27 +01:00
2024-03-26 18:20:13 -04:00
2023-04-11 12:01:01 -04:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2023-04-11 12:09:08 -04:00
2024-03-26 18:20:13 -04:00
2023-04-11 12:01:01 -04:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2024-03-26 18:20:13 -04:00
2024-04-03 15:28:26 +02:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2024-03-26 18:20:13 -04:00
2023-02-14 14:23:07 -05:00
2024-04-03 15:28:37 +02:00
2023-03-16 13:37:06 -04:00
2023-03-16 13:37:06 -04:00
2023-04-11 12:01:01 -04:00
2023-04-11 12:09:08 -04:00
2023-02-14 14:23:08 -05:00
2024-02-23 09:25:27 +01:00
2023-04-11 12:01:01 -04:00
2023-06-30 12:16:00 -07:00
2023-02-14 14:23:06 -05:00
2023-06-30 12:16:00 -07:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-04-11 12:09:08 -04:00
2023-12-08 08:52:16 +01:00
2023-02-14 14:23:06 -05:00
2023-06-28 10:43:04 -07:00
2024-03-26 18:20:13 -04:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2024-03-26 18:19:12 -04:00
2024-03-26 18:20:13 -04:00
2023-04-11 12:09:08 -04:00
2023-06-16 18:24:13 -04:00
2023-05-31 09:50:02 -06:00
2021-06-04 12:07:24 -04:00
2023-09-20 13:48:06 -04:00
2022-07-14 12:14:31 -06:00
2024-03-26 18:19:41 -04:00
2023-06-16 18:24:14 -04:00
2024-01-20 11:51:45 +01:00
2022-08-02 14:38:59 -07:00
2023-06-05 10:56:46 -06:00
2024-04-03 15:28:21 +02:00
2023-07-27 00:13:29 -07:00
2023-08-15 09:40:26 -07:00
2018-10-18 09:36:35 -07:00
2023-07-27 00:13:30 -07:00
2023-07-27 00:13:30 -07:00
2020-05-13 12:02:23 -07:00
2023-07-27 00:13:29 -07:00
2018-05-30 15:33:32 -06:00
2024-03-26 18:19:17 -04:00
2023-09-08 13:16:40 -07:00
2023-08-17 21:11:31 -07:00
2023-06-30 15:43:50 -07:00
2023-06-23 09:33:16 -07:00
2024-01-25 15:35:46 -08:00
2023-07-27 00:13:29 -07:00
2023-08-15 09:40:27 -07:00
2022-08-02 17:14:31 -06:00
2023-05-31 09:50:02 -06:00
2024-04-03 15:28:22 +02:00
2023-06-27 21:24:18 -07:00
2023-08-15 09:40:26 -07:00
2023-07-27 00:13:29 -07:00