diff options
author | Simon Horman <[email protected]> | 2024-10-10 12:04:10 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2024-10-14 13:20:41 +0100 |
commit | 5c16e118b796e95d6e5c80c5d8af2591262431c9 (patch) | |
tree | 57f0d5dab99f226b97b77aa6da83225c3788d584 /tools/perf/scripts/python/check-perf-trace.py | |
parent | b8bf38440ba94e8ed8e2ae55c5dfb0276d30e843 (diff) |
net: ethernet: ti: am65-cpsw: Use __be64 type for id_temp
The id_temp local variable in am65_cpsw_nuss_probe() is
used to hold a 64-bit big-endian value as it is assigned using
cpu_to_be64().
It is read using memcpy(), where it is written as an identifier into a
byte-array. So this can also be treated as big endian.
As it's type is currently host byte order (u64), sparse flags
an endian mismatch when compiling for little-endian systems:
.../am65-cpsw-nuss.c:3454:17: warning: incorrect type in assignment (different base types)
.../am65-cpsw-nuss.c:3454:17: expected unsigned long long [usertype] id_temp
.../am65-cpsw-nuss.c:3454:17: got restricted __be64 [usertype]
Address this by using __be64 as the type of id_temp.
No functional change intended.
Compile tested only.
Reviewed-by: Kalesh AP <[email protected]>
Reviewed-by: Roger Quadros <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions