diff options
author | Tobias Ulmer <tobiasu@cvs.openbsd.org> | 2016-03-05 17:16:34 +0000 |
---|---|---|
committer | Tobias Ulmer <tobiasu@cvs.openbsd.org> | 2016-03-05 17:16:34 +0000 |
commit | 29a889cee9d0ffc19ad8213c1e45dccfd82973f5 (patch) | |
tree | 706dcbb5173b448f407452a754967ed469957ad7 /sys | |
parent | 03d7045822f0ffa0503e42845bea18971d681b98 (diff) |
Sync no-argument function declaration and definition by adding (void).
Covers all of landisk/sh, per naddy's suggestion.
ok on previous diff deraadt@ naddy@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/landisk/landisk/conf.c | 4 | ||||
-rw-r--r-- | sys/arch/landisk/landisk/machdep.c | 6 | ||||
-rw-r--r-- | sys/arch/sh/dev/scif.c | 4 | ||||
-rw-r--r-- | sys/arch/sh/sh/cache.c | 8 | ||||
-rw-r--r-- | sys/arch/sh/sh/cache_sh3.c | 6 | ||||
-rw-r--r-- | sys/arch/sh/sh/clock.c | 10 | ||||
-rw-r--r-- | sys/arch/sh/sh/db_interface.c | 4 | ||||
-rw-r--r-- | sys/arch/sh/sh/devreg.c | 4 | ||||
-rw-r--r-- | sys/arch/sh/sh/mmu_sh3.c | 6 | ||||
-rw-r--r-- | sys/arch/sh/sh/mmu_sh4.c | 8 | ||||
-rw-r--r-- | sys/arch/sh/sh/pmap.c | 10 | ||||
-rw-r--r-- | sys/arch/sh/sh/sh_machdep.c | 10 |
12 files changed, 40 insertions, 40 deletions
diff --git a/sys/arch/landisk/landisk/conf.c b/sys/arch/landisk/landisk/conf.c index cd51b599f80..154ceae0adf 100644 --- a/sys/arch/landisk/landisk/conf.c +++ b/sys/arch/landisk/landisk/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.33 2016/02/26 09:10:05 natano Exp $ */ +/* $OpenBSD: conf.c,v 1.34 2016/03/05 17:16:33 tobiasu Exp $ */ /* * Copyright (c) 1994-1998 Mark Brinicombe. @@ -431,7 +431,7 @@ int nchrtoblktbl = nitems(chrtoblktbl); dev_t -getnulldev() +getnulldev(void) { return makedev(mem_no, 2); } diff --git a/sys/arch/landisk/landisk/machdep.c b/sys/arch/landisk/landisk/machdep.c index 65aaf9f37de..53bd1002aec 100644 --- a/sys/arch/landisk/landisk/machdep.c +++ b/sys/arch/landisk/landisk/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.42 2014/12/10 15:29:53 mikeb Exp $ */ +/* $OpenBSD: machdep.c,v 1.43 2016/03/05 17:16:33 tobiasu Exp $ */ /* $NetBSD: machdep.c,v 1.1 2006/09/01 21:26:18 uwe Exp $ */ /*- @@ -420,7 +420,7 @@ cpu_dump(int (*dump)(dev_t, daddr_t, caddr_t, size_t), daddr_t *blknop) * Return the size of the machine-dependent dump header, in disk blocks. */ u_int -cpu_dumpsize() +cpu_dumpsize(void) { u_int size; @@ -432,7 +432,7 @@ cpu_dumpsize() * Fill the machine-dependent dump header. */ void -cpu_init_kcore_hdr() +cpu_init_kcore_hdr(void) { extern cpu_kcore_hdr_t cpu_kcore_hdr; cpu_kcore_hdr_t *h = &cpu_kcore_hdr; diff --git a/sys/arch/sh/dev/scif.c b/sys/arch/sh/dev/scif.c index e3ec42245e1..0e29647480f 100644 --- a/sys/arch/sh/dev/scif.c +++ b/sys/arch/sh/dev/scif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scif.c,v 1.15 2011/04/30 16:08:44 miod Exp $ */ +/* $OpenBSD: scif.c,v 1.16 2016/03/05 17:16:33 tobiasu Exp $ */ /* $NetBSD: scif.c,v 1.47 2006/07/23 22:06:06 ad Exp $ */ /*- @@ -927,7 +927,7 @@ scifstop(struct tty *tp, int flag) } void -scif_intr_init() +scif_intr_init(void) { /* XXX */ } diff --git a/sys/arch/sh/sh/cache.c b/sys/arch/sh/sh/cache.c index 7c2adadea28..28f9dfb0e98 100644 --- a/sys/arch/sh/sh/cache.c +++ b/sys/arch/sh/sh/cache.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cache.c,v 1.4 2008/06/26 05:42:13 ray Exp $ */ +/* $OpenBSD: cache.c,v 1.5 2016/03/05 17:16:33 tobiasu Exp $ */ /* $NetBSD: cache.c,v 1.11 2006/01/02 23:37:34 uwe Exp $ */ /*- @@ -69,7 +69,7 @@ int sh_cache_index_mode_dcache; int sh_cache_prefer_mask; void -sh_cache_init() +sh_cache_init(void) { #ifdef CACHE_DEBUG return; @@ -85,7 +85,7 @@ sh_cache_init() } void -sh_cache_information() +sh_cache_information(void) { #ifdef CACHE_DEBUG printf("*** USE CPU INDEPENDENT CACHE OPS. ***\n"); @@ -141,7 +141,7 @@ sh_cache_information() * CPU-independent cache flush. */ void -__cache_flush() +__cache_flush(void) { volatile int *p = (int *)SH3_PHYS_TO_P1SEG(IOM_RAM_BEGIN); int i; diff --git a/sys/arch/sh/sh/cache_sh3.c b/sys/arch/sh/sh/cache_sh3.c index 7b8c35be66b..536011e39ad 100644 --- a/sys/arch/sh/sh/cache_sh3.c +++ b/sys/arch/sh/sh/cache_sh3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cache_sh3.c,v 1.2 2008/06/26 05:42:13 ray Exp $ */ +/* $OpenBSD: cache_sh3.c,v 1.3 2016/03/05 17:16:33 tobiasu Exp $ */ /* $NetBSD: cache_sh3.c,v 1.12 2006/03/04 01:13:35 uwe Exp $ */ /*- @@ -53,7 +53,7 @@ static inline void cache_sh3_op_line_16_nway(int, vaddr_t, uint32_t); static inline void cache_sh3_op_8lines_16_nway(int, vaddr_t, uint32_t); void -sh3_cache_config() +sh3_cache_config(void) { size_t cache_size; uint32_t r; @@ -179,7 +179,7 @@ cache_sh3_op_8lines_16_nway(int n, vaddr_t va, uint32_t bits) } void -sh3_cache_wbinv_all() +sh3_cache_wbinv_all(void) { vaddr_t va; diff --git a/sys/arch/sh/sh/clock.c b/sys/arch/sh/sh/clock.c index 9cc530404ba..6fafb457c52 100644 --- a/sys/arch/sh/sh/clock.c +++ b/sys/arch/sh/sh/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.8 2016/02/26 02:07:03 mmcc Exp $ */ +/* $OpenBSD: clock.c,v 1.9 2016/03/05 17:16:33 tobiasu Exp $ */ /* $NetBSD: clock.c,v 1.32 2006/09/05 11:09:36 uwe Exp $ */ /*- @@ -191,13 +191,13 @@ sh_clock_init(int flags, struct rtc_ops *rtc) } int -sh_clock_get_cpuclock() +sh_clock_get_cpuclock(void) { return (sh_clock.cpuclock); } int -sh_clock_get_pclock() +sh_clock_get_pclock(void) { return (sh_clock.pclock); } @@ -227,7 +227,7 @@ delay(int n) * Start the clock interrupt. */ void -cpu_initclocks() +cpu_initclocks(void) { if (sh_clock.pclock == 0) panic("No PCLOCK information."); @@ -335,7 +335,7 @@ inittodr(time_t base) } void -resettodr() +resettodr(void) { struct clock_ymdhms dt; int s; diff --git a/sys/arch/sh/sh/db_interface.c b/sys/arch/sh/sh/db_interface.c index 0a16ef3cb95..ebdc6d7c5e4 100644 --- a/sys/arch/sh/sh/db_interface.c +++ b/sys/arch/sh/sh/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.6 2016/02/27 13:08:07 mpi Exp $ */ +/* $OpenBSD: db_interface.c,v 1.7 2016/03/05 17:16:33 tobiasu Exp $ */ /* $NetBSD: db_interface.c,v 1.37 2006/09/06 00:11:49 uwe Exp $ */ /*- @@ -147,7 +147,7 @@ db_ktrap(int type, int code, db_regs_t *regs) } void -Debugger() +Debugger(void) { __asm volatile("trapa %0" :: "i"(_SH_TRA_BREAK)); } diff --git a/sys/arch/sh/sh/devreg.c b/sys/arch/sh/sh/devreg.c index 9e1f2576f2a..1565d6fe939 100644 --- a/sys/arch/sh/sh/devreg.c +++ b/sys/arch/sh/sh/devreg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: devreg.c,v 1.2 2008/06/26 05:42:13 ray Exp $ */ +/* $OpenBSD: devreg.c,v 1.3 2016/03/05 17:16:33 tobiasu Exp $ */ /* $NetBSD: devreg.c,v 1.6 2006/03/04 01:13:35 uwe Exp $ */ /*- @@ -150,7 +150,7 @@ SH ## x ## REG(TCPR2); \ } while (/*CONSTCOND*/0) void -sh_devreg_init() +sh_devreg_init(void) { if (CPU_IS_SH3) SHREG(3); diff --git a/sys/arch/sh/sh/mmu_sh3.c b/sys/arch/sh/sh/mmu_sh3.c index ab6049b8e39..26e69c7a761 100644 --- a/sys/arch/sh/sh/mmu_sh3.c +++ b/sys/arch/sh/sh/mmu_sh3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mmu_sh3.c,v 1.2 2008/06/26 05:42:13 ray Exp $ */ +/* $OpenBSD: mmu_sh3.c,v 1.3 2016/03/05 17:16:33 tobiasu Exp $ */ /* $NetBSD: mmu_sh3.c,v 1.11 2006/03/04 01:13:35 uwe Exp $ */ /*- @@ -38,7 +38,7 @@ #include <sh/mmu_sh3.h> void -sh3_mmu_start() +sh3_mmu_start(void) { /* Zero clear all TLB entry */ sh3_tlb_invalidate_all(); @@ -89,7 +89,7 @@ sh3_tlb_invalidate_asid(int asid) } void -sh3_tlb_invalidate_all() +sh3_tlb_invalidate_all(void) { uint32_t aw, a; int e, w; diff --git a/sys/arch/sh/sh/mmu_sh4.c b/sys/arch/sh/sh/mmu_sh4.c index 4870d796db3..e8012b42c92 100644 --- a/sys/arch/sh/sh/mmu_sh4.c +++ b/sys/arch/sh/sh/mmu_sh4.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mmu_sh4.c,v 1.2 2008/06/26 05:42:13 ray Exp $ */ +/* $OpenBSD: mmu_sh4.c,v 1.3 2016/03/05 17:16:33 tobiasu Exp $ */ /* $NetBSD: mmu_sh4.c,v 1.11 2006/03/04 01:13:35 uwe Exp $ */ /*- @@ -42,7 +42,7 @@ static inline void __sh4_itlb_invalidate_all(void); static inline void -__sh4_itlb_invalidate_all() +__sh4_itlb_invalidate_all(void) { _reg_write_4(SH4_ITLB_AA, 0); _reg_write_4(SH4_ITLB_AA | (1 << SH4_ITLB_E_SHIFT), 0); @@ -51,7 +51,7 @@ __sh4_itlb_invalidate_all() } void -sh4_mmu_start() +sh4_mmu_start(void) { /* Zero clear all TLB entry */ _reg_write_4(SH4_MMUCR, 0); /* zero wired entry */ @@ -115,7 +115,7 @@ sh4_tlb_invalidate_asid(int asid) } void -sh4_tlb_invalidate_all() +sh4_tlb_invalidate_all(void) { uint32_t a; int e, eend, s; diff --git a/sys/arch/sh/sh/pmap.c b/sys/arch/sh/sh/pmap.c index b6a41d967ec..f89d70442ec 100644 --- a/sys/arch/sh/sh/pmap.c +++ b/sys/arch/sh/sh/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.23 2015/09/08 21:28:36 kettenis Exp $ */ +/* $OpenBSD: pmap.c,v 1.24 2016/03/05 17:16:33 tobiasu Exp $ */ /* $NetBSD: pmap.c,v 1.55 2006/08/07 23:19:36 tsutsui Exp $ */ /*- @@ -97,7 +97,7 @@ STATIC boolean_t __pmap_map_change(pmap_t, vaddr_t, paddr_t, vm_prot_t, pt_entry_t); void -pmap_bootstrap() +pmap_bootstrap(void) { /* Steal msgbuf area */ initmsgbuf((caddr_t)uvm_pageboot_alloc(MSGBUFSIZE), MSGBUFSIZE); @@ -200,7 +200,7 @@ pmap_growkernel(vaddr_t maxkvaddr) } void -pmap_init() +pmap_init(void) { /* Initialize pmap module */ pool_init(&__pmap_pmap_pool, sizeof(struct pmap), 0, 0, 0, "pmappl", @@ -211,7 +211,7 @@ pmap_init() } pmap_t -pmap_create() +pmap_create(void) { pmap_t pmap; struct vm_page *pg; @@ -1064,7 +1064,7 @@ __pmap_pte_load(pmap_t pmap, vaddr_t va, int flags) * Allocate new ASID. if all ASID are used, steal from other process. */ int -__pmap_asid_alloc() +__pmap_asid_alloc(void) { struct process *pr; struct proc *p; diff --git a/sys/arch/sh/sh/sh_machdep.c b/sys/arch/sh/sh/sh_machdep.c index 43d59b99a72..b76adc05229 100644 --- a/sys/arch/sh/sh/sh_machdep.c +++ b/sys/arch/sh/sh/sh_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sh_machdep.c,v 1.41 2015/10/21 07:59:18 mpi Exp $ */ +/* $OpenBSD: sh_machdep.c,v 1.42 2016/03/05 17:16:33 tobiasu Exp $ */ /* $NetBSD: sh3_machdep.c,v 1.59 2006/03/04 01:13:36 uwe Exp $ */ /* @@ -200,7 +200,7 @@ sh_cpu_init(int arch, int product) * Setup proc0 u-area. */ void -sh_proc0_init() +sh_proc0_init(void) { struct switchframe *sf; vaddr_t u; @@ -239,7 +239,7 @@ sh_proc0_init() } void -sh_startup() +sh_startup(void) { vaddr_t minaddr, maxaddr; @@ -330,7 +330,7 @@ dumpconf(void) } void -dumpsys() +dumpsys(void) { cpu_kcore_hdr_t *h = &cpu_kcore_hdr; daddr_t blkno; @@ -603,7 +603,7 @@ setregs(struct proc *p, struct exec_package *pack, u_long stack, * Jump to reset vector. */ void -cpu_reset() +cpu_reset(void) { _cpu_exception_suspend(); _reg_write_4(SH_(EXPEVT), EXPEVT_RESET_MANUAL); |