* [PATCH mm-unstable v1] selftests/mm: define MADV_PAGEOUT to fix compilation issues
@ 2023-01-09 17:12 David Hildenbrand
0 siblings, 0 replies; only message in thread
From: David Hildenbrand @ 2023-01-09 17:12 UTC (permalink / raw)
To: linux-kernel
Cc: linux-mm, linux-kselftest, David Hildenbrand,
Mirsad Goran Todorovac, Andrew Morton, Shuah Khan
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.
Reported-by: Mirsad Goran Todorovac <mirsad.todorovac@alu.unizg.hr>
Fixes: 69c66add5663 ("selftests/vm: anon_cow: test COW handling of anonymous memory")
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
---
tools/testing/selftests/mm/cow.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/testing/selftests/mm/cow.c b/tools/testing/selftests/mm/cow.c
index 16216d893d96..0eb2e8180aa5 100644
--- a/tools/testing/selftests/mm/cow.c
+++ b/tools/testing/selftests/mm/cow.c
@@ -30,6 +30,9 @@
#include "../kselftest.h"
#include "vm_util.h"
+#ifndef MADV_PAGEOUT
+#define MADV_PAGEOUT 21
+#endif
#ifndef MADV_COLLAPSE
#define MADV_COLLAPSE 25
#endif
--
2.39.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-09 17:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-09 17:12 [PATCH mm-unstable v1] selftests/mm: define MADV_PAGEOUT to fix compilation issues David Hildenbrand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox