[LTP] [PATCH v1 2/2] tools/apicmds: Remove tst_ncpus_max

Cyril Hrubis chrubis@suse.cz
Mon Nov 23 17:23:57 CET 2026


The tst_ncpus_max shell command has no users left in the tree, remove
it.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 tools/apicmds/.gitignore  | 1 -
 tools/apicmds/Makefile    | 2 +-
 tools/apicmds/ltpapicmd.c | 2 --
 3 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/tools/apicmds/.gitignore b/tools/apicmds/.gitignore
index 375e7e9b8..9402108e4 100644
--- a/tools/apicmds/.gitignore
+++ b/tools/apicmds/.gitignore
@@ -3,6 +3,5 @@ tst_brkm
 tst_exit
 tst_ncpus
 tst_ncpus_conf
-tst_ncpus_max
 tst_res
 tst_resm
diff --git a/tools/apicmds/Makefile b/tools/apicmds/Makefile
index b240a8958..b6c010bec 100644
--- a/tools/apicmds/Makefile
+++ b/tools/apicmds/Makefile
@@ -27,7 +27,7 @@ include $(top_srcdir)/include/mk/testcases.mk
 CPPFLAGS		+= -D_GNU_SOURCE
 
 MAKE_TARGETS		:= $(addprefix tst_,brk brkm exit \
-			     res resm ncpus ncpus_conf ncpus_max)
+			     res resm ncpus ncpus_conf)
 
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
 
diff --git a/tools/apicmds/ltpapicmd.c b/tools/apicmds/ltpapicmd.c
index 9725d2e41..0826d9071 100644
--- a/tools/apicmds/ltpapicmd.c
+++ b/tools/apicmds/ltpapicmd.c
@@ -258,8 +258,6 @@ int main(int argc, char *argv[])
 		printf("%li\n", tst_ncpus());
 	} else if (strcmp(cmd_name, "tst_ncpus_conf") == 0) {
 		printf("%li\n", tst_ncpus_conf());
-	} else if (strcmp(cmd_name, "tst_ncpus_max") == 0) {
-		printf("%li\n", tst_ncpus_max());
 	}
 
 	exit(0);
-- 
2.55.0



More information about the ltp mailing list