]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/mm/uffd: refactor non-composite global vars into struct
authorUjwal Kundur <ujwal.kundur@gmail.com>
Fri, 29 Aug 2025 15:56:00 +0000 (21:26 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 21 Sep 2025 21:21:59 +0000 (14:21 -0700)
commit4dfd4bba85785c88365b27af859ddb01c6fcf44a
treedaf9cdfa40f04d3ba385e670f2d626bfa37f88aa
parent2f5bd89ba9e322a9c4677837411203890286b53a
selftests/mm/uffd: refactor non-composite global vars into struct

Refactor macros and non-composite global variable definitions into a
struct that is defined at the start of a test and is passed around instead
of relying on global vars.

Link: https://lkml.kernel.org/r/20250829155600.2000-1-ujwal.kundur@gmail.com
Signed-off-by: Ujwal Kundur <ujwal.kundur@gmail.com>
Acked-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Brendan Jackman <jackmanb@google.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/uffd-common.c
tools/testing/selftests/mm/uffd-common.h
tools/testing/selftests/mm/uffd-stress.c
tools/testing/selftests/mm/uffd-unit-tests.c
tools/testing/selftests/mm/uffd-wp-mremap.c