1
0
Fork 0
alistair23-linux/tools/testing/selftests/networking/timestamping
Tanner Love 22f84cce95 selftests/net: rxtimestamp: fix clang issues for target arch PowerPC
[ Upstream commit 955cbe91bc ]

The signedness of char is implementation-dependent. Some systems
(including PowerPC and ARM) use unsigned char. Clang 9 threw:
warning: result of comparison of constant -1 with expression of type \
'char' is always true [-Wtautological-constant-out-of-range-compare]
                                  &arg_index)) != -1) {

Tested: make -C tools/testing/selftests TARGETS="net" run_tests

Fixes: 16e7812241 ("selftests/net: Add a test to validate behavior of rx timestamps")
Signed-off-by: Tanner Love <tannerlove@google.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-05 09:59:45 +02:00
..
.gitignore selftests/net: Add a test to validate behavior of rx timestamps 2017-08-23 20:30:47 -07:00
Makefile selftests: fix timestamping Makefile 2019-02-14 12:03:16 -05:00
config selftests: add txtimestamp kselftest 2018-12-20 17:01:17 -08:00
hwtstamp_config.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rxtimestamp.c selftests/net: rxtimestamp: fix clang issues for target arch PowerPC 2020-08-05 09:59:45 +02:00
timestamping.c selftests/net: in timestamping, strncpy needs to preserve null byte 2020-06-24 17:50:41 +02:00
txtimestamp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 335 2019-06-05 17:37:06 +02:00
txtimestamp.sh selftests: add txtimestamp kselftest 2018-12-20 17:01:17 -08:00