svn commit: r323144 - stable/11/sys/i386/i386
Konstantin Belousov
kib at FreeBSD.org
Sun Sep 3 09:15:14 UTC 2017
Author: kib
Date: Sun Sep 3 09:15:13 2017
New Revision: 323144
URL: https://svnweb.freebsd.org/changeset/base/323144
Log:
MFC r322927:
Use ANSI C declaration for trap_pfault(). Style.
Modified:
stable/11/sys/i386/i386/trap.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/i386/i386/trap.c
==============================================================================
--- stable/11/sys/i386/i386/trap.c Sun Sep 3 09:14:06 2017 (r323143)
+++ stable/11/sys/i386/i386/trap.c Sun Sep 3 09:15:13 2017 (r323144)
@@ -751,17 +751,18 @@ out:
}
static int
-trap_pfault(frame, usermode, eva)
- struct trapframe *frame;
- int usermode;
- vm_offset_t eva;
+trap_pfault(struct trapframe *frame, int usermode, vm_offset_t eva)
{
+ struct thread *td;
+ struct proc *p;
vm_offset_t va;
vm_map_t map;
- int rv = 0;
+ int rv;
vm_prot_t ftype;
- struct thread *td = curthread;
- struct proc *p = td->td_proc;
+
+ td = curthread;
+ p = td->td_proc;
+ rv = 0;
if (__predict_false((td->td_pflags & TDP_NOFAULTING) != 0)) {
/*
More information about the svn-src-stable
mailing list