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

um: Remove unused user_context function

It's no longer used since commit 6aa802ce6acc ("uml: throw out
CHOOSE_MODE").

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20241128083137.2219830-10-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Tiwei Bie and committed by
Johannes Berg
7ee1e43a c5e78b8d

-10
-8
arch/um/kernel/process.c
··· 213 213 /* Is in_interrupt() really needed? */ 214 214 } 215 215 216 - int user_context(unsigned long sp) 217 - { 218 - unsigned long stack; 219 - 220 - stack = sp & (PAGE_MASK << CONFIG_KERNEL_STACK_ORDER); 221 - return stack != (unsigned long) current_thread_info(); 222 - } 223 - 224 216 extern exitcall_t __uml_exitcall_begin, __uml_exitcall_end; 225 217 226 218 void do_uml_exitcalls(void)
-2
arch/x86/um/shared/sysdep/ptrace.h
··· 74 74 #define UPT_FAULTINFO(r) (&(r)->faultinfo) 75 75 #define UPT_IS_USER(r) ((r)->is_user) 76 76 77 - extern int user_context(unsigned long sp); 78 - 79 77 extern int arch_init_registers(int pid); 80 78 81 79 #endif /* __SYSDEP_X86_PTRACE_H */