summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2017-09-01 13:16:48 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2017-09-01 13:16:48 +0000
commit484304e6bc6bc3406022e2d717a1495f6725bcf9 (patch)
tree1643670577c31c63efee9be3cd3b2172c91771ed
parent1b3b8b2a7d593066d7d2233bfd4637002e6ab1e4 (diff)
Ansify function definitions.
-rw-r--r--sys/arch/mips64/mips64/mips64_machdep.c9
-rw-r--r--sys/arch/mips64/mips64/process_machdep.c16
-rw-r--r--sys/arch/mips64/mips64/sys_machdep.c7
-rw-r--r--sys/arch/mips64/mips64/vm_machdep.c13
4 files changed, 14 insertions, 31 deletions
diff --git a/sys/arch/mips64/mips64/mips64_machdep.c b/sys/arch/mips64/mips64/mips64_machdep.c
index 9e470b7b367..adbfac2748e 100644
--- a/sys/arch/mips64/mips64/mips64_machdep.c
+++ b/sys/arch/mips64/mips64/mips64_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mips64_machdep.c,v 1.23 2017/06/08 12:02:52 visa Exp $ */
+/* $OpenBSD: mips64_machdep.c,v 1.24 2017/09/01 13:16:47 visa Exp $ */
/*
* Copyright (c) 2009, 2010, 2012 Miodrag Vallat.
@@ -141,11 +141,8 @@ register_t protosr = SR_FR_32 | SR_XX | SR_UX | SR_KSU_USER | SR_EXL |
* Set registers on exec for native exec format. For o64/64.
*/
void
-setregs(p, pack, stack, retval)
- struct proc *p;
- struct exec_package *pack;
- u_long stack;
- register_t *retval;
+setregs(struct proc *p, struct exec_package *pack, u_long stack,
+ register_t *retval)
{
struct cpu_info *ci = curcpu();
diff --git a/sys/arch/mips64/mips64/process_machdep.c b/sys/arch/mips64/mips64/process_machdep.c
index 24c27ce3c35..381f4d847b1 100644
--- a/sys/arch/mips64/mips64/process_machdep.c
+++ b/sys/arch/mips64/mips64/process_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process_machdep.c,v 1.17 2016/03/06 19:42:27 mpi Exp $ */
+/* $OpenBSD: process_machdep.c,v 1.18 2017/09/01 13:16:47 visa Exp $ */
/*
* Copyright (c) 1994 Adam Glass
@@ -40,7 +40,7 @@
* From:
* Id: procfs_i386.c,v 4.1 1993/12/17 10:47:45 jsp Rel
*
- * $Id: process_machdep.c,v 1.17 2016/03/06 19:42:27 mpi Exp $
+ * $Id: process_machdep.c,v 1.18 2017/09/01 13:16:47 visa Exp $
*/
/*
@@ -79,9 +79,7 @@
#define REGSIZE (sizeof(struct trapframe) - sizeof(register_t))
int
-process_read_regs(p, regs)
- struct proc *p;
- struct reg *regs;
+process_read_regs(struct proc *p, struct reg *regs)
{
struct cpu_info *ci = curcpu();
@@ -96,9 +94,7 @@ process_read_regs(p, regs)
#ifdef PTRACE
int
-process_write_regs(p, regs)
- struct proc *p;
- struct reg *regs;
+process_write_regs(struct proc *p, struct reg *regs)
{
struct cpu_info *ci = curcpu();
register_t sr, ic, ipl;
@@ -120,9 +116,7 @@ process_write_regs(p, regs)
/* process_sstep is in trap.c */
int
-process_set_pc(p, addr)
- struct proc *p;
- caddr_t addr;
+process_set_pc(struct proc *p, caddr_t addr)
{
p->p_md.md_regs->pc = (register_t)addr;
return (0);
diff --git a/sys/arch/mips64/mips64/sys_machdep.c b/sys/arch/mips64/mips64/sys_machdep.c
index 591e1ee3ee4..d017bcaa193 100644
--- a/sys/arch/mips64/mips64/sys_machdep.c
+++ b/sys/arch/mips64/mips64/sys_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_machdep.c,v 1.8 2014/04/03 08:07:16 mpi Exp $ */
+/* $OpenBSD: sys_machdep.c,v 1.9 2017/09/01 13:16:47 visa Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -60,10 +60,7 @@
int mips64_cacheflush(struct proc *, struct mips64_cacheflush_args *);
int
-sys_sysarch(p, v, retval)
- struct proc *p;
- void *v;
- register_t *retval;
+sys_sysarch(struct proc *p, void *v, register_t *retval)
{
struct sys_sysarch_args /* {
syscallarg(int) op;
diff --git a/sys/arch/mips64/mips64/vm_machdep.c b/sys/arch/mips64/mips64/vm_machdep.c
index ab3149ce449..6a235253497 100644
--- a/sys/arch/mips64/mips64/vm_machdep.c
+++ b/sys/arch/mips64/mips64/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.35 2017/04/13 03:52:25 guenther Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.36 2017/09/01 13:16:47 visa Exp $ */
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1992, 1993
@@ -142,8 +142,7 @@ cpu_fork(struct proc *p1, struct proc *p2, void *stack, void *tcb,
* cpu_exit is called as the last action during exit.
*/
void
-cpu_exit(p)
- struct proc *p;
+cpu_exit(struct proc *p)
{
struct cpu_info *ci = curcpu();
@@ -165,9 +164,7 @@ extern vm_map_t phys_map;
*/
void
-vmapbuf(bp, len)
- struct buf *bp;
- vsize_t len;
+vmapbuf(struct buf *bp, vsize_t len)
{
vaddr_t uva, kva;
vsize_t sz, off;
@@ -207,9 +204,7 @@ vmapbuf(bp, len)
* We also invalidate the TLB entries and restore the original b_addr.
*/
void
-vunmapbuf(bp, len)
- struct buf *bp;
- vsize_t len;
+vunmapbuf(struct buf *bp, vsize_t len)
{
vsize_t sz;
vaddr_t addr;