Commit 7ee1e43a authored by Tiwei Bie's avatar Tiwei Bie Committed by Johannes Berg
Browse files

um: Remove unused user_context function



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

Signed-off-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20241128083137.2219830-10-tiwei.btw@antgroup.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent c5e78b8d
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -213,14 +213,6 @@ int __uml_cant_sleep(void) {
	/* Is in_interrupt() really needed? */
}

int user_context(unsigned long sp)
{
	unsigned long stack;

	stack = sp & (PAGE_MASK << CONFIG_KERNEL_STACK_ORDER);
	return stack != (unsigned long) current_thread_info();
}

extern exitcall_t __uml_exitcall_begin, __uml_exitcall_end;

void do_uml_exitcalls(void)
+0 −2
Original line number Diff line number Diff line
@@ -74,8 +74,6 @@ struct uml_pt_regs {
#define UPT_FAULTINFO(r) (&(r)->faultinfo)
#define UPT_IS_USER(r) ((r)->is_user)

extern int user_context(unsigned long sp);

extern int arch_init_registers(int pid);

#endif /* __SYSDEP_X86_PTRACE_H */