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

Linus Walleij linus.walleij at linaro.org
Fri Feb 11 12:04:32 AEDT 2022


On Sat, Feb 5, 2022 at 4:53 PM Jonathan Neuschäfer
<j.neuschaefer at gmx.net> 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 at intel.com>
> Fixes: 3b588e43ee5c7 ("pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver")
> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer at gmx.net>
> Reviewed-by: Andy Shevchenko <andy.shevchenko at gmail.com>
> ---
>
> v3:

Applied this v3 rather than the other version.

Yours,
Linus Walleij


More information about the openbmc mailing list