um: Remove the pid parameter of handle_trap()
It's no longer used. Remove it. Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com> Link: https://patch.msgid.link/20250711065021.2535362-3-tiwei.bie@linux.dev Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -267,7 +267,7 @@ static void get_skas_faultinfo(int pid, struct faultinfo *fi)
|
||||
memcpy(fi, (void *)current_stub_stack(), sizeof(*fi));
|
||||
}
|
||||
|
||||
static void handle_trap(int pid, struct uml_pt_regs *regs)
|
||||
static void handle_trap(struct uml_pt_regs *regs)
|
||||
{
|
||||
if ((UPT_IP(regs) >= STUB_START) && (UPT_IP(regs) < STUB_END))
|
||||
fatal_sigsegv();
|
||||
@@ -755,7 +755,7 @@ void userspace(struct uml_pt_regs *regs)
|
||||
handle_syscall(regs);
|
||||
break;
|
||||
case SIGTRAP + 0x80:
|
||||
handle_trap(pid, regs);
|
||||
handle_trap(regs);
|
||||
break;
|
||||
case SIGTRAP:
|
||||
relay_signal(SIGTRAP, (struct siginfo *)si, regs, NULL);
|
||||
|
||||
Reference in New Issue
Block a user