On Mon, Jul 31, 2023 at 09:42:05PM +0800, Li Zetao wrote:
There is a warning reported by coccinelle:
./tools/testing/selftests/cgroup/test_zswap.c:211:6-18: WARNING: Unsigned expression compared with zero: stored_pages < 0
The type of "stored_pages" is size_t, which always be an unsigned type, so it is impossible less than zero. Drop the if statements to silence the warning.
Signed-off-by: Li Zetao lizetao1@huawei.com
Looks fine to me but the zswap test addition is going through akpm's tree, I think, so probably best to repost it to Andrew.
Thanks.