aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/mm/ksm_tests.c
diff options
context:
space:
mode:
authorKevin Brodsky <kevin.brodsky@arm.com>2024-12-09 09:50:07 +0000
committerAndrew Morton <akpm@linux-foundation.org>2025-01-13 22:40:53 -0800
commit516fb516383ef39d881d116c6447826356883ad0 (patch)
treefee998f3de62f909e37cc96cd3de51c49b133d53 /tools/testing/selftests/mm/ksm_tests.c
parentselftests/mm: fix condition in uffd_move_test_common() (diff)
downloadwireguard-linux-516fb516383ef39d881d116c6447826356883ad0.tar.xz
wireguard-linux-516fb516383ef39d881d116c6447826356883ad0.zip
selftests/mm: fix -Wmaybe-uninitialized warnings
A few -Wmaybe-uninitialized warnings show up when building the mm tests with -O2. None of them looks worrying; silence them by initialising the problematic variables. Link: https://lkml.kernel.org/r/20241209095019.1732120-3-kevin.brodsky@arm.com Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com> Cc: Aruna Ramakrishna <aruna.ramakrishna@oracle.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Joey Gouly <joey.gouly@arm.com> Cc: Keith Lucas <keith.lucas@oracle.com> Cc: Ryan Roberts <ryan.roberts@arm.com> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/testing/selftests/mm/ksm_tests.c')
-rw-r--r--tools/testing/selftests/mm/ksm_tests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/mm/ksm_tests.c b/tools/testing/selftests/mm/ksm_tests.c
index b748c48908d9..dcdd5bb20f3d 100644
--- a/tools/testing/selftests/mm/ksm_tests.c
+++ b/tools/testing/selftests/mm/ksm_tests.c
@@ -776,7 +776,7 @@ err_out:
int main(int argc, char *argv[])
{
- int ret, opt;
+ int ret = 0, opt;
int prot = 0;
int ksm_scan_limit_sec = KSM_SCAN_LIMIT_SEC_DEFAULT;
int merge_type = KSM_MERGE_TYPE_DEFAULT;