Date: Sun, 3 Sep 2017 09:15:13 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r323144 - stable/11/sys/i386/i386 Message-ID: <201709030915.v839FD9A097958@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)) { /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709030915.v839FD9A097958>