]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
um: Remove unused ncpus variable
authorTiwei Bie <tiwei.btw@antgroup.com>
Mon, 27 May 2024 13:40:23 +0000 (21:40 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Jul 2024 10:21:57 +0000 (12:21 +0200)
It's no longer used. And uml_ncpus_setup doesn't exist anymore.

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20240527134024.1539848-2-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/include/shared/kern_util.h
arch/um/kernel/um_arch.c

index 95521b1f5b20d44faffc3e2edf35e9226584f25a..d8ffd2db168e00a5e1e7c83f9008bdad091647cf 100644 (file)
@@ -13,7 +13,6 @@ struct siginfo;
 
 extern int uml_exitcode;
 
-extern int ncpus;
 extern int kmalloc_ok;
 
 #define UML_ROUND_UP(addr) \
index e95f805e5004eb1bacb158d3e3e881543df57c20..8e594cda6d778db0882cae362be80bc61e82608d 100644 (file)
@@ -126,9 +126,6 @@ unsigned long uml_reserved; /* Also modified in mem_init */
 unsigned long start_vm;
 unsigned long end_vm;
 
-/* Set in uml_ncpus_setup */
-int ncpus = 1;
-
 /* Set in early boot */
 static int have_root __initdata;
 static int have_console __initdata;