Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

um: Remove unused ncpus variable

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>

authored by

Tiwei Bie and committed by
Johannes Berg
6fdae1da 1cf855de

-4
-1
arch/um/include/shared/kern_util.h
··· 13 13 14 14 extern int uml_exitcode; 15 15 16 - extern int ncpus; 17 16 extern int kmalloc_ok; 18 17 19 18 #define UML_ROUND_UP(addr) \
-3
arch/um/kernel/um_arch.c
··· 126 126 unsigned long start_vm; 127 127 unsigned long end_vm; 128 128 129 - /* Set in uml_ncpus_setup */ 130 - int ncpus = 1; 131 - 132 129 /* Set in early boot */ 133 130 static int have_root __initdata; 134 131 static int have_console __initdata;