diff options
| author | Miquel Raynal <[email protected]> | 2023-01-30 15:43:06 +0000 |
|---|---|---|
| committer | Stefan Schmidt <[email protected]> | 2023-01-30 16:16:28 +0000 |
| commit | 8338304c2719fb7aec8e4b5dd9fa684b719db06e (patch) | |
| tree | c363ab01c69289068bf9d318feeeee09f476d82d /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | at86rf230: convert to gpio descriptors (diff) | |
| download | kernel-8338304c2719fb7aec8e4b5dd9fa684b719db06e.tar.gz kernel-8338304c2719fb7aec8e4b5dd9fa684b719db06e.zip | |
mac802154: Avoid superfluous endianness handling
When compiling scan.c with C=1, Sparse complains with:
sparse: expected unsigned short [usertype] val
sparse: got restricted __le16 [usertype] pan_id
sparse: sparse: cast from restricted __le16
sparse: expected unsigned long long [usertype] val
sparse: got restricted __le64 [usertype] extended_addr
sparse: sparse: cast from restricted __le64
The tool is right, both pan_id and extended_addr already are rightfully
defined as being __le16 and __le64 on both sides of the operations and
do not require extra endianness handling.
Fixes: 3accf4762734 ("mac802154: Handle basic beaconing")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stefan Schmidt <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
