diff options
author | Sergei Antonov <saproj@gmail.com> | 2022-09-02 15:50:37 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-09-06 11:24:42 +0300 |
commit | 03fdb11da92fde0bdc0b6e9c1c642b7414d49e8d (patch) | |
tree | 927c71f4417f29ce0014794cfe6f4a928031fc4a /tools/testing/selftests/bpf/DENYLIST.s390x | |
parent | 9df696b3b3a4c96c3219eb87c7bf03fb50e490b8 (diff) | |
download | linux-03fdb11da92fde0bdc0b6e9c1c642b7414d49e8d.tar.xz |
net: moxa: fix endianness-related issues from 'sparse'
Sparse checker found two endianness-related issues:
.../moxart_ether.c:34:15: warning: incorrect type in assignment (different base types)
.../moxart_ether.c:34:15: expected unsigned int [usertype]
.../moxart_ether.c:34:15: got restricted __le32 [usertype]
.../moxart_ether.c:39:16: warning: cast to restricted __le32
Fix them by using __le32 type instead of u32.
Signed-off-by: Sergei Antonov <saproj@gmail.com>
Link: https://lore.kernel.org/r/20220902125037.1480268-1-saproj@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/testing/selftests/bpf/DENYLIST.s390x')
0 files changed, 0 insertions, 0 deletions