diff options
author | Benjamin Gray <bgray@linux.ibm.com> | 2023-10-11 16:37:05 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-10-19 17:12:47 +1100 |
commit | 2b4a6cc9a1a7cf6958c8b11f94e61c8e81b60b88 (patch) | |
tree | d3385cc0ab0449bb9bf2c31051b0bbba40d3e66f /arch/powerpc/include/asm/imc-pmu.h | |
parent | 419d5d112c2e1e78beda9c3299f71c35141d8dba (diff) | |
download | linux-2b4a6cc9a1a7cf6958c8b11f94e61c8e81b60b88.tar.gz linux-2b4a6cc9a1a7cf6958c8b11f94e61c8e81b60b88.tar.bz2 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/include/asm/imc-pmu.h')
-rw-r--r-- | arch/powerpc/include/asm/imc-pmu.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/powerpc/include/asm/imc-pmu.h b/arch/powerpc/include/asm/imc-pmu.h index 699a88584ae1..a656635df386 100644 --- a/arch/powerpc/include/asm/imc-pmu.h +++ b/arch/powerpc/include/asm/imc-pmu.h @@ -74,14 +74,14 @@ struct imc_events { * The following is the data structure to hold trace imc data. */ struct trace_imc_data { - u64 tb1; - u64 ip; - u64 val; - u64 cpmc1; - u64 cpmc2; - u64 cpmc3; - u64 cpmc4; - u64 tb2; + __be64 tb1; + __be64 ip; + __be64 val; + __be64 cpmc1; + __be64 cpmc2; + __be64 cpmc3; + __be64 cpmc4; + __be64 tb2; }; /* Event attribute array index */ |