Skip to content

Commit 6fdae1d

Browse files
btw616jmberg-intel
authored andcommitted
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>
1 parent 1cf855d commit 6fdae1d

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

arch/um/include/shared/kern_util.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ struct siginfo;
1313

1414
extern int uml_exitcode;
1515

16-
extern int ncpus;
1716
extern int kmalloc_ok;
1817

1918
#define UML_ROUND_UP(addr) \

arch/um/kernel/um_arch.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ unsigned long uml_reserved; /* Also modified in mem_init */
126126
unsigned long start_vm;
127127
unsigned long end_vm;
128128

129-
/* Set in uml_ncpus_setup */
130-
int ncpus = 1;
131-
132129
/* Set in early boot */
133130
static int have_root __initdata;
134131
static int have_console __initdata;

0 commit comments

Comments
 (0)