diff options
| author | Joel Stanley <joel@jms.id.au> | 2020-07-09 09:35:07 +0300 |
|---|---|---|
| committer | Joel Stanley <joel@jms.id.au> | 2020-08-06 03:30:34 +0300 |
| commit | fa5c176a0f0cb681a1a92dc1287e60a96b5fc298 (patch) | |
| tree | 283d4633b9a5ff5e8d34a265cd6ad516c4aa4280 /tools/perf/scripts/python/stackcollapse.py | |
| parent | a6f50f1aeb50cc92756a720b2bc42516d482ea5a (diff) | |
| download | linux-fa5c176a0f0cb681a1a92dc1287e60a96b5fc298.tar.xz | |
soc: aspeed-lpc-ctrl: Fix printf warning
>> drivers/soc/aspeed/aspeed-lpc-ctrl.c:247:17: warning: format '%zu'
expects argument of type 'size_t', but argument 3 has type
'resource_size_t' {aka 'unsigned int'} [-Wformat=]
Documentation/core-api/printk-formats.rst suggests %pa should work for
resouce_size_t, but it did not:
%pa[p] 0x01234567 or 0x0123456789abcdef
For printing a phys_addr_t type (and its derivatives, such as
resource_size_t) which can vary based on build options, regardless of the
width of the CPU data path.
Instead cast to an integer which works as all aspeed processors are 32-bit.
OpenBMC-Staging-Count: 2
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
