Re: [PATCH v3 1/2] pinctrl: nuvoton: npcm7xx: Use %zu printk format for ARRAY_SIZE()

From: Linus Walleij
Date: Thu Feb 10 2022 - 20:04:47 EST


On Sat, Feb 5, 2022 at 4:53 PM Jonathan Neuschäfer
<j.neuschaefer@xxxxxxx> wrote:

> When compile-testing on 64-bit architectures, GCC complains about the
> mismatch of types between the %d format specifier and value returned by
> ARRAY_LENGTH(). Use %zu, which is correct everywhere.
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Fixes: 3b588e43ee5c7 ("pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver")
> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@xxxxxxx>
> Reviewed-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>
> ---
>
> v3:

Applied this v3 rather than the other version.

Yours,
Linus Walleij