selftests/mm: define MADV_PAGEOUT to fix compilation issues
authorDavid Hildenbrand <david@redhat.com>
Mon, 9 Jan 2023 17:12:55 +0000 (18:12 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Jan 2023 01:12:59 +0000 (17:12 -0800)
commitf4d9139f1394cbe2de158ab8771fea4e587004d4
tree24c0f67582fd9e91bb4e8fee5b37573919308633
parentc4876ff68716e5372224d17045b47610d667a0ee
selftests/mm: define MADV_PAGEOUT to fix compilation issues

If MADV_PAGEOUT is not defined (e.g., on AlmaLinux 8), compilation will
fail.  Let's fix that like khugepaged.c does by conditionally defining
MADV_PAGEOUT.

Link: https://lkml.kernel.org/r/20230109171255.488749-1-david@redhat.com
Fixes: 69c66add5663 ("selftests/vm: anon_cow: test COW handling of anonymous memory")
Signed-off-by: David Hildenbrand <david@redhat.com>
Reported-by: Mirsad Goran Todorovac <mirsad.todorovac@alu.unizg.hr>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/cow.c