]> 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)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 3 Aug 2022 18:17:13 +0000 (14:17 -0400)
commit4f7f4913c86021505cd2348f0bea073fd652de19
tree8fb1ddb449e1d26044915c81065e9139e99c4b20
parent16baaf074ea19b9ad130e646c9903888405339b5
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