summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/perf/hv-24x7.c
diff options
context:
space:
mode:
authorBenjamin Gray <bgray@linux.ibm.com>2023-10-11 16:37:05 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2023-10-19 17:12:47 +1100
commit2b4a6cc9a1a7cf6958c8b11f94e61c8e81b60b88 (patch)
treed3385cc0ab0449bb9bf2c31051b0bbba40d3e66f /arch/powerpc/perf/hv-24x7.c
parent419d5d112c2e1e78beda9c3299f71c35141d8dba (diff)
downloadlinux-stable-2b4a6cc9a1a7cf6958c8b11f94e61c8e81b60b88.tar.gz
linux-stable-2b4a6cc9a1a7cf6958c8b11f94e61c8e81b60b88.tar.bz2
linux-stable-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.c2
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;