diff options
| author | Benjamin Gray <bgray@linux.ibm.com> | 2023-10-11 16:37:02 +1100 |
|---|---|---|
| committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-10-19 17:12:47 +1100 |
| commit | 340a60e3725b9a229eaf03a9b3f8538f22f6ac16 (patch) | |
| tree | 88ddda6788d171453cfb81d721e2f417090d03bc /tools/perf/scripts/python | |
| parent | powerpc/xive: Fix endian conversion size (diff) | |
| download | linux-340a60e3725b9a229eaf03a9b3f8538f22f6ac16.tar.gz linux-340a60e3725b9a229eaf03a9b3f8538f22f6ac16.zip | |
powerpc: Explicitly reverse bytes when checking for byte reversal
Sparse reports an invalid endian cast here. The code is written for
big endian platforms, so le32_to_cpu() acts as a byte reversal.
This file is checked by sparse on a little endian build though, so
replace the reverse function with the dedicated swab32() function to
better express the intent of the code.
Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231011053711.93427-4-bgray@linux.ibm.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
