summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfcambus <fcambus@openbsd.org>2017-01-13 09:18:11 +0000
committerfcambus <fcambus@openbsd.org>2017-01-13 09:18:11 +0000
commit69e3e61aea4665779d1ca41f48afd072704a984a (patch)
treeb10c9fb916c7b657878d7342c331261c345c9441
parentRemove recursive splsoftnet() but use splsoftassert() instead. (diff)
downloadwireguard-openbsd-69e3e61aea4665779d1ca41f48afd072704a984a.tar.xz
wireguard-openbsd-69e3e61aea4665779d1ca41f48afd072704a984a.zip
Ansify cpu_sysctl() on alpha, arm, arm64, luna88k and sparc64.
OK mpi@
-rw-r--r--sys/arch/alpha/alpha/machdep.c12
-rw-r--r--sys/arch/arm/arm/arm32_machdep.c12
-rw-r--r--sys/arch/arm64/arm64/machdep.c12
-rw-r--r--sys/arch/luna88k/luna88k/machdep.c12
-rw-r--r--sys/arch/sparc64/sparc64/machdep.c12
5 files changed, 15 insertions, 45 deletions
diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c
index 66e780c8579..2e7de1c66f6 100644
--- a/sys/arch/alpha/alpha/machdep.c
+++ b/sys/arch/alpha/alpha/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.176 2016/10/09 11:25:39 tom Exp $ */
+/* $OpenBSD: machdep.c,v 1.177 2017/01/13 09:18:11 fcambus Exp $ */
/* $NetBSD: machdep.c,v 1.210 2000/06/01 17:12:38 thorpej Exp $ */
/*-
@@ -1553,14 +1553,8 @@ sys_sigreturn(struct proc *p, void *v, register_t *retval)
* machine dependent system variables.
*/
int
-cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
- int *name;
- u_int namelen;
- void *oldp;
- size_t *oldlenp;
- void *newp;
- size_t newlen;
- struct proc *p;
+cpu_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
+ size_t newlen, struct proc *p)
{
dev_t consdev;
#if NIOASIC > 0
diff --git a/sys/arch/arm/arm/arm32_machdep.c b/sys/arch/arm/arm/arm32_machdep.c
index f2d512e497c..44ae69fa7f9 100644
--- a/sys/arch/arm/arm/arm32_machdep.c
+++ b/sys/arch/arm/arm/arm32_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arm32_machdep.c,v 1.52 2016/09/23 11:38:21 kettenis Exp $ */
+/* $OpenBSD: arm32_machdep.c,v 1.53 2017/01/13 09:18:11 fcambus Exp $ */
/* $NetBSD: arm32_machdep.c,v 1.42 2003/12/30 12:33:15 pk Exp $ */
/*
@@ -300,14 +300,8 @@ cpu_startup()
*/
int
-cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
- int *name;
- u_int namelen;
- void *oldp;
- size_t *oldlenp;
- void *newp;
- size_t newlen;
- struct proc *p;
+cpu_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
+ size_t newlen, struct proc *p)
{
#if NAPM > 0
extern int cpu_apmwarn;
diff --git a/sys/arch/arm64/arm64/machdep.c b/sys/arch/arm64/arm64/machdep.c
index c8cdd7d550b..cac9895e73d 100644
--- a/sys/arch/arm64/arm64/machdep.c
+++ b/sys/arch/arm64/arm64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.2 2016/12/19 07:44:54 jsg Exp $ */
+/* $OpenBSD: machdep.c,v 1.3 2017/01/13 09:18:11 fcambus Exp $ */
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
*
@@ -293,14 +293,8 @@ cpu_startup()
*/
int
-cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
- int *name;
- u_int namelen;
- void *oldp;
- size_t *oldlenp;
- void *newp;
- size_t newlen;
- struct proc *p;
+cpu_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
+ size_t newlen, struct proc *p)
{
/* all sysctl names at this level are terminal */
if (namelen != 1)
diff --git a/sys/arch/luna88k/luna88k/machdep.c b/sys/arch/luna88k/luna88k/machdep.c
index 8ca16b2b47f..4601e71d4c4 100644
--- a/sys/arch/luna88k/luna88k/machdep.c
+++ b/sys/arch/luna88k/luna88k/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.121 2016/10/09 11:25:40 tom Exp $ */
+/* $OpenBSD: machdep.c,v 1.122 2017/01/13 09:18:11 fcambus Exp $ */
/*
* Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -916,14 +916,8 @@ sys_sysarch(p, v, retval)
*/
int
-cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
- int *name;
- u_int namelen;
- void *oldp;
- size_t *oldlenp;
- void *newp;
- size_t newlen;
- struct proc *p;
+cpu_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
+ size_t newlen, struct proc *p)
{
dev_t consdev;
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c
index a3b35a66e9e..53d0e08bf8c 100644
--- a/sys/arch/sparc64/sparc64/machdep.c
+++ b/sys/arch/sparc64/sparc64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.181 2016/10/09 11:25:40 tom Exp $ */
+/* $OpenBSD: machdep.c,v 1.182 2017/01/13 09:18:11 fcambus Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
@@ -367,14 +367,8 @@ struct sigframe {
* machine dependent system variables.
*/
int
-cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
- int *name;
- u_int namelen;
- void *oldp;
- size_t *oldlenp;
- void *newp;
- size_t newlen;
- struct proc *p;
+cpu_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
+ size_t newlen, struct proc *p)
{
int oldval, ret;