Skip to content

Commit 7ee1e43

Browse files
btw616jmberg-intel
authored andcommitted
um: Remove unused user_context function
It's no longer used since commit 6aa802c ("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>
1 parent c5e78b8 commit 7ee1e43

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

arch/um/kernel/process.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,6 @@ int __uml_cant_sleep(void) {
213213
/* Is in_interrupt() really needed? */
214214
}
215215

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-
224216
extern exitcall_t __uml_exitcall_begin, __uml_exitcall_end;
225217

226218
void do_uml_exitcalls(void)

arch/x86/um/shared/sysdep/ptrace.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ struct uml_pt_regs {
7474
#define UPT_FAULTINFO(r) (&(r)->faultinfo)
7575
#define UPT_IS_USER(r) ((r)->is_user)
7676

77-
extern int user_context(unsigned long sp);
78-
7977
extern int arch_init_registers(int pid);
8078

8179
#endif /* __SYSDEP_X86_PTRACE_H */

0 commit comments

Comments
 (0)