]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/futex: Conditionally include libnuma support
authorNylon Chen <nylon.chen@sifive.com>
Mon, 2 Mar 2026 03:04:34 +0000 (19:04 -0800)
committerThomas Gleixner <tglx@kernel.org>
Tue, 24 Mar 2026 21:59:59 +0000 (22:59 +0100)
commit3814c4e145b7a315abd83c85caf97585c63035a4
treef2380e599c5a7d84d6d2281cf81aef59a29ff999
parentd317e2ef9dcf673c9f37cda784284af7c6812757
selftests/futex: Conditionally include libnuma support

Use LIBNUMA_TEST to conditionally add -lnuma to LDLIBS.
Guard numa header includes with #ifdef LIBNUMA_VER_SUFFICIENT
to allow compilation without libnuma installed.

Co-developed-by: Zong Li <zong.li@sifive.com>
Signed-off-by: Zong Li <zong.li@sifive.com>
Signed-off-by: Nylon Chen <nylon.chen@sifive.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260301-20260128_nylon_chen_sifive_com-v3-1-995ab4cc71aa@sifive.com
tools/testing/selftests/futex/functional/Makefile
tools/testing/selftests/futex/functional/futex_numa_mpol.c