summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2016-03-07 05:32:48 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2016-03-07 05:32:48 +0000
commit5ed333f27f6afb161cbae160d2a95165806f8234 (patch)
treeb96bf6321e125d835ca6128a75a19e9b7ad25057 /sys/arch/i386
parent091132e1a3f6b1cb278d32305ecace428d5b74d7 (diff)
Sync no-argument function declaration and definition by adding (void).
ok mlarkin@ deraadt@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/bios.c4
-rw-r--r--sys/arch/i386/i386/cpu.c10
-rw-r--r--sys/arch/i386/i386/db_mp.c4
-rw-r--r--sys/arch/i386/i386/est.c4
-rw-r--r--sys/arch/i386/i386/gdt.c6
-rw-r--r--sys/arch/i386/i386/kvm86.c4
-rw-r--r--sys/arch/i386/i386/machdep.c18
-rw-r--r--sys/arch/i386/i386/nvram.c4
-rw-r--r--sys/arch/i386/i386/pmap.c4
-rw-r--r--sys/arch/i386/i386/pmapae.c4
-rw-r--r--sys/arch/i386/i386/wscons_machdep.c4
-rw-r--r--sys/arch/i386/include/pmap.h6
-rw-r--r--sys/arch/i386/stand/libsa/pxe.c6
13 files changed, 39 insertions, 39 deletions
diff --git a/sys/arch/i386/i386/bios.c b/sys/arch/i386/i386/bios.c
index 54f89774604..54ce58d99d2 100644
--- a/sys/arch/i386/i386/bios.c
+++ b/sys/arch/i386/i386/bios.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bios.c,v 1.114 2016/02/20 19:59:01 mlarkin Exp $ */
+/* $OpenBSD: bios.c,v 1.115 2016/03/07 05:32:46 naddy Exp $ */
/*
* Copyright (c) 1997-2001 Michael Shalayeff
@@ -496,7 +496,7 @@ biosattach(struct device *parent, struct device *self, void *aux)
}
void
-bios_getopt()
+bios_getopt(void)
{
bootarg_t *q;
bios_ddb_t *bios_ddb;
diff --git a/sys/arch/i386/i386/cpu.c b/sys/arch/i386/i386/cpu.c
index 7ea5e0c28fa..a5de783722f 100644
--- a/sys/arch/i386/i386/cpu.c
+++ b/sys/arch/i386/i386/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.71 2016/02/03 03:25:07 guenther Exp $ */
+/* $OpenBSD: cpu.c,v 1.72 2016/03/07 05:32:46 naddy Exp $ */
/* $NetBSD: cpu.c,v 1.1.2.7 2000/06/26 02:04:05 sommerfeld Exp $ */
/*-
@@ -152,7 +152,7 @@ void cpu_copy_trampoline(void);
* Called from mpbios_scan();
*/
void
-cpu_init_first()
+cpu_init_first(void)
{
cpu_copy_trampoline();
}
@@ -488,7 +488,7 @@ cpu_activate(struct device *self, int act)
#ifdef MULTIPROCESSOR
void
-cpu_boot_secondary_processors()
+cpu_boot_secondary_processors(void)
{
struct cpu_info *ci;
u_long i;
@@ -509,7 +509,7 @@ cpu_boot_secondary_processors()
}
void
-cpu_init_idle_pcbs()
+cpu_init_idle_pcbs(void)
{
struct cpu_info *ci;
u_long i;
@@ -605,7 +605,7 @@ cpu_hatch(void *v)
}
void
-cpu_copy_trampoline()
+cpu_copy_trampoline(void)
{
/*
* Copy boot code.
diff --git a/sys/arch/i386/i386/db_mp.c b/sys/arch/i386/i386/db_mp.c
index 151ab829e10..d17c33c0ca7 100644
--- a/sys/arch/i386/i386/db_mp.c
+++ b/sys/arch/i386/i386/db_mp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_mp.c,v 1.7 2015/02/11 05:54:48 dlg Exp $ */
+/* $OpenBSD: db_mp.c,v 1.8 2016/03/07 05:32:46 naddy Exp $ */
/*
* Copyright (c) 2003, 2004 Andreas Gunnarsson <andreas@openbsd.org>
@@ -41,7 +41,7 @@ extern volatile long db_switch_to_cpu;
* other CPUs by sending IPIs.
*/
int
-db_enter_ddb()
+db_enter_ddb(void)
{
int i;
diff --git a/sys/arch/i386/i386/est.c b/sys/arch/i386/i386/est.c
index 74c51a3dc7c..39dc5606591 100644
--- a/sys/arch/i386/i386/est.c
+++ b/sys/arch/i386/i386/est.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: est.c,v 1.47 2015/09/08 07:12:56 deraadt Exp $ */
+/* $OpenBSD: est.c,v 1.48 2016/03/07 05:32:46 naddy Exp $ */
/*
* Copyright (c) 2003 Michael Eriksson.
* All rights reserved.
@@ -968,7 +968,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/i386/i386/gdt.c b/sys/arch/i386/i386/gdt.c
index 71a7a4cb8e1..6254b0e617a 100644
--- a/sys/arch/i386/i386/gdt.c
+++ b/sys/arch/i386/i386/gdt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gdt.c,v 1.36 2016/03/03 12:41:30 naddy Exp $ */
+/* $OpenBSD: gdt.c,v 1.37 2016/03/07 05:32:46 naddy Exp $ */
/* $NetBSD: gdt.c,v 1.28 2002/12/14 09:38:50 junyoung Exp $ */
/*-
@@ -94,7 +94,7 @@ setgdt(int sel, void *base, size_t limit, int type, int dpl, int def32,
* Initialize the GDT subsystem. Called from autoconf().
*/
void
-gdt_init()
+gdt_init(void)
{
struct vm_page *pg;
vaddr_t va;
@@ -169,7 +169,7 @@ gdt_init_cpu(struct cpu_info *ci)
* near the end that we can sweep through.
*/
int
-gdt_get_slot()
+gdt_get_slot(void)
{
int slot;
diff --git a/sys/arch/i386/i386/kvm86.c b/sys/arch/i386/i386/kvm86.c
index cc0bb1b9601..5aef9cd21f7 100644
--- a/sys/arch/i386/i386/kvm86.c
+++ b/sys/arch/i386/i386/kvm86.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm86.c,v 1.10 2015/04/12 18:37:53 mlarkin Exp $ */
+/* $OpenBSD: kvm86.c,v 1.11 2016/03/07 05:32:46 naddy Exp $ */
/* $NetBSD: kvm86.c,v 1.10 2005/12/26 19:23:59 perry Exp $ */
/*
* Copyright (c) 2002
@@ -77,7 +77,7 @@ struct mutex kvm86_mp_mutex;
#define KVM86_IOPL3 /* not strictly necessary, saves a lot of traps */
void
-kvm86_init()
+kvm86_init(void)
{
size_t vmdsize;
char *buf;
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 1677fa5f622..372f439a0ac 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.580 2016/03/03 12:41:30 naddy Exp $ */
+/* $OpenBSD: machdep.c,v 1.581 2016/03/07 05:32:46 naddy Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -380,7 +380,7 @@ cpuid(u_int32_t ax, u_int32_t *regs)
* Machine-dependent startup code
*/
void
-cpu_startup()
+cpu_startup(void)
{
unsigned i;
vaddr_t minaddr, maxaddr, va;
@@ -457,7 +457,7 @@ cpu_startup()
* Set up proc0's TSS and LDT.
*/
void
-i386_proc0_tss_ldt_init()
+i386_proc0_tss_ldt_init(void)
{
int x;
struct pcb *pcb;
@@ -2760,7 +2760,7 @@ dumpconf(void)
* cpu_dump: dump machine-dependent kernel core dump headers.
*/
int
-cpu_dump()
+cpu_dump(void)
{
int (*dump)(dev_t, daddr_t, caddr_t, size_t);
long buf[dbtob(1) / sizeof (long)];
@@ -2795,7 +2795,7 @@ reserve_dumppages(vaddr_t p)
}
void
-dumpsys()
+dumpsys(void)
{
u_int i, j, npg;
int maddr;
@@ -3056,7 +3056,7 @@ fix_f00f(void)
#ifdef MULTIPROCESSOR
void
-cpu_init_idt()
+cpu_init_idt(void)
{
struct region_descriptor region;
setregion(&region, idt, NIDT * sizeof(idt[0]) - 1);
@@ -3407,14 +3407,14 @@ init386(paddr_t first_avail)
* initialize the system console.
*/
void
-consinit()
+consinit(void)
{
/* Already done in init386(). */
}
#ifdef KGDB
void
-kgdb_port_init()
+kgdb_port_init(void)
{
#if NCOM > 0
@@ -3428,7 +3428,7 @@ kgdb_port_init()
#endif /* KGDB */
void
-cpu_reset()
+cpu_reset(void)
{
struct region_descriptor region;
diff --git a/sys/arch/i386/i386/nvram.c b/sys/arch/i386/i386/nvram.c
index f9b43486b87..516ef158284 100644
--- a/sys/arch/i386/i386/nvram.c
+++ b/sys/arch/i386/i386/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/07 05:32:47 naddy Exp $ */
/*
* Copyright (c) 2004 Joshua Stein <jcs@openbsd.org>
@@ -135,7 +135,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/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c
index c487e959c0e..ba5d469be92 100644
--- a/sys/arch/i386/i386/pmap.c
+++ b/sys/arch/i386/i386/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.187 2016/03/03 12:41:30 naddy Exp $ */
+/* $OpenBSD: pmap.c,v 1.188 2016/03/07 05:32:47 naddy Exp $ */
/* $NetBSD: pmap.c,v 1.91 2000/06/02 17:46:37 thorpej Exp $ */
/*
@@ -710,7 +710,7 @@ pmap_tmpmap_pa(paddr_t pa)
*/
void
-pmap_tmpunmap_pa()
+pmap_tmpunmap_pa(void)
{
#ifdef MULTIPROCESSOR
int id = cpu_number();
diff --git a/sys/arch/i386/i386/pmapae.c b/sys/arch/i386/i386/pmapae.c
index 9210ed6b609..8e3770e01d9 100644
--- a/sys/arch/i386/i386/pmapae.c
+++ b/sys/arch/i386/i386/pmapae.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmapae.c,v 1.48 2016/02/20 19:59:01 mlarkin Exp $ */
+/* $OpenBSD: pmapae.c,v 1.49 2016/03/07 05:32:47 naddy Exp $ */
/*
* Copyright (c) 2006-2008 Michael Shalayeff
@@ -1868,7 +1868,7 @@ pmap_tmpmap_pa_pae(paddr_t pa)
*/
void
-pmap_tmpunmap_pa_pae()
+pmap_tmpunmap_pa_pae(void)
{
#ifdef MULTIPROCESSOR
int id = cpu_number();
diff --git a/sys/arch/i386/i386/wscons_machdep.c b/sys/arch/i386/i386/wscons_machdep.c
index ad98c9db107..d7cc1651cbc 100644
--- a/sys/arch/i386/i386/wscons_machdep.c
+++ b/sys/arch/i386/i386/wscons_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wscons_machdep.c,v 1.18 2011/06/28 20:19:18 matthieu Exp $ */
+/* $OpenBSD: wscons_machdep.c,v 1.19 2016/03/07 05:32:47 naddy Exp $ */
/*
* Copyright (c) 2001 Aaron Campbell
@@ -132,7 +132,7 @@ wscnpollc(dev_t dev, int on)
* Configure the display part of the console.
*/
void
-wscn_video_init()
+wscn_video_init(void)
{
#if (NVGA > 0)
if (vga_cnattach(I386_BUS_SPACE_IO, I386_BUS_SPACE_MEM, -1, 1) == 0)
diff --git a/sys/arch/i386/include/pmap.h b/sys/arch/i386/include/pmap.h
index 39667e4c8fc..656ad424e9c 100644
--- a/sys/arch/i386/include/pmap.h
+++ b/sys/arch/i386/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.80 2016/03/03 12:41:30 naddy Exp $ */
+/* $OpenBSD: pmap.h,v 1.81 2016/03/07 05:32:47 naddy Exp $ */
/* $NetBSD: pmap.h,v 1.44 2000/04/24 17:18:18 thorpej Exp $ */
/*
@@ -329,8 +329,8 @@ void pmap_tlb_shootwait(void);
#define pmap_tlb_shootwait()
#endif
-void pmap_prealloc_lowmem_ptp();
-void pmap_prealloc_lowmem_ptp_pae();
+void pmap_prealloc_lowmem_ptp(void);
+void pmap_prealloc_lowmem_ptp_pae(void);
vaddr_t pmap_tmpmap_pa(paddr_t);
void pmap_tmpunmap_pa(void);
vaddr_t pmap_tmpmap_pa_pae(paddr_t);
diff --git a/sys/arch/i386/stand/libsa/pxe.c b/sys/arch/i386/stand/libsa/pxe.c
index 6502b84a711..b38cfc6bdad 100644
--- a/sys/arch/i386/stand/libsa/pxe.c
+++ b/sys/arch/i386/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/07 05:32:47 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");