Re: [PATCH net 4/4] selftests/net: tcp_mmap: fix clang warning for target arch PowerPC

2020-07-27 Thread Eric Dumazet
On 7/27/20 9:25 AM, Tanner Love wrote: > From: Tanner Love > > 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

[PATCH net 4/4] selftests/net: tcp_mmap: fix clang warning for target arch PowerPC

2020-07-27 Thread Tanner Love
From: Tanner Love 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