Jean-Philippe Brucker
0ee1472547
mm/util: Swap kmemdup_array() arguments
...
GCC 14.1 complains about the argument usage of kmemdup_array():
drivers/soc/tegra/fuse/fuse-tegra.c:130:65: error: 'kmemdup_array' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
130 | fuse->lookups = kmemdup_array(fuse->soc->lookups, sizeof(*fuse->lookups),
| ^
drivers/soc/tegra/fuse/fuse-tegra.c:130:65: note: earlier argument should specify number of elements, later size of each element
The annotation introduced by commit 7d78a77733 ("string: Add
additional __realloc_size() annotations for "dup" helpers") lets the
compiler think that kmemdup_array() follows the same format as calloc(),
with the number of elements preceding the size of one element. So we
could simply swap the arguments to __realloc_size() to get rid of that
warning, but it seems cleaner to instead have kmemdup_array() follow the
same format as krealloc_array(), memdup_array_user(), calloc() etc.
Fixes: 7d78a77733 ("string: Add additional __realloc_size() annotations for "dup" helpers")
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org >
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com >
Link: https://lore.kernel.org/r/20240606144608.97817-2-jean-philippe@linaro.org
Signed-off-by: Kees Cook <kees@kernel.org >
2024-06-06 08:55:20 -07:00
..
2024-04-18 12:09:14 +01:00
2024-04-05 16:49:14 +02:00
2024-03-19 16:11:42 +01:00
2024-04-25 14:41:18 +05:30
2024-05-15 10:02:36 -07:00
2024-04-23 15:37:20 +08:00
2024-03-27 10:25:54 +00:00
2024-05-14 15:07:07 -07:00
2024-05-03 11:48:56 +01:00
2024-04-15 08:10:26 -06:00
2024-03-25 17:38:29 +01:00
2024-05-22 12:26:46 -07:00
2024-05-24 13:27:07 +01:00
2024-05-16 08:56:49 -07:00
2024-03-21 15:09:29 -07:00
2024-04-24 11:06:26 -07:00
2024-04-25 20:55:49 -07:00
2024-04-26 13:13:16 +05:30
2024-03-29 00:30:16 +05:30
2024-05-22 12:26:46 -07:00
2024-04-01 12:29:44 +02:00
2024-04-18 18:27:39 -07:00
2024-04-02 10:47:43 +08:00
2024-05-23 13:39:42 -07:00
2024-04-30 10:44:53 -06:00
2024-05-23 12:04:36 -07:00
2024-04-23 12:16:55 +02:00
2024-05-04 18:26:50 +05:30
2024-05-03 11:11:33 +09:00
2024-03-12 17:33:41 +02:00
2024-05-06 09:07:22 -04:00
2024-05-10 10:36:31 +01:00
2024-04-26 12:07:23 +02:00
2024-05-14 15:07:07 -07:00
2024-03-08 15:26:46 -06:00
2024-05-26 14:40:39 -07:00
2024-04-26 19:35:38 +02:00
2024-04-26 10:33:05 +02:00
2024-04-24 12:08:01 +02:00
2024-04-18 18:29:50 +01:00
2024-05-02 20:35:57 +02:00
2024-05-10 15:43:31 +01:00
2024-05-07 07:29:42 -06:00
2024-04-01 10:49:28 +01:00
2024-05-21 15:29:01 -07:00
2024-05-21 13:02:56 -07:00
2024-05-27 09:16:22 -06:00
2024-04-17 08:44:03 -06:00
2024-05-30 15:03:52 -06:00
2024-04-14 22:00:43 +09:00
2024-04-24 16:01:10 -07:00
2024-03-11 15:37:23 -07:00
2024-04-24 09:47:49 -07:00
2024-05-19 09:21:03 -07:00
2024-04-25 20:55:59 -07:00
2024-04-11 21:37:48 -04:00
2024-04-29 16:28:07 -07:00
2024-05-21 09:51:42 -07:00
2024-04-04 10:40:27 +02:00
2024-04-16 12:10:42 -10:00
2024-03-28 15:35:38 -07:00
2024-05-08 17:29:22 -04:00
2024-04-09 22:06:00 -07:00
2024-04-25 20:55:57 -07:00
2024-05-09 09:25:08 -07:00
2024-05-22 14:13:22 -07:00
2024-05-22 14:12:11 -07:00
2024-03-11 19:53:15 -07:00
2024-04-12 15:07:53 +08:00
2024-05-08 09:53:00 -07:00
2024-04-24 14:22:41 +01:00
2024-04-23 09:03:37 +09:00
2024-04-25 15:47:39 +02:00
2024-04-24 12:07:58 +02:00
2024-03-25 17:38:28 +01:00
2024-05-22 09:56:00 -07:00
2024-04-08 07:39:16 -10:00
2024-04-23 14:59:01 +10:00
2024-05-02 12:12:08 -07:00
2024-05-05 17:53:55 -07:00
2024-03-11 09:38:17 -07:00
2024-03-19 16:11:42 +01:00
2024-04-11 09:39:48 -04:00
2024-05-22 12:13:40 -07:00
2024-05-14 11:43:40 +02:00
2024-04-15 13:56:32 -03:00
2024-04-26 12:07:24 +02:00
2024-04-25 20:55:59 -07:00
2024-05-06 13:28:59 -07:00
2024-05-20 10:23:39 -07:00
2024-05-09 19:00:29 +02:00
2024-04-26 11:57:36 +02:00
2024-03-19 16:11:42 +01:00
2024-04-15 11:19:53 -07:00
2024-04-13 10:33:02 +02:00
2024-03-12 23:08:29 -07:00
2024-04-15 11:02:51 -07:00
2024-04-08 16:05:14 +02:00
2024-05-25 10:48:57 -07:00
2024-04-05 22:24:09 -07:00
2024-04-09 17:14:57 -04:00
2024-05-14 00:31:43 -07:00
2024-05-11 00:41:15 +00:00
2024-05-22 10:45:12 -07:00
2024-04-15 16:03:24 -04:00
2024-05-09 13:02:39 +02:00
2024-05-13 16:41:10 -07:00
2024-05-21 15:29:01 -07:00
2024-05-06 11:06:04 +09:00
2024-03-16 08:29:48 +01:00
2024-05-24 11:55:05 -07:00
2024-05-01 23:18:47 +09:00
2024-05-19 14:36:17 -07:00
2024-03-26 09:01:18 +01:00
2024-05-21 13:11:44 -07:00
2024-04-29 15:01:42 +01:00
2024-04-17 15:06:50 +02:00
2024-04-04 16:24:16 +02:00
2024-05-22 16:12:48 -07:00
2024-03-13 00:03:21 -07:00
2024-03-13 21:22:26 -04:00
2024-04-01 21:44:34 -07:00
2024-04-25 20:55:51 -07:00
2024-05-19 14:40:44 -07:00
2024-04-17 22:46:44 +02:00
2024-05-19 09:21:03 -07:00
2024-05-07 15:38:36 +02:00
2024-05-05 17:53:53 -07:00
2024-05-19 09:21:03 -07:00
2024-04-23 13:16:03 +02:00
2024-05-13 16:13:19 +02:00
2024-04-19 10:16:32 +02:00
2024-03-10 14:38:04 -07:00
2024-04-25 21:07:02 -07:00
2024-04-09 17:14:57 -04:00
2024-04-30 21:10:37 +02:00
2024-04-29 13:01:08 +02:00
2024-03-25 23:45:21 +01:00
2024-04-22 11:26:01 -06:00
2024-04-15 08:10:26 -06:00
2024-05-19 09:21:03 -07:00
2024-05-13 14:06:54 +02:00
2024-05-07 13:29:45 +02:00
2024-04-11 12:29:40 +02:00
2024-04-12 17:08:05 +02:00
2024-05-15 17:02:08 -05:00
2024-04-08 16:34:18 +02:00
2024-05-21 09:51:42 -07:00
2024-03-22 11:18:16 +01:00
2024-04-12 17:08:05 +02:00
2024-03-18 10:33:06 -04:00
2024-05-19 14:02:03 -07:00
2024-05-22 11:53:02 -07:00
2024-04-25 21:07:02 -07:00
2024-05-16 07:23:30 +09:00
2024-05-05 17:53:47 -07:00
2024-05-12 03:16:47 -04:00
2024-04-19 12:15:18 -04:00
2024-05-03 10:44:42 +01:00
2024-03-28 10:40:24 +00:00
2024-05-14 18:25:53 -07:00
2024-04-01 10:49:27 +01:00
2024-05-09 15:48:01 +02:00
2024-05-08 13:19:20 -05:00
2024-04-09 17:14:57 -04:00
2024-05-07 15:17:52 -07:00
2024-04-08 15:03:07 +02:00
2024-05-07 10:37:00 -07:00
2024-05-05 17:53:25 -07:00
2024-03-16 10:04:12 -07:00
2024-04-25 20:55:48 -07:00
2024-04-25 20:55:56 -07:00
2024-04-25 20:16:43 +05:30
2024-05-05 17:53:42 -07:00
2024-05-05 17:53:49 -07:00
2024-03-26 11:07:22 -07:00
2024-04-25 20:56:24 -07:00
2024-04-12 04:40:27 -04:00
2024-04-15 14:31:48 +02:00
2024-05-22 11:31:10 +02:00
2024-05-14 00:35:06 -07:00
2024-05-14 00:31:43 -07:00
2024-05-15 17:02:08 -05:00
2024-05-21 10:09:28 -07:00
2024-04-11 17:34:41 +01:00
2024-04-13 11:33:58 +02:00
2024-05-13 18:19:09 -06:00
2024-05-13 18:35:02 -07:00
2024-05-27 08:09:12 -07:00
2024-05-06 09:07:17 -04:00
2024-05-20 11:09:20 -04:00
2024-03-09 09:14:50 -05:00
2024-05-08 08:41:29 -07:00
2024-03-12 12:34:11 -07:00
2024-05-07 13:47:15 +02:00
2024-03-11 11:43:44 -07:00
2024-05-03 07:26:38 +02:00
2024-05-01 23:18:48 +09:00
2024-05-03 07:49:13 -05:00
2024-03-19 11:57:26 -07:00
2024-04-12 15:07:52 +08:00
2024-05-19 22:29:43 -05:00
2024-03-22 16:25:31 -07:00
2024-04-25 20:56:14 -07:00
2024-04-25 20:56:35 -07:00
2024-05-05 17:53:49 -07:00
2024-05-05 17:53:50 -07:00
2024-04-25 20:56:04 -07:00
2024-04-25 20:56:44 -07:00
2024-05-24 13:34:06 +02:00
2024-03-26 11:07:20 -07:00
2024-04-25 12:37:12 -07:00
2024-05-02 17:48:09 -04:00
2024-05-21 10:09:28 -07:00
2024-04-10 17:52:42 +00:00
2024-05-16 18:14:14 -05:00
2024-04-11 17:06:06 +02:00
2024-04-25 20:55:59 -07:00
2024-04-14 22:26:32 +02:00
2024-04-25 20:56:14 -07:00
2024-05-05 17:53:42 -07:00
2024-05-13 18:35:02 -07:00
2024-03-28 19:21:33 -07:00
2024-03-13 12:53:53 -07:00
2024-03-13 12:53:53 -07:00
2024-04-15 15:46:56 +02:00
2024-05-17 12:22:46 +02:00
2024-04-08 16:05:14 +02:00
2024-04-03 16:51:37 +02:00
2024-04-17 13:14:30 +02:00
2024-05-22 11:53:02 -07:00
2024-04-27 11:17:48 -07:00
2024-03-25 19:50:09 +00:00
2024-04-25 20:55:59 -07:00
2024-03-28 10:09:02 +00:00
2024-04-30 18:57:07 +02:00
2024-03-26 19:34:12 +00:00
2024-04-03 14:45:03 -07:00
2024-04-09 15:11:49 +02:00
2024-04-15 19:43:48 +02:00
2024-05-07 10:31:42 +09:00
2024-04-25 20:55:57 -07:00
2024-04-02 18:03:32 -07:00
2024-05-13 18:09:56 -04:00
2024-05-05 17:53:45 -07:00
2024-03-08 12:05:10 +01:00
2024-04-03 09:59:38 +01:00
2024-04-08 16:39:16 +02:00
2024-04-08 16:39:16 +02:00
2024-05-19 09:21:03 -07:00
2024-04-19 15:17:37 +01:00
2024-04-25 20:56:13 -07:00
2024-04-09 17:14:57 -04:00
2024-05-02 16:28:15 +02:00
2024-04-09 15:28:03 +02:00
2024-05-13 18:35:02 -07:00
2024-04-09 10:53:44 +02:00
2024-04-16 15:39:51 -07:00
2024-04-25 20:55:59 -07:00
2024-05-03 16:05:53 -07:00
2024-05-19 09:21:03 -07:00
2024-05-19 09:21:03 -07:00
2024-05-19 09:21:03 -07:00
2024-03-11 19:37:56 -07:00
2024-05-13 18:19:19 -06:00
2024-04-25 20:55:59 -07:00
2024-04-15 11:29:48 +02:00
2024-04-05 11:21:31 -07:00
2024-03-26 09:01:18 +01:00
2024-05-04 18:57:21 +02:00
2024-05-13 18:33:10 -07:00
2024-06-06 08:55:20 -07:00
2024-05-21 08:34:51 -07:00
2024-04-16 15:39:50 -07:00
2024-05-07 13:29:28 +02:00
2024-05-23 19:40:26 -07:00
2024-05-17 17:31:24 -07:00
2024-04-11 16:02:25 +02:00
2024-04-08 11:49:02 +01:00
2024-04-03 13:58:20 +02:00
2024-04-03 09:19:31 +02:00
2024-04-08 16:01:50 +02:00
2024-05-06 17:39:09 +02:00
2024-04-19 07:52:45 +03:00
2024-03-11 19:53:15 -07:00
2024-04-01 10:36:34 +02:00
2024-04-01 10:36:34 +02:00
2024-04-01 10:36:35 +02:00
2024-04-22 16:13:06 +02:00
2024-05-28 13:14:23 +03:00
2024-03-27 07:52:34 -07:00
2024-05-01 23:18:48 +09:00
2024-05-04 04:25:37 -04:00
2024-03-18 10:33:06 -04:00
2024-05-04 18:45:11 +02:00
2024-05-06 12:05:00 +02:00
2024-04-05 22:31:37 -07:00
2024-05-15 12:34:46 -07:00
2024-04-07 02:42:36 -04:00
2024-05-04 18:23:03 +02:00
2024-03-19 02:45:51 -04:00
2024-03-11 13:08:52 -06:00
2024-04-26 13:26:53 +02:00
2024-04-25 20:55:57 -07:00
2024-04-25 20:56:04 -07:00
2024-04-17 13:37:23 +02:00
2024-03-12 12:47:35 +02:00
2024-05-19 16:12:38 -07:00
2024-04-22 10:08:04 -10:00
2024-05-05 17:53:51 -07:00
2024-05-19 09:21:03 -07:00
2024-04-25 20:55:48 -07:00
2024-04-25 20:55:47 -07:00