diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2016-03-06 22:41:25 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2016-03-06 22:41:25 +0000 |
commit | d9026f80ba76852242a532b85eeebd5d372deff3 (patch) | |
tree | 3ad625924aba6368b26b2580294f69b85a29b1e7 /sys/arch/amd64 | |
parent | a2b032bf6d07ddcc4fbe6abd5981942d76743994 (diff) |
Sync no-argument function declaration and definition by adding (void).
ok kettenis@ mpi@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/consinit.c | 4 | ||||
-rw-r--r-- | sys/arch/amd64/amd64/est.c | 4 | ||||
-rw-r--r-- | sys/arch/amd64/amd64/lapic.c | 12 | ||||
-rw-r--r-- | sys/arch/amd64/amd64/nvram.c | 4 | ||||
-rw-r--r-- | sys/arch/amd64/amd64/wscons_machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/amd64/stand/libsa/pxe.c | 6 |
6 files changed, 17 insertions, 17 deletions
diff --git a/sys/arch/amd64/amd64/consinit.c b/sys/arch/amd64/amd64/consinit.c index 301f8a281ea..c8185d12517 100644 --- a/sys/arch/amd64/amd64/consinit.c +++ b/sys/arch/amd64/amd64/consinit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: consinit.c,v 1.5 2015/03/14 03:38:46 jsg Exp $ */ +/* $OpenBSD: consinit.c,v 1.6 2016/03/06 22:41:24 naddy Exp $ */ /* $NetBSD: consinit.c,v 1.2 2003/03/02 18:27:14 fvdl Exp $ */ /* @@ -33,7 +33,7 @@ #include <machine/bus.h> void -consinit() +consinit(void) { /* already done in machdep.c */ } diff --git a/sys/arch/amd64/amd64/est.c b/sys/arch/amd64/amd64/est.c index 2e0b1c16524..547ae088e11 100644 --- a/sys/arch/amd64/amd64/est.c +++ b/sys/arch/amd64/amd64/est.c @@ -1,4 +1,4 @@ -/* $OpenBSD: est.c,v 1.38 2015/09/08 04:28:34 semarie Exp $ */ +/* $OpenBSD: est.c,v 1.39 2016/03/06 22:41:24 naddy Exp $ */ /* * Copyright (c) 2003 Michael Eriksson. * All rights reserved. @@ -224,7 +224,7 @@ struct fqlist * est_acpi_init(void); void est_acpi_pss_changed(struct acpicpu_pss *, int); struct fqlist * -est_acpi_init() +est_acpi_init(void) { struct acpicpu_pss *pss; struct fqlist *acpilist; diff --git a/sys/arch/amd64/amd64/lapic.c b/sys/arch/amd64/amd64/lapic.c index e39e656bb63..18b51a4cbb4 100644 --- a/sys/arch/amd64/amd64/lapic.c +++ b/sys/arch/amd64/amd64/lapic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lapic.c,v 1.42 2015/12/08 19:45:55 mikeb Exp $ */ +/* $OpenBSD: lapic.c,v 1.43 2016/03/06 22:41:24 naddy Exp $ */ /* $NetBSD: lapic.c,v 1.2 2003/05/08 01:04:35 fvdl Exp $ */ /*- @@ -94,12 +94,12 @@ extern int x2apic_eoi; int x2apic_enabled = 0; u_int32_t x2apic_readreg(int reg); -u_int32_t x2apic_cpu_number(); +u_int32_t x2apic_cpu_number(void); void x2apic_writereg(int reg, u_int32_t val); void x2apic_ipi(int vec, int target, int dl); u_int32_t i82489_readreg(int reg); -u_int32_t i82489_cpu_number(); +u_int32_t i82489_cpu_number(void); void i82489_writereg(int reg, u_int32_t val); void i82489_ipi(int vec, int target, int dl); @@ -117,7 +117,7 @@ i82489_readreg(int reg) } u_int32_t -i82489_cpu_number() +i82489_cpu_number(void) { return i82489_readreg(LAPIC_ID) >> LAPIC_ID_SHIFT; } @@ -136,7 +136,7 @@ x2apic_readreg(int reg) } u_int32_t -x2apic_cpu_number() +x2apic_cpu_number(void) { return x2apic_readreg(LAPIC_ID) & X2APIC_ID_MASK; } @@ -155,7 +155,7 @@ x2apic_writeicr(u_int32_t hi, u_int32_t lo) } u_int32_t -lapic_cpu_number() +lapic_cpu_number(void) { if (x2apic_enabled) return x2apic_cpu_number(); diff --git a/sys/arch/amd64/amd64/nvram.c b/sys/arch/amd64/amd64/nvram.c index 9acfa9c1e10..627f4eef71a 100644 --- a/sys/arch/amd64/amd64/nvram.c +++ b/sys/arch/amd64/amd64/nvram.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nvram.c,v 1.5 2016/01/08 08:00:12 stefan Exp $ */ +/* $OpenBSD: nvram.c,v 1.6 2016/03/06 22:41:24 naddy Exp $ */ /* * Copyright (c) 2004 Joshua Stein <jcs@openbsd.org> @@ -134,7 +134,7 @@ nvram_get_byte(int byteno) } int -nvram_csum_valid() +nvram_csum_valid(void) { u_short csum = 0; u_short csumexpect; diff --git a/sys/arch/amd64/amd64/wscons_machdep.c b/sys/arch/amd64/amd64/wscons_machdep.c index 71697ede808..9f1f8a6a041 100644 --- a/sys/arch/amd64/amd64/wscons_machdep.c +++ b/sys/arch/amd64/amd64/wscons_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wscons_machdep.c,v 1.11 2015/08/30 10:05:09 yasuoka Exp $ */ +/* $OpenBSD: wscons_machdep.c,v 1.12 2016/03/06 22:41:24 naddy Exp $ */ /* * Copyright (c) 2001 Aaron Campbell @@ -137,7 +137,7 @@ wscnpollc(dev_t dev, int on) * Configure the display part of the console. */ int -wscn_video_init() +wscn_video_init(void) { #if (NEFIFB > 0) if (efifb_cnattach() == 0) diff --git a/sys/arch/amd64/stand/libsa/pxe.c b/sys/arch/amd64/stand/libsa/pxe.c index 6502b84a711..e492b55d96b 100644 --- a/sys/arch/amd64/stand/libsa/pxe.c +++ b/sys/arch/amd64/stand/libsa/pxe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pxe.c,v 1.6 2014/08/21 14:24:08 mpi Exp $ */ +/* $OpenBSD: pxe.c,v 1.7 2016/03/06 22:41:24 naddy Exp $ */ /* $NetBSD: pxe.c,v 1.5 2003/03/11 18:29:00 drochner Exp $ */ /* @@ -202,7 +202,7 @@ static int pxe_inited; static struct iodesc desc; int -pxe_netif_open() +pxe_netif_open(void) { t_PXENV_UDP_OPEN *uo = (void *) pxe_command_buf; @@ -261,7 +261,7 @@ pxe_netif_close(sock) } void -pxe_netif_shutdown() +pxe_netif_shutdown(void) { #ifdef NETIF_DEBUG printf("pxe_netif_shutdown()\n"); |