diff options
author | David Hildenbrand <david@redhat.com> | 2022-12-05 22:37:14 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-12-12 05:12:20 +0300 |
commit | d88825f22b8f1cad8acb429b6bf0a54c85d7b93f (patch) | |
tree | 4ffd23eeb5f0073480bb5c796905fdf57dad6dcf /tools/perf/scripts/python/export-to-sqlite.py | |
parent | a0ac9b3598fac36907bd1baec28c99656d2ed0b6 (diff) | |
download | linux-d88825f22b8f1cad8acb429b6bf0a54c85d7b93f.tar.xz |
selftests/vm: madv_populate: fix missing MADV_POPULATE_(READ|WRITE) definitions
The tests fail to compile in some environments (e.g., Debian 11.5 on x86).
Let's simply conditionally define MADV_POPULATE_(READ|WRITE) if not
already defined, similar to how the khugepaged.c test handles it.
Link: https://lkml.kernel.org/r/20221205193716.276024-3-david@redhat.com
Fixes: 39b2e5cae43d ("selftests/vm: make MADV_POPULATE_(READ|WRITE) use in-tree headers")
Signed-off-by: David Hildenbrand <david@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions