diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2024-11-06 16:04:51 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2024-11-07 14:36:30 +0300 |
commit | d5f578f90a34d85f1cabd4c27af1b2d9fbffe64b (patch) | |
tree | 4201b8bbeaeaaf44917cd4d4192fafcae5a7ac20 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 5543d595954eefb3a6faa18a6dc7b1b3d6022052 (diff) | |
download | linux-d5f578f90a34d85f1cabd4c27af1b2d9fbffe64b.tar.xz |
selftests/powerpc: Fix 32-bit BE build errors on Ubuntu 24.04
Starting with Ubuntu 24.04, building the selftests with the big endian
compiler (which defaults to 32-bit) fails with errors:
stack_expansion_ldst.c:178:37: error: format '%lx' expects argument
of type 'long unsigned int', but argument 2 has type 'rlim_t' {aka 'long long unsigned int'}
subpage_prot.c:214:38: error: format '%lx' expects argument of type
'long unsigned int', but argument 3 has type 'off_t' {aka 'long long int'}
Prior to 24.04 rlim_t was long unsigned int, and off_t was long int.
Cast to unsigned long long and long long before passing to printf to
avoid the errors.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/20241106130453.1741013-3-mpe@ellerman.id.au
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions