]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: net: Use size_t and ssize_t for counting file size
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 23 Oct 2019 04:57:58 +0000 (13:57 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 7 Nov 2019 21:53:50 +0000 (14:53 -0700)
commitd0992c904d2ca6a9d0abbf61f8737e33e68587f8
tree7de463a42243d44716e2fbbbad2962526878f57e
parentcf8686f98552e0307a03ba365cc56181b653996d
selftests: net: Use size_t and ssize_t for counting file size

Use size_t and ssize_t correctly for counting send file size
instead of unsigned long and long, because long is 32bit on
32bit arch, which is not enough for counting long file size (>4GB).

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Eric Dumazet <edumazet@google.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/net/tcp_mmap.c