On Thu, 06 Jun 2024 15:46:09 +0100, Jean-Philippe Brucker wrote:
> 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
>
> [...]
Applied to for-next/hardening, thanks!
[1/1] mm/util: Swap kmemdup_array() arguments
https://git.kernel.org/kees/c/0ee14725471c
Take care,
--
Kees Cook