diff options
author | Tanner Love <tannerlove@google.com> | 2020-07-27 19:25:31 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-27 22:56:59 +0300 |
commit | 94b6c13be57cdedb7cf4d33dbcd066fad133f22b (patch) | |
tree | 10febb707fb3c16799009b2bf10ceb55f5086933 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | b4da96ffd30bd4a305045ba5c9b0de5d4aa20dc7 (diff) | |
download | linux-94b6c13be57cdedb7cf4d33dbcd066fad133f22b.tar.xz |
selftests/net: tcp_mmap: fix clang warning for target arch PowerPC
When size_t maps to unsigned int (e.g. on 32-bit powerpc), then the
comparison with 1<<35 is always true. Clang 9 threw:
warning: result of comparison of constant 34359738368 with \
expression of type 'size_t' (aka 'unsigned int') is always true \
[-Wtautological-constant-out-of-range-compare]
while (total < FILE_SZ) {
Tested: make -C tools/testing/selftests TARGETS="net" run_tests
Fixes: 192dc405f308 ("selftests: net: add tcp_mmap program")
Signed-off-by: Tanner Love <tannerlove@google.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions