soc: kunpeng_hccs: fix size_t format string
authorArnd Bergmann <arnd@arndb.de>
Sat, 12 Aug 2023 17:17:58 +0000 (19:17 +0200)
committerArnd Bergmann <arnd@arndb.de>
Sat, 12 Aug 2023 17:20:11 +0000 (19:20 +0200)
commit37696fa746731ce137f07b03443eec79bba07794
treeed2b2524a8add1774b44d06765bb7388f7521680
parentbb2974ffff00e83a69d54c03aff8bbaf82a4cd83
soc: kunpeng_hccs: fix size_t format string

Printing a size_t using the %lu format string causes a warning on
architectures that define the type as 'unsigned int':

In file included from include/linux/device.h:15,
                 from include/linux/acpi.h:14,
                 from drivers/soc/hisilicon/kunpeng_hccs.c:25:
drivers/soc/hisilicon/kunpeng_hccs.c: In function 'hccs_get_bd_info':
drivers/soc/hisilicon/kunpeng_hccs.c:441:25: error: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Werror=format=]

Use the correct %zu format instead.

Fixes: 886bdf9c883bc ("soc: hisilicon: Support HCCS driver on Kunpeng SoC")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/soc/hisilicon/kunpeng_hccs.c