* [LTP] [PATCH v1] set_mempolicy05: Require CONFIG_NUMA using .needs_kconfigs
@ 2026-06-26 9:13 Wei Gao via ltp
2026-06-26 9:17 ` Wei Gao via ltp
0 siblings, 1 reply; 3+ messages in thread
From: Wei Gao via ltp @ 2026-06-26 9:13 UTC (permalink / raw)
To: ltp
When CONFIG_NUMA is disabled in the kernel, the set_mempolicy system
call is not compiled and returns -ENOSYS.
Declare CONFIG_NUMA in the .needs_kconfigs field of struct tst_test.
This ensures that the test cleanly skips (TCONF) on kernels built without
NUMA support, preventing false TFAIL results.
Signed-off-by: Wei Gao <wegao@suse.com>
---
testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c b/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c
index 7481dcd8d..e9c521df2 100644
--- a/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c
+++ b/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c
@@ -115,6 +115,10 @@ static struct tst_test test = {
"ppc",
NULL
},
+ .needs_kconfigs = (const char *const []) {
+ "CONFIG_NUMA",
+ NULL
+ },
.tags = (const struct tst_tag[]) {
{"linux-git", "cf01fb9985e8"},
{"CVE", "2017-7616"},
--
2.54.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [LTP] [PATCH v1] set_mempolicy05: Require CONFIG_NUMA using .needs_kconfigs
2026-06-26 9:13 [LTP] [PATCH v1] set_mempolicy05: Require CONFIG_NUMA using .needs_kconfigs Wei Gao via ltp
@ 2026-06-26 9:17 ` Wei Gao via ltp
2026-06-26 9:22 ` Andrea Cervesato via ltp
0 siblings, 1 reply; 3+ messages in thread
From: Wei Gao via ltp @ 2026-06-26 9:17 UTC (permalink / raw)
To: ltp
Hi ALL
Sorry , please ignore this duplicate patch since we already have
https://patchwork.ozlabs.org/project/ltp/patch/20260623124812.46022-1-avinesh.kumar@suse.com/
Thanks.
Regards
Gao Wei
On Fri, Jun 26, 2026 at 5:13 PM Wei Gao <wegao@suse.com> wrote:
> When CONFIG_NUMA is disabled in the kernel, the set_mempolicy system
> call is not compiled and returns -ENOSYS.
>
> Declare CONFIG_NUMA in the .needs_kconfigs field of struct tst_test.
> This ensures that the test cleanly skips (TCONF) on kernels built without
> NUMA support, preventing false TFAIL results.
>
> Signed-off-by: Wei Gao <wegao@suse.com>
> ---
> testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c
> b/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c
> index 7481dcd8d..e9c521df2 100644
> --- a/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c
> +++ b/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c
> @@ -115,6 +115,10 @@ static struct tst_test test = {
> "ppc",
> NULL
> },
> + .needs_kconfigs = (const char *const []) {
> + "CONFIG_NUMA",
> + NULL
> + },
> .tags = (const struct tst_tag[]) {
> {"linux-git", "cf01fb9985e8"},
> {"CVE", "2017-7616"},
> --
> 2.54.0
>
>
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-06-26 9:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-26 9:13 [LTP] [PATCH v1] set_mempolicy05: Require CONFIG_NUMA using .needs_kconfigs Wei Gao via ltp
2026-06-26 9:17 ` Wei Gao via ltp
2026-06-26 9:22 ` Andrea Cervesato via ltp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox