Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Aug 2017 09:39:10 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322718 - head/sys/amd64/amd64
Message-ID:  <201708200939.v7K9dAAv028137@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Aug 20 09:39:10 2017
New Revision: 322718
URL: https://svnweb.freebsd.org/changeset/base/322718

Log:
  Use ANSI C declaration for trap_pfault().  Style.
  
  Reviewed by:	bde
  Tested by:	pho
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/amd64/amd64/trap.c

Modified: head/sys/amd64/amd64/trap.c
==============================================================================
--- head/sys/amd64/amd64/trap.c	Sun Aug 20 07:06:13 2017	(r322717)
+++ head/sys/amd64/amd64/trap.c	Sun Aug 20 09:39:10 2017	(r322718)
@@ -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)) {
 		/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708200939.v7K9dAAv028137>