Use ANSI C declaration for trap_pfault(). Style.

Reviewed by:	bde
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2017-08-20 09:39:10 +00:00
parent 00d47e02ac
commit dad2e0e420
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322718

View File

@ -609,17 +609,20 @@ trap_check(struct trapframe *frame)
}
static int
trap_pfault(frame, usermode)
struct trapframe *frame;
int usermode;
trap_pfault(struct trapframe *frame, int usermode)
{
vm_offset_t va;
struct thread *td;
struct proc *p;
vm_map_t map;
int rv = 0;
vm_offset_t va;
int rv;
vm_prot_t ftype;
struct thread *td = curthread;
struct proc *p = td->td_proc;
vm_offset_t eva = frame->tf_addr;
vm_offset_t eva;
td = curthread;
p = td->td_proc;
eva = frame->tf_addr;
rv = 0;
if (__predict_false((td->td_pflags & TDP_NOFAULTING) != 0)) {
/*