]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/testing/selftests/vm/hugetlb-madvise.c: silence uninitialized variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 19 Jul 2022 09:42:48 +0000 (12:42 +0300)
committerakpm <akpm@linux-foundation.org>
Wed, 20 Jul 2022 21:41:54 +0000 (14:41 -0700)
commit93791c29b9a8ae6af336305ba0b9a42c24f21956
treef6ef02d5b5e987387cad925506618a984dfd4191
parent435e21775cc81e33ce60a83fcde37be8f83a512b
tools/testing/selftests/vm/hugetlb-madvise.c: silence uninitialized variable warning

This code just reads from memory without caring about the data itself.
However static checkers complain that "tmp" is never properly initialized.
Initialize it to zero and change the name to "dummy" to show that we
don't care about the value stored in it.

Link: https://lkml.kernel.org/r/YtZ8mKJmktA2GaHB@kili
Fixes: c4b6cb884011 ("selftests/vm: add hugetlb madvise MADV_DONTNEED MADV_REMOVE test")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/vm/hugetlb-madvise.c