git: fec5a70e1f41 - stable/13 - x86: use ANSI C definition style for trap_fatal

Konstantin Belousov kib at FreeBSD.org
Sat Jul 17 11:02:56 UTC 2021


The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=fec5a70e1f41235dbbf43482ec2e54df030f4abc

commit fec5a70e1f41235dbbf43482ec2e54df030f4abc
Author:     Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-07-10 10:59:32 +0000
Commit:     Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-07-17 10:52:04 +0000

    x86: use ANSI C definition style for trap_fatal
    
    PR:     257062
    
    (cherry picked from commit 55e63ed307fb099722cf6d30a18c9badab9b5d03)
---
 sys/amd64/amd64/trap.c | 4 +---
 sys/i386/i386/trap.c   | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index e67e188bb4fd..942c99c4826e 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -871,9 +871,7 @@ after_vmfault:
 }
 
 static void
-trap_fatal(frame, eva)
-	struct trapframe *frame;
-	vm_offset_t eva;
+trap_fatal(struct trapframe *frame, vm_offset_t eva)
 {
 	int code, ss;
 	u_int type;
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c
index 6fd2a1393761..045478149be5 100644
--- a/sys/i386/i386/trap.c
+++ b/sys/i386/i386/trap.c
@@ -875,9 +875,7 @@ trap_pfault(struct trapframe *frame, bool usermode, vm_offset_t eva,
 }
 
 static void
-trap_fatal(frame, eva)
-	struct trapframe *frame;
-	vm_offset_t eva;
+trap_fatal(struct trapframe *frame, vm_offset_t eva)
 {
 	int code, ss, esp;
 	u_int type;


More information about the dev-commits-src-all mailing list