diff options
| author | Arnd Bergmann <[email protected]> | 2023-08-12 17:17:58 +0000 |
|---|---|---|
| committer | Arnd Bergmann <[email protected]> | 2023-08-12 17:20:11 +0000 |
| commit | 37696fa746731ce137f07b03443eec79bba07794 (patch) | |
| tree | ed2b2524a8add1774b44d06765bb7388f7521680 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | Merge tag 'hisi-drivers-for-6.6' of https://github.com/hisilicon/linux-hisi i... (diff) | |
| download | kernel-37696fa746731ce137f07b03443eec79bba07794.tar.gz kernel-37696fa746731ce137f07b03443eec79bba07794.zip | |
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 <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
