diff options
author | Benjamin Gray <bgray@linux.ibm.com> | 2023-10-11 07:37:05 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-10-19 08:12:47 +0200 |
commit | 2b4a6cc9a1a7cf6958c8b11f94e61c8e81b60b88 (patch) | |
tree | d3385cc0ab0449bb9bf2c31051b0bbba40d3e66f /arch/powerpc/perf/hv-24x7.c | |
parent | powerpc: Remove extern from function implementations (diff) | |
download | linux-2b4a6cc9a1a7cf6958c8b11f94e61c8e81b60b88.tar.xz linux-2b4a6cc9a1a7cf6958c8b11f94e61c8e81b60b88.zip |
powerpc: Annotate endianness of various variables and functions
Sparse reports several endianness warnings on variables and functions
that are consistently treated as big endian. There are no
multi-endianness shenanigans going on here so fix these low hanging
fruit up in one patch.
All changes are just type annotations; no endianness switching
operations are introduced by this patch.
Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231011053711.93427-7-bgray@linux.ibm.com
Diffstat (limited to 'arch/powerpc/perf/hv-24x7.c')
-rw-r--r-- | arch/powerpc/perf/hv-24x7.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/perf/hv-24x7.c index 3449be7c0d51..057ec2e3451d 100644 --- a/arch/powerpc/perf/hv-24x7.c +++ b/arch/powerpc/perf/hv-24x7.c @@ -1338,7 +1338,7 @@ static int get_count_from_result(struct perf_event *event, for (i = count = 0, element_data = res->elements + data_offset; i < num_elements; i++, element_data += data_size + data_offset) - count += be64_to_cpu(*((u64 *) element_data)); + count += be64_to_cpu(*((__be64 *)element_data)); *countp = count; |