summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-29 22:54:20 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-15 19:19:23 +0100
commitbe78a5c7937a31128a3624dcace9df23492866f9 (patch)
tree18fe5f79b66f47aef9658d788fea84ef425d8127
parent6ff7e82fab67f23f0aa4caa18b886ce03c060f4d (diff)
Declare void argument lists
-rw-r--r--ddb/db_break.c8
-rw-r--r--ddb/db_command.c4
-rw-r--r--ddb/db_command.h2
-rw-r--r--ddb/db_cond.c2
-rw-r--r--ddb/db_examine.c4
-rw-r--r--ddb/db_input.c4
-rw-r--r--ddb/db_macro.c6
-rw-r--r--ddb/db_mp.c14
-rw-r--r--ddb/db_output.c2
-rw-r--r--ddb/db_run.c2
-rw-r--r--ddb/db_variables.c2
-rw-r--r--ddb/db_variables.h2
-rw-r--r--ddb/db_watch.c2
-rw-r--r--ddb/db_watch.h2
-rw-r--r--device/cons.c6
-rw-r--r--device/dev_lookup.c2
-rw-r--r--device/dev_name.c6
-rw-r--r--device/device_init.c2
-rw-r--r--device/ds_routines.c6
-rw-r--r--device/net_io.c8
-rw-r--r--i386/i386/debug_i386.c5
-rw-r--r--i386/i386/fpu.c18
-rw-r--r--i386/i386/gdt.c2
-rw-r--r--i386/i386/idt.c2
-rw-r--r--i386/i386/ktss.c2
-rw-r--r--i386/i386/ldt.c2
-rw-r--r--i386/i386/pcb.c2
-rw-r--r--i386/i386/pic.c4
-rw-r--r--i386/i386/pit.c2
-rw-r--r--i386/i386/trap.c4
-rw-r--r--i386/i386at/int_init.c2
-rw-r--r--i386/i386at/kd.c62
-rw-r--r--i386/i386at/kd_event.c6
-rw-r--r--i386/i386at/model_dep.c2
-rw-r--r--i386/i386at/rtc.c4
-rw-r--r--i386/intel/pmap.c10
-rw-r--r--ipc/ipc_init.c2
-rw-r--r--kern/act.c6
-rw-r--r--kern/ast.c4
-rw-r--r--kern/boot_script.c2
-rw-r--r--kern/bootstrap.c6
-rw-r--r--kern/exception.c4
-rw-r--r--kern/mach_clock.c10
-rw-r--r--kern/startup.c6
-rw-r--r--kern/syscall_emulation.c2
-rw-r--r--kern/syscall_sw.c4
-rw-r--r--kern/time_stamp.c2
-rw-r--r--kern/timer.c2
-rw-r--r--vm/vm_fault.c2
-rw-r--r--vm/vm_init.c4
-rw-r--r--vm/vm_pageout.c8
51 files changed, 139 insertions, 140 deletions
diff --git a/ddb/db_break.c b/ddb/db_break.c
index f94663ae..0d099420 100644
--- a/ddb/db_break.c
+++ b/ddb/db_break.c
@@ -227,7 +227,7 @@ db_force_delete_breakpoint(bkpt, task_thd, is_task)
}
void
-db_check_breakpoint_valid()
+db_check_breakpoint_valid(void)
{
db_thread_breakpoint_t tbp, tbp_next;
db_breakpoint_t bkpt, *bkptp;
@@ -524,7 +524,7 @@ db_delete_temp_breakpoint(task, bkpt)
* List breakpoints.
*/
void
-db_list_breakpoints()
+db_list_breakpoints(void)
{
db_breakpoint_t bkpt;
@@ -598,7 +598,7 @@ db_list_breakpoints()
/* Delete breakpoint */
/*ARGSUSED*/
void
-db_delete_cmd()
+db_delete_cmd(void)
{
int n;
thread_t thread;
@@ -731,7 +731,7 @@ db_breakpoint_cmd(addr, have_addr, count, modif)
/* list breakpoints */
void
-db_listbreak_cmd()
+db_listbreak_cmd(void)
{
db_list_breakpoints();
}
diff --git a/ddb/db_command.c b/ddb/db_command.c
index 2bff8291..85cbf816 100644
--- a/ddb/db_command.c
+++ b/ddb/db_command.c
@@ -383,7 +383,7 @@ struct db_command *ptr;
struct db_command *db_last_command = 0;
void
-db_help_cmd()
+db_help_cmd(void)
{
struct db_command *cmd = db_command_table;
@@ -471,7 +471,7 @@ void db_error(s)
* !expr(arg,arg,arg)
*/
void
-db_fncall()
+db_fncall(void)
{
db_expr_t fn_addr;
#define MAXARGS 11
diff --git a/ddb/db_command.h b/ddb/db_command.h
index 1edf1d65..30e1f21e 100644
--- a/ddb/db_command.h
+++ b/ddb/db_command.h
@@ -69,7 +69,7 @@ struct db_command {
extern boolean_t db_exec_cmd_nest(char *cmd, int size);
-void db_fncall();
+void db_fncall(void);
void db_help_cmd(void);
diff --git a/ddb/db_cond.c b/ddb/db_cond.c
index 82ec0d69..ae52bef8 100644
--- a/ddb/db_cond.c
+++ b/ddb/db_cond.c
@@ -123,7 +123,7 @@ db_cond_print(bkpt)
}
void
-db_cond_cmd()
+db_cond_cmd(void)
{
int c;
struct db_cond *cp;
diff --git a/ddb/db_examine.c b/ddb/db_examine.c
index 9ffcb01c..6e7f89cc 100644
--- a/ddb/db_examine.c
+++ b/ddb/db_examine.c
@@ -255,7 +255,7 @@ char db_print_format = 'x';
/*ARGSUSED*/
void
-db_print_cmd()
+db_print_cmd(void)
{
db_expr_t value;
int t;
@@ -344,7 +344,7 @@ db_strcpy(dst, src)
* Syntax: search [/bhl] addr value [mask] [,count] [thread]
*/
void
-db_search_cmd()
+db_search_cmd(void)
{
int t;
db_addr_t addr;
diff --git a/ddb/db_input.c b/ddb/db_input.c
index 7fee8fd7..5be3a8ad 100644
--- a/ddb/db_input.c
+++ b/ddb/db_input.c
@@ -111,7 +111,7 @@ db_delete(n, bwd)
}
void
-db_delete_line()
+db_delete_line(void)
{
db_delete(db_le - db_lc, DEL_FWD);
db_delete(db_lc - db_lbuf_start, DEL_BWD);
@@ -349,7 +349,7 @@ db_readline(lstart, lsize)
}
void
-db_check_interrupt()
+db_check_interrupt(void)
{
int c;
diff --git a/ddb/db_macro.c b/ddb/db_macro.c
index 9d14b121..f985679e 100644
--- a/ddb/db_macro.c
+++ b/ddb/db_macro.c
@@ -73,7 +73,7 @@ db_lookup_macro(name)
}
void
-db_def_macro_cmd()
+db_def_macro_cmd(void)
{
char *p;
int c;
@@ -104,7 +104,7 @@ db_def_macro_cmd()
}
void
-db_del_macro_cmd()
+db_del_macro_cmd(void)
{
struct db_user_macro *mp;
@@ -120,7 +120,7 @@ db_del_macro_cmd()
}
void
-db_show_macro()
+db_show_macro(void)
{
struct db_user_macro *mp;
int t;
diff --git a/ddb/db_mp.c b/ddb/db_mp.c
index 3dfef09c..ae82c27d 100644
--- a/ddb/db_mp.c
+++ b/ddb/db_mp.c
@@ -63,7 +63,7 @@ boolean_t db_enter_debug = FALSE;
*/
boolean_t
-db_enter()
+db_enter(void)
{
int mycpu = cpu_number();
@@ -108,7 +108,7 @@ db_enter()
* Leave debugger.
*/
void
-db_leave()
+db_leave(void)
{
int mycpu = cpu_number();
@@ -143,7 +143,7 @@ db_leave()
*/
void
-remote_db() {
+remote_db(void) {
int my_cpu = cpu_number();
int i;
@@ -250,7 +250,7 @@ db_on(cpu)
* in kernel debugger and wants to stop other CPUs
*/
void
-remote_db_enter()
+remote_db_enter(void)
{
db_slave[cpu_number()]++;
kdb_kintr();
@@ -267,7 +267,7 @@ remote_db_enter()
* is active on another cpu.
*/
void
-lock_db()
+lock_db(void)
{
int my_cpu = cpu_number();
@@ -298,14 +298,14 @@ lock_db()
}
void
-unlock_db()
+unlock_db(void)
{
simple_unlock(&db_lock);
}
#if CONSOLE_ON_MASTER
void
-db_console()
+db_console(void)
{
if (i_bit(CBUS_PUT_CHAR, my_word)) {
volatile u_char c = cbus_ochar;
diff --git a/ddb/db_output.c b/ddb/db_output.c
index e0ea2f3f..f7561d24 100644
--- a/ddb/db_output.c
+++ b/ddb/db_output.c
@@ -99,7 +99,7 @@ db_force_whitespace(void)
}
static void
-db_more()
+db_more(void)
{
char *p;
boolean_t quit_output = FALSE;
diff --git a/ddb/db_run.c b/ddb/db_run.c
index 330b41b7..09786673 100644
--- a/ddb/db_run.c
+++ b/ddb/db_run.c
@@ -426,7 +426,7 @@ db_continue_cmd(addr, have_addr, count, modif)
}
boolean_t
-db_in_single_step()
+db_in_single_step(void)
{
return(db_run_mode != STEP_NONE && db_run_mode != STEP_CONTINUE);
}
diff --git a/ddb/db_variables.c b/ddb/db_variables.c
index e737cfe5..9d77c0a5 100644
--- a/ddb/db_variables.c
+++ b/ddb/db_variables.c
@@ -201,7 +201,7 @@ db_read_write_variable(vp, valuep, rw_flag, ap)
}
void
-db_set_cmd()
+db_set_cmd(void)
{
db_expr_t value;
int t;
diff --git a/ddb/db_variables.h b/ddb/db_variables.h
index 934a61f5..9880d50f 100644
--- a/ddb/db_variables.h
+++ b/ddb/db_variables.h
@@ -81,7 +81,7 @@ extern struct db_variable *db_eregs;
extern int db_get_variable(db_expr_t *valuep);
-void db_set_cmd();
+void db_set_cmd(void);
void db_read_write_variable(struct db_variable *, db_expr_t *, int, struct db_var_aux_param *);
diff --git a/ddb/db_watch.c b/ddb/db_watch.c
index e2bd8d68..567040c1 100644
--- a/ddb/db_watch.c
+++ b/ddb/db_watch.c
@@ -255,7 +255,7 @@ db_watchpoint_cmd(addr, have_addr, count, modif)
/* list watchpoints */
void
-db_listwatch_cmd()
+db_listwatch_cmd(void)
{
db_list_watchpoints();
}
diff --git a/ddb/db_watch.h b/ddb/db_watch.h
index fb95ae53..8e0f32fb 100644
--- a/ddb/db_watch.h
+++ b/ddb/db_watch.h
@@ -57,7 +57,7 @@ extern void db_set_watchpoint(task_t task, db_addr_t addr, vm_size_t size);
extern void db_delete_watchpoint(task_t task, db_addr_t addr);
extern void db_list_watchpoints(void);
-void db_listwatch_cmd();
+void db_listwatch_cmd(void);
void db_deletewatch_cmd(
db_expr_t addr,
diff --git a/device/cons.c b/device/cons.c
index 285fb99e..b04621ae 100644
--- a/device/cons.c
+++ b/device/cons.c
@@ -58,7 +58,7 @@ static boolean_t consbufused = FALSE;
#endif /* CONSBUFSIZE > 0 */
void
-cninit()
+cninit(void)
{
struct consdev *cp;
dev_ops_t cn_ops;
@@ -120,7 +120,7 @@ cninit()
int
-cngetc()
+cngetc(void)
{
if (cn_tab)
return ((*cn_tab->cn_getc)(cn_tab->cn_dev, 1));
@@ -130,7 +130,7 @@ cngetc()
}
int
-cnmaygetc()
+cnmaygetc(void)
{
if (cn_tab)
return((*cn_tab->cn_getc)(cn_tab->cn_dev, 0));
diff --git a/device/dev_lookup.c b/device/dev_lookup.c
index 40373867..255102cc 100644
--- a/device/dev_lookup.c
+++ b/device/dev_lookup.c
@@ -362,7 +362,7 @@ dev_map(routine, port)
* Initialization
*/
void
-dev_lookup_init()
+dev_lookup_init(void)
{
int i;
diff --git a/device/dev_name.c b/device/dev_name.c
index de9e360b..930930b4 100644
--- a/device/dev_name.c
+++ b/device/dev_name.c
@@ -39,18 +39,18 @@
/*
* Routines placed in empty entries in the device tables
*/
-int nulldev()
+int nulldev(void)
{
return (D_SUCCESS);
}
-int nodev()
+int nodev(void)
{
return (D_INVALID_OPERATION);
}
vm_offset_t
-nomap()
+nomap(void)
{
return (D_INVALID_OPERATION);
}
diff --git a/device/device_init.c b/device/device_init.c
index b2c8b880..794186ee 100644
--- a/device/device_init.c
+++ b/device/device_init.c
@@ -46,7 +46,7 @@
ipc_port_t master_device_port;
void
-device_service_create()
+device_service_create(void)
{
master_device_port = ipc_port_alloc_kernel();
if (master_device_port == IP_NULL)
diff --git a/device/ds_routines.c b/device/ds_routines.c
index d62be2bd..bc22495f 100644
--- a/device/ds_routines.c
+++ b/device/ds_routines.c
@@ -1479,7 +1479,7 @@ void iodone(ior)
splx(s);
}
-void io_done_thread_continue()
+void io_done_thread_continue(void)
{
for (;;) {
spl_t s;
@@ -1514,7 +1514,7 @@ void io_done_thread_continue()
}
}
-void io_done_thread()
+void io_done_thread(void)
{
/*
* Set thread privileges and highest priority.
@@ -1531,7 +1531,7 @@ void io_done_thread()
static void mach_device_trap_init(void); /* forward */
-void mach_device_init()
+void mach_device_init(void)
{
vm_offset_t device_io_min, device_io_max;
diff --git a/device/net_io.c b/device/net_io.c
index b3ec2926..4c03f8ce 100644
--- a/device/net_io.c
+++ b/device/net_io.c
@@ -524,7 +524,7 @@ boolean_t net_deliver(nonblocking)
* net_kmsg_get will do a wakeup.
*/
-void net_ast()
+void net_ast(void)
{
spl_t s;
@@ -553,7 +553,7 @@ void net_ast()
(void) splx(s);
}
-void net_thread_continue()
+void net_thread_continue(void)
{
for (;;) {
spl_t s;
@@ -579,7 +579,7 @@ void net_thread_continue()
}
}
-void net_thread()
+void net_thread(void)
{
spl_t s;
@@ -1492,7 +1492,7 @@ net_write(ifp, start, ior)
* Initialize the whole package.
*/
void
-net_io_init()
+net_io_init(void)
{
vm_size_t size;
diff --git a/i386/i386/debug_i386.c b/i386/i386/debug_i386.c
index 937d7b4b..01f26a06 100644
--- a/i386/i386/debug_i386.c
+++ b/i386/i386/debug_i386.c
@@ -59,9 +59,8 @@ struct debug_trace_entry
struct debug_trace_entry debug_trace_buf[DEBUG_TRACE_LEN];
int debug_trace_pos;
-
void
-debug_trace_reset()
+debug_trace_reset(void)
{
int s = splhigh();
debug_trace_pos = 0;
@@ -89,7 +88,7 @@ print_entry(int i, int *col)
}
void
-debug_trace_dump()
+debug_trace_dump(void)
{
int s = splhigh();
int i;
diff --git a/i386/i386/fpu.c b/i386/i386/fpu.c
index 4e3ab574..b1aed912 100644
--- a/i386/i386/fpu.c
+++ b/i386/i386/fpu.c
@@ -101,7 +101,7 @@ volatile thread_t fp_intr_thread = THREAD_NULL;
* Called on each CPU.
*/
void
-init_fpu()
+init_fpu(void)
{
unsigned short status, control;
@@ -185,7 +185,7 @@ init_fpu()
* Initialize FP handling.
*/
void
-fpu_module_init()
+fpu_module_init(void)
{
kmem_cache_init(&ifps_cache, "i386_fpsave_state",
sizeof(struct i386_fpsave_state), 16,
@@ -495,7 +495,7 @@ ASSERT_IPL(SPL0);
*
* Use 53-bit precision.
*/
-void fpinit()
+void fpinit(void)
{
unsigned short control;
@@ -519,7 +519,7 @@ ASSERT_IPL(SPL0);
* Coprocessor not present.
*/
void
-fpnoextflt()
+fpnoextflt(void)
{
/*
* Enable FPU use.
@@ -563,7 +563,7 @@ ASSERT_IPL(SPL0);
* Re-initialize FPU. Floating point state is not valid.
*/
void
-fpextovrflt()
+fpextovrflt(void)
{
thread_t thread = current_thread();
pcb_t pcb;
@@ -612,7 +612,7 @@ fpextovrflt()
}
static int
-fphandleerr()
+fphandleerr(void)
{
thread_t thread = current_thread();
@@ -659,7 +659,7 @@ fphandleerr()
* FPU error. Called by exception handler.
*/
void
-fpexterrflt()
+fpexterrflt(void)
{
thread_t thread = current_thread();
@@ -684,7 +684,7 @@ fpexterrflt()
* FPU error. Called by AST.
*/
void
-fpastintr()
+fpastintr(void)
{
thread_t thread = current_thread();
@@ -824,7 +824,7 @@ ASSERT_IPL(SPL0);
* Locking not needed; always called on the current thread.
*/
void
-fp_state_alloc()
+fp_state_alloc(void)
{
pcb_t pcb = current_thread()->pcb;
struct i386_fpsave_state *ifps;
diff --git a/i386/i386/gdt.c b/i386/i386/gdt.c
index 5523fea3..c895eb3a 100644
--- a/i386/i386/gdt.c
+++ b/i386/i386/gdt.c
@@ -46,7 +46,7 @@ extern
struct real_descriptor gdt[GDTSZ];
void
-gdt_init()
+gdt_init(void)
{
/* Initialize the kernel code and data segment descriptors. */
fill_gdt_descriptor(KERNEL_CS,
diff --git a/i386/i386/idt.c b/i386/i386/idt.c
index 882764f4..d304ec3e 100644
--- a/i386/i386/idt.c
+++ b/i386/i386/idt.c
@@ -36,7 +36,7 @@ struct idt_init_entry
};
extern struct idt_init_entry idt_inittab[];
-void idt_init()
+void idt_init(void)
{
#ifdef MACH_PV_DESCRIPTORS
if (hyp_set_trap_table(kvtolin(idt_inittab)))
diff --git a/i386/i386/ktss.c b/i386/i386/ktss.c
index 1b2938a0..21d00300 100644
--- a/i386/i386/ktss.c
+++ b/i386/i386/ktss.c
@@ -40,7 +40,7 @@
struct task_tss ktss;
void
-ktss_init()
+ktss_init(void)
{
/* XXX temporary exception stack */
static int exception_stack[1024];
diff --git a/i386/i386/ldt.c b/i386/i386/ldt.c
index 43b9efb5..a5e89f28 100644
--- a/i386/i386/ldt.c
+++ b/i386/i386/ldt.c
@@ -46,7 +46,7 @@ extern
struct real_descriptor ldt[LDTSZ];
void
-ldt_init()
+ldt_init(void)
{
#ifdef MACH_PV_DESCRIPTORS
#ifdef MACH_PV_PAGETABLES
diff --git a/i386/i386/pcb.c b/i386/i386/pcb.c
index 3827f5e8..82b2faf1 100644
--- a/i386/i386/pcb.c
+++ b/i386/i386/pcb.c
@@ -365,7 +365,7 @@ thread_t switch_context(old, continuation, new)
return Switch_context(old, continuation, new);
}
-void pcb_module_init()
+void pcb_module_init(void)
{
kmem_cache_init(&pcb_cache, "pcb", sizeof(struct pcb), 0,
NULL, NULL, NULL, 0);
diff --git a/i386/i386/pic.c b/i386/i386/pic.c
index 75cb835a..9c51497b 100644
--- a/i386/i386/pic.c
+++ b/i386/i386/pic.c
@@ -102,7 +102,7 @@ u_short PICM_ICW4, PICS_ICW4 ;
*/
void
-picinit()
+picinit(void)
{
asm("cli");
@@ -220,7 +220,7 @@ picinit()
#define SLAVEACTV 0xFF00
void
-form_pic_mask()
+form_pic_mask(void)
{
unsigned int i, j, bit, mask;
diff --git a/i386/i386/pit.c b/i386/i386/pit.c
index 85929e9e..da683308 100644
--- a/i386/i386/pit.c
+++ b/i386/i386/pit.c
@@ -65,7 +65,7 @@ int pit0_mode = PIT_C0|PIT_SQUAREMODE|PIT_READMODE ;
unsigned int clknumb = CLKNUM; /* interrupt interval for timer 0 */
void
-clkstart()
+clkstart(void)
{
unsigned char byte;
unsigned long s;
diff --git a/i386/i386/trap.c b/i386/i386/trap.c
index b891527d..97969404 100644
--- a/i386/i386/trap.c
+++ b/i386/i386/trap.c
@@ -70,7 +70,7 @@ extern struct db_watchpoint *db_watchpoint_list;
extern boolean_t db_watchpoints_inserted;
void
-thread_kdb_return()
+thread_kdb_return(void)
{
thread_t thread = current_thread();
struct i386_saved_state *regs = USER_REGS(thread);
@@ -563,7 +563,7 @@ printf("user trap %d error %d sub %08x\n", type, code, subcode);
* AT-bus machines.
*/
void
-i386_astintr()
+i386_astintr(void)
{
int mycpu = cpu_number();
diff --git a/i386/i386at/int_init.c b/i386/i386at/int_init.c
index 0f00b868..43daad8b 100644
--- a/i386/i386at/int_init.c
+++ b/i386/i386at/int_init.c
@@ -27,7 +27,7 @@
/* defined in locore.S */
extern vm_offset_t int_entry_table[];
-void int_init()
+void int_init(void)
{
int i;
diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c
index 2404eaff..a326626b 100644
--- a/i386/i386at/kd.c
+++ b/i386/i386at/kd.c
@@ -108,7 +108,7 @@ struct tty kd_tty;
extern boolean_t rebootflag;
static void charput(), charmvup(), charmvdown(), charclear(), charsetcursor();
-static void kd_noopreset();
+static void kd_noopreset(void);
/*
* These routines define the interface to the device-specific layer.
@@ -358,7 +358,7 @@ int kd_pollc = 0;
* Warning: uses outb(). You may prefer to use kd_debug_put.
*/
void
-feep()
+feep(void)
{
int i;
@@ -369,7 +369,7 @@ feep()
}
void
-pause()
+pause(void)
{
int i;
@@ -862,7 +862,7 @@ int vec;
* drop the ack on the floor.
*/
void
-kd_handle_ack()
+kd_handle_ack(void)
{
switch (kd_ack) {
case SET_LEDS:
@@ -887,7 +887,7 @@ kd_handle_ack()
* Resend a missed keyboard command or data byte.
*/
void
-kd_resend()
+kd_resend(void)
{
if (kd_ack == NOT_WAITING)
printf("unexpected RESEND from keyboard\n");
@@ -1147,7 +1147,7 @@ kdstop(tp, flags)
*
*/
void
-kdinit()
+kdinit(void)
{
unsigned char k_comm; /* keyboard command byte */
@@ -1235,7 +1235,7 @@ kd_belloff(void * param)
*
*/
void
-kd_bellon()
+kd_bellon(void)
{
unsigned char status;
@@ -1346,7 +1346,7 @@ csrpos_t newpos;
*
*/
void
-kd_scrollup()
+kd_scrollup(void)
{
csrpos_t to;
csrpos_t from;
@@ -1376,7 +1376,7 @@ kd_scrollup()
*
*/
void
-kd_scrolldn()
+kd_scrolldn(void)
{
csrpos_t to;
csrpos_t from;
@@ -1410,7 +1410,7 @@ kd_scrolldn()
*
*/
void
-kd_parseesc()
+kd_parseesc(void)
{
u_char *escp;
@@ -1747,7 +1747,7 @@ u_char *cp;
}
void
-kd_tab()
+kd_tab(void)
{
int i;
@@ -1768,7 +1768,7 @@ kd_tab()
*
*/
void
-kd_cls()
+kd_cls(void)
{
(*kd_dclear)(0, ONE_PAGE/ONE_SPACE, kd_attr);
return;
@@ -1786,7 +1786,7 @@ kd_cls()
*
*/
void
-kd_home()
+kd_home(void)
{
kd_setpos(0);
return;
@@ -1803,7 +1803,7 @@ kd_home()
*
*/
void
-kd_up()
+kd_up(void)
{
if (kd_curpos < ONE_LINE)
kd_scrolldn();
@@ -1823,7 +1823,7 @@ kd_up()
*
*/
void
-kd_down()
+kd_down(void)
{
if (kd_curpos >= (ONE_PAGE - ONE_LINE))
kd_scrollup();
@@ -1843,7 +1843,7 @@ kd_down()
*
*/
void
-kd_right()
+kd_right(void)
{
if (kd_curpos < (ONE_PAGE - ONE_SPACE))
kd_setpos(kd_curpos + ONE_SPACE);
@@ -1865,7 +1865,7 @@ kd_right()
*
*/
void
-kd_left()
+kd_left(void)
{
if (0 < kd_curpos)
kd_setpos(kd_curpos - ONE_SPACE);
@@ -1884,7 +1884,7 @@ kd_left()
*
*/
void
-kd_cr()
+kd_cr(void)
{
kd_setpos(BEG_OF_LINE(kd_curpos));
return;
@@ -1902,7 +1902,7 @@ kd_cr()
*
*/
void
-kd_cltobcur()
+kd_cltobcur(void)
{
csrpos_t start;
int count;
@@ -1925,7 +1925,7 @@ kd_cltobcur()
*
*/
void
-kd_cltopcur()
+kd_cltopcur(void)
{
int count;
@@ -1945,7 +1945,7 @@ kd_cltopcur()
*
*/
void
-kd_cltoecur()
+kd_cltoecur(void)
{
csrpos_t i;
csrpos_t hold;
@@ -1968,7 +1968,7 @@ kd_cltoecur()
*
*/
void
-kd_clfrbcur()
+kd_clfrbcur(void)
{
csrpos_t i;
@@ -2136,7 +2136,7 @@ int number;
*
*/
void
-kd_eraseln()
+kd_eraseln(void)
{
csrpos_t i;
csrpos_t stop;
@@ -2264,14 +2264,14 @@ unsigned char ch;
* read.
*/
unsigned char
-kd_getdata()
+kd_getdata(void)
{
while ((inb(K_STATUS) & K_OBUF_FUL) == 0);
return(inb(K_RDWR));
}
unsigned char
-kd_cmdreg_read()
+kd_cmdreg_read(void)
{
int ch=KC_CMD_READ;
@@ -2295,7 +2295,7 @@ int ch=KC_CMD_WRITE;
}
void
-kd_mouse_drain()
+kd_mouse_drain(void)
{
int i;
while(inb(K_STATUS) & K_IBUF_FUL);
@@ -2357,7 +2357,7 @@ u_char val;
}
void
-kd_setleds2()
+kd_setleds2(void)
{
kd_senddata(kd_nextled);
}
@@ -2381,7 +2381,7 @@ u_char val;
}
void
-kdreboot()
+kdreboot(void)
{
(*kd_dreset)();
@@ -2494,7 +2494,7 @@ int new_button = 0;
* Initialization specific to character-based graphics adapters.
*/
void
-kd_xga_init()
+kd_xga_init(void)
{
csrpos_t xga_getpos();
unsigned char screen;
@@ -2567,7 +2567,7 @@ kd_xga_init()
*
*/
csrpos_t
-xga_getpos()
+xga_getpos(void)
{
unsigned char low;
@@ -2670,7 +2670,7 @@ char chattr;
* No-op reset routine for kd_dreset.
*/
static void
-kd_noopreset()
+kd_noopreset(void)
{
}
diff --git a/i386/i386at/kd_event.c b/i386/i386at/kd_event.c
index 4e7b00a6..ac87b205 100644
--- a/i386/i386at/kd_event.c
+++ b/i386/i386at/kd_event.c
@@ -91,7 +91,7 @@ static boolean_t initialized = FALSE;
*/
void
-kbdinit()
+kbdinit(void)
{
spl_t s = SPLKD();
@@ -343,7 +343,7 @@ u_int *p;
}
void
-X_kdb_enter()
+X_kdb_enter(void)
{
u_int *u_ip, *endp;
@@ -354,7 +354,7 @@ X_kdb_enter()
}
void
-X_kdb_exit()
+X_kdb_exit(void)
{
u_int *u_ip, *endp;
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 5015d410..10c0c41d 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -196,7 +196,7 @@ void machine_idle (int cpu)
#endif /* MACH_HYP */
}
-void machine_relax ()
+void machine_relax (void)
{
asm volatile ("rep; nop" : : : "memory");
}
diff --git a/i386/i386at/rtc.c b/i386/i386at/rtc.c
index 98f157f9..ff4309be 100644
--- a/i386/i386at/rtc.c
+++ b/i386/i386at/rtc.c
@@ -56,7 +56,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
static boolean_t first_rtcopen_ever = TRUE;
void
-rtcinit()
+rtcinit(void)
{
outb(RTC_ADDR, RTC_A);
outb(RTC_DATA, RTC_DIV2 | RTC_RATE6);
@@ -171,7 +171,7 @@ readtodc(tp)
}
int
-writetodc()
+writetodc(void)
{
struct rtc_st rtclk;
time_t n;
diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c
index ff6a3277..06c4daa0 100644
--- a/i386/intel/pmap.c
+++ b/i386/intel/pmap.c
@@ -573,7 +573,7 @@ vm_offset_t pmap_map_bd(virt, start, end, prot)
* and direct-map all physical memory.
* Called with mapping off.
*/
-void pmap_bootstrap()
+void pmap_bootstrap(void)
{
/*
* Mapping is turned off; we must reference only physical addresses.
@@ -897,7 +897,7 @@ void pmap_virtual_space(startp, endp)
* Called by vm_init, to initialize any structures that the pmap
* system needs to map virtual memory.
*/
-void pmap_init()
+void pmap_init(void)
{
long npages;
vm_offset_t addr;
@@ -996,7 +996,7 @@ boolean_t pmap_verify_free(phys)
* since these must be unlocked to use vm_page_grab.
*/
vm_offset_t
-pmap_page_table_page_alloc()
+pmap_page_table_page_alloc(void)
{
vm_page_t m;
vm_offset_t pa;
@@ -2790,7 +2790,7 @@ void pmap_update_interrupt(void)
/*
* Dummy routine to satisfy external reference.
*/
-void pmap_update_interrupt()
+void pmap_update_interrupt(void)
{
/* should never be called. */
}
@@ -2799,7 +2799,7 @@ void pmap_update_interrupt()
#if defined(__i386__)
/* Unmap page 0 to trap NULL references. */
void
-pmap_unmap_page_zero ()
+pmap_unmap_page_zero (void)
{
int *pte;
diff --git a/ipc/ipc_init.c b/ipc/ipc_init.c
index a7e9ec17..debda476 100644
--- a/ipc/ipc_init.c
+++ b/ipc/ipc_init.c
@@ -108,7 +108,7 @@ ipc_bootstrap(void)
*/
void
-ipc_init()
+ipc_init(void)
{
vm_offset_t min, max;
diff --git a/kern/act.c b/kern/act.c
index d76fe0ef..c0b6aa8b 100644
--- a/kern/act.c
+++ b/kern/act.c
@@ -64,7 +64,7 @@ static Act free_acts[ACT_STATIC_KLUDGE];
Act null_act;
void
-global_act_init()
+global_act_init(void)
{
#ifndef ACT_STATIC_KLUDGE
kmem_cache_init(&act_cache, "Act", sizeof(struct Act), 0,
@@ -257,7 +257,7 @@ void act_detach(Act *cur_act)
so RPC entry paths need not check it.
Locking: Act */
-void act_execute_returnhandlers()
+void act_execute_returnhandlers(void)
{
Act *act = current_act();
@@ -1061,7 +1061,7 @@ act_set_state_immediate(act, flavor, new_state, new_state_count)
return act_set_state(act, flavor, new_state, new_state_count);
}
-void act_count()
+void act_count(void)
{
int i;
Act *act;
diff --git a/kern/ast.c b/kern/ast.c
index e8e8c1bd..4b9d63d6 100644
--- a/kern/ast.c
+++ b/kern/ast.c
@@ -56,7 +56,7 @@
volatile ast_t need_ast[NCPUS];
void
-ast_init()
+ast_init(void)
{
#ifndef MACHINE_AST
int i;
@@ -114,7 +114,7 @@ ast_taken(void)
}
void
-ast_check()
+ast_check(void)
{
int mycpu = cpu_number();
processor_t myprocessor;
diff --git a/kern/boot_script.c b/kern/boot_script.c
index b2e9393b..a6196e05 100644
--- a/kern/boot_script.c
+++ b/kern/boot_script.c
@@ -485,7 +485,7 @@ boot_script_parse_line (void *hook, char *cmdline)
/* Execute commands previously parsed. */
int
-boot_script_exec ()
+boot_script_exec (void)
{
int cmd_index;
diff --git a/kern/bootstrap.c b/kern/bootstrap.c
index 41b02fee..c0576b74 100644
--- a/kern/bootstrap.c
+++ b/kern/bootstrap.c
@@ -107,7 +107,7 @@ task_insert_send_right(
return name;
}
-void bootstrap_create()
+void bootstrap_create(void)
{
int compat;
int n = 0;
@@ -642,7 +642,7 @@ build_args_and_stack(struct exec_info *boot_exec_info,
static void
-user_bootstrap_compat()
+user_bootstrap_compat(void)
{
exec_info_t boot_exec_info;
@@ -744,7 +744,7 @@ boot_script_exec_cmd (void *hook, task_t task, char *path, int argc,
return 0;
}
-static void user_bootstrap()
+static void user_bootstrap(void)
{
struct user_bootstrap_info *info = current_thread()->saved.other;
exec_info_t boot_exec_info;
diff --git a/kern/exception.c b/kern/exception.c
index 02327739..2ca404d1 100644
--- a/kern/exception.c
+++ b/kern/exception.c
@@ -217,7 +217,7 @@ exception_try_task(_exception, code, subcode)
*/
void
-exception_no_server()
+exception_no_server(void)
{
ipc_thread_t self = current_thread();
@@ -828,7 +828,7 @@ exception_parse_reply(kmsg)
*/
void
-exception_raise_continue()
+exception_raise_continue(void)
{
ipc_thread_t self = current_thread();
ipc_port_t reply_port = self->ith_port;
diff --git a/kern/mach_clock.c b/kern/mach_clock.c
index 29a14c9d..79e63dd8 100644
--- a/kern/mach_clock.c
+++ b/kern/mach_clock.c
@@ -270,7 +270,7 @@ void clock_interrupt(usec, usermode, basepri)
* and corrupts it.
*/
-void softclock()
+void softclock(void)
{
/*
* Handle timeouts.
@@ -360,7 +360,7 @@ boolean_t reset_timeout(telt)
}
}
-void init_timeout()
+void init_timeout(void)
{
simple_lock_init(&timer_lock);
queue_init(&timer_head.chain);
@@ -490,7 +490,7 @@ host_adjust_time(host, new_adjustment, old_adjustment)
return (KERN_SUCCESS);
}
-void mapable_time_init()
+void mapable_time_init(void)
{
if (kmem_alloc_wired(kernel_map, (vm_offset_t *) &mtime, PAGE_SIZE)
!= KERN_SUCCESS)
@@ -499,11 +499,11 @@ void mapable_time_init()
update_mapped_time(&time);
}
-int timeopen()
+int timeopen(void)
{
return(0);
}
-int timeclose()
+int timeclose(void)
{
return(0);
}
diff --git a/kern/startup.c b/kern/startup.c
index 78c210d2..81874e73 100644
--- a/kern/startup.c
+++ b/kern/startup.c
@@ -86,7 +86,7 @@ extern char *kernel_cmdline;
*
* Assumes that master_cpu is set.
*/
-void setup_main()
+void setup_main(void)
{
thread_t startup_thread;
@@ -198,7 +198,7 @@ void setup_main()
* Now running in a thread. Create the rest of the kernel threads
* and the bootstrap task.
*/
-void start_kernel_threads()
+void start_kernel_threads(void)
{
int i;
@@ -266,7 +266,7 @@ void start_kernel_threads()
}
#if NCPUS > 1
-void slave_main()
+void slave_main(void)
{
cpu_launch_first_thread(THREAD_NULL);
}
diff --git a/kern/syscall_emulation.c b/kern/syscall_emulation.c
index 0f4a2bec..290c51a5 100644
--- a/kern/syscall_emulation.c
+++ b/kern/syscall_emulation.c
@@ -57,7 +57,7 @@
/*
* eml_init: initialize user space emulation code
*/
-void eml_init()
+void eml_init(void)
{
}
diff --git a/kern/syscall_sw.c b/kern/syscall_sw.c
index 084f2e0d..a383e467 100644
--- a/kern/syscall_sw.c
+++ b/kern/syscall_sw.c
@@ -60,13 +60,13 @@
boolean_t kern_invalid_debug = FALSE;
-mach_port_t null_port()
+mach_port_t null_port(void)
{
if (kern_invalid_debug) SoftDebugger("null_port mach trap");
return(MACH_PORT_NULL);
}
-kern_return_t kern_invalid()
+kern_return_t kern_invalid(void)
{
if (kern_invalid_debug) SoftDebugger("kern_invalid mach trap");
return(KERN_INVALID_ARGUMENT);
diff --git a/kern/time_stamp.c b/kern/time_stamp.c
index 9adfc145..2c142746 100644
--- a/kern/time_stamp.c
+++ b/kern/time_stamp.c
@@ -54,7 +54,7 @@ struct tsval *tsp;
* Initialization procedure.
*/
-void timestamp_init()
+void timestamp_init(void)
{
ts_tick_count = 0;
}
diff --git a/kern/timer.c b/kern/timer.c
index 0c73c695..6ee9a101 100644
--- a/kern/timer.c
+++ b/kern/timer.c
@@ -45,7 +45,7 @@ timer_data_t kernel_timer[NCPUS];
* service routine on the callout queue. All timers must be
* serviced by the callout routine once an hour.
*/
-void init_timers()
+void init_timers(void)
{
int i;
timer_t this_timer;
diff --git a/vm/vm_fault.c b/vm/vm_fault.c
index 96c83873..d9c3d7b8 100644
--- a/vm/vm_fault.c
+++ b/vm/vm_fault.c
@@ -1136,7 +1136,7 @@ vm_fault_return_t vm_fault_page(first_object, first_offset,
*/
void
-vm_fault_continue()
+vm_fault_continue(void)
{
vm_fault_state_t *state =
(vm_fault_state_t *) current_thread()->ith_other;
diff --git a/vm/vm_init.c b/vm/vm_init.c
index 89eb0984..3d1081cc 100644
--- a/vm/vm_init.c
+++ b/vm/vm_init.c
@@ -51,7 +51,7 @@
* This is done only by the first cpu up.
*/
-void vm_mem_bootstrap()
+void vm_mem_bootstrap(void)
{
vm_offset_t start, end;
@@ -79,7 +79,7 @@ void vm_mem_bootstrap()
memory_manager_default_init();
}
-void vm_mem_init()
+void vm_mem_init(void)
{
vm_object_init();
memory_object_proxy_init();
diff --git a/vm/vm_pageout.c b/vm/vm_pageout.c
index 46ba56b8..f4f1fef0 100644
--- a/vm/vm_pageout.c
+++ b/vm/vm_pageout.c
@@ -507,7 +507,7 @@ vm_pageout_page(m, initial, flush)
* vm_page_free_wanted == 0.
*/
-void vm_pageout_scan()
+void vm_pageout_scan(void)
{
unsigned int burst_count;
unsigned int want_pages;
@@ -853,7 +853,7 @@ void vm_pageout_scan()
}
}
-void vm_pageout_scan_continue()
+void vm_pageout_scan_continue(void)
{
/*
* We just paused to let the pagers catch up.
@@ -884,7 +884,7 @@ void vm_pageout_scan_continue()
* vm_pageout is the high level pageout daemon.
*/
-void vm_pageout_continue()
+void vm_pageout_continue(void)
{
/*
* The pageout daemon is never done, so loop forever.
@@ -906,7 +906,7 @@ void vm_pageout_continue()
}
}
-void vm_pageout()
+void vm_pageout(void)
{
int free_after_reserve;