diff options
| author | Bence Csókás <[email protected]> | 2023-10-30 17:19:10 +0000 |
|---|---|---|
| committer | Wolfram Sang <[email protected]> | 2023-11-08 09:27:17 +0000 |
| commit | bdba49cbba41f0bea54fc93529bbef4d6ceaa3cd (patch) | |
| tree | 167db8d762dd80948c424a35a0799894e992e596 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | i2c: dev: copy userspace array safely (diff) | |
| download | kernel-bdba49cbba41f0bea54fc93529bbef4d6ceaa3cd.tar.gz kernel-bdba49cbba41f0bea54fc93529bbef4d6ceaa3cd.zip | |
i2c: cp2615: Fix 'assignment to __be16' warning
While the preamble field _is_ technically big-endian, its value is always 0x2A2A,
which is the same in either endianness. However, to avoid generating a warning,
we should still call `htons()` explicitly.
Signed-off-by: Bence Csókás <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
