diff options
author | Willem de Bruijn <[email protected]> | 2023-11-24 12:15:20 -0500 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-11-27 18:12:07 -0800 |
commit | 7b29828c5af6841bdeb9fafa32fdfeff7ab9c407 (patch) | |
tree | ae0d9a2cb3ecf036e6e18ea391ecda55f8e3927f /scripts/generate_rust_analyzer.py | |
parent | 088559815477c6f623a5db5993491ddd7facbec7 (diff) |
selftests/net: fix a char signedness issue
Signedness of char is signed on x86_64, but unsigned on arm64.
Fix the warning building cmsg_sender.c on signed platforms or
forced with -fsigned-char:
msg_sender.c:455:12:
error: implicit conversion from 'int' to 'char'
changes value from 128 to -128
[-Werror,-Wconstant-conversion]
buf[0] = ICMPV6_ECHO_REQUEST;
constant ICMPV6_ECHO_REQUEST is 128.
Link: https://lwn.net/Articles/911914
Fixes: de17e305a810 ("selftests: net: cmsg_sender: support icmp and raw sockets")
Signed-off-by: Willem de Bruijn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions