diff options
author | Simon Horman <[email protected]> | 2024-08-12 12:24:13 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-08-13 19:17:27 -0700 |
commit | 29cabacef1024b39506d3acd18cb2e558832bbaf (patch) | |
tree | a4f379ec61f3e29b66f13018de56eefff58d5b49 /tools/perf/scripts/python/syscall-counts.py | |
parent | 713ebaed68d88121cbaf5e74104e2290a9ea74bd (diff) |
net: mvneta: Use __be16 for l3_proto parameter of mvneta_txq_desc_csum()
The value passed as the l3_proto argument of mvneta_txq_desc_csum()
is __be16. And mvneta_txq_desc_csum uses this parameter as a __be16
value. So use __be16 as the type for the parameter, rather than
type with host byte order.
Flagged by Sparse as:
.../mvneta.c:1796:25: warning: restricted __be16 degrades to integer
.../mvneta.c:1979:45: warning: incorrect type in argument 2 (different base types)
.../mvneta.c:1979:45: expected int l3_proto
.../mvneta.c:1979:45: got restricted __be16 [usertype] l3_proto
No functional change intended.
Flagged by Sparse.
Signed-off-by: Simon Horman <[email protected]>
Reviewed-by: Marcin Wojtas <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions