summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-19 20:43:54 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-20 00:26:27 +0100
commit549984f6b3b5ec146edcb03d86e637eff9956bd2 (patch)
tree5c082377d5f22bafbaae71408062ba2aaef18c5d
parentf533e173fccb40aac5c3e7f4f2277f3cdec5d029 (diff)
Declare void argument lists (part 2)
Declare void argument lists that were not declared in the first part of this patch and * kern/sched_prim.h (recompute_priorities): Fix prototype. * kern/startup.c (setup_main) (recompute_priorities): Fix call.
-rw-r--r--ddb/db_break.h4
-rw-r--r--ddb/db_watch.c2
-rw-r--r--device/blkio.c2
-rw-r--r--device/conf.h6
-rw-r--r--device/ds_routines.c2
-rw-r--r--device/net_io.h2
-rw-r--r--i386/i386/mp_desc.c2
-rw-r--r--kern/bootstrap.c4
-rw-r--r--kern/machine.c4
-rw-r--r--kern/sched_prim.h4
-rw-r--r--kern/startup.c2
-rw-r--r--vm/pmap.h2
-rw-r--r--vm/vm_resident.c2
13 files changed, 19 insertions, 19 deletions
diff --git a/ddb/db_break.h b/ddb/db_break.h
index ad86119..2dfa804 100644
--- a/ddb/db_break.h
+++ b/ddb/db_break.h
@@ -88,9 +88,9 @@ extern db_breakpoint_t db_set_breakpoint(const task_t task, db_addr_t addr,
int count, const thread_t thread,
boolean_t task_bpt);
-void db_listbreak_cmd();
+void db_listbreak_cmd(void);
-void db_delete_cmd();
+void db_delete_cmd(void);
void db_breakpoint_cmd(
db_expr_t addr,
diff --git a/ddb/db_watch.c b/ddb/db_watch.c
index c8a4286..5551e66 100644
--- a/ddb/db_watch.c
+++ b/ddb/db_watch.c
@@ -65,7 +65,7 @@ db_watchpoint_t db_watchpoint_list = 0;
extern vm_map_t kernel_map;
db_watchpoint_t
-db_watchpoint_alloc()
+db_watchpoint_alloc(void)
{
db_watchpoint_t watch;
diff --git a/device/blkio.c b/device/blkio.c
index 939067d..52d8c00 100644
--- a/device/blkio.c
+++ b/device/blkio.c
@@ -102,7 +102,7 @@ void minphys(ior)
* Dummy routine placed in device switch entries to indicate that
* block device may be mapped.
*/
-vm_offset_t block_io_mmap()
+vm_offset_t block_io_mmap(void)
{
return (0);
}
diff --git a/device/conf.h b/device/conf.h
index 8aacc86..a0d5010 100644
--- a/device/conf.h
+++ b/device/conf.h
@@ -58,9 +58,9 @@ typedef struct dev_ops *dev_ops_t;
/*
* Routines for null entries.
*/
-extern int nulldev(); /* no operation - OK */
-extern int nodev(); /* no operation - error */
-extern vm_offset_t nomap(); /* no operation - error */
+extern int nulldev(void); /* no operation - OK */
+extern int nodev(void); /* no operation - error */
+extern vm_offset_t nomap(void); /* no operation - error */
/*
* Flavor constants for d_dev_info routine
diff --git a/device/ds_routines.c b/device/ds_routines.c
index c99818b..82b5252 100644
--- a/device/ds_routines.c
+++ b/device/ds_routines.c
@@ -99,7 +99,7 @@
extern struct device_emulation_ops linux_block_emulation_ops;
#ifdef CONFIG_INET
extern struct device_emulation_ops linux_net_emulation_ops;
-extern void free_skbuffs ();
+extern void free_skbuffs (void);
#ifdef CONFIG_PCMCIA
extern struct device_emulation_ops linux_pcmcia_emulation_ops;
#endif /* CONFIG_PCMCIA */
diff --git a/device/net_io.h b/device/net_io.h
index e68e64a..f6de854 100644
--- a/device/net_io.h
+++ b/device/net_io.h
@@ -74,7 +74,7 @@ extern void net_kmsg_put(ipc_kmsg_t);
* Network utility routines.
*/
-extern void net_ast();
+extern void net_ast(void);
extern void net_packet(struct ifnet *, ipc_kmsg_t, unsigned int, boolean_t);
extern void net_filter(ipc_kmsg_t, ipc_kmsg_queue_t);
extern io_return_t net_getstat(struct ifnet *, dev_flavor_t, dev_status_t,
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c
index 4ff5e61..2ffe8ac 100644
--- a/i386/i386/mp_desc.c
+++ b/i386/i386/mp_desc.c
@@ -171,7 +171,7 @@ mp_desc_init(mycpu)
* is running. The machine array must show which CPUs exist.
*/
void
-interrupt_stack_alloc()
+interrupt_stack_alloc(void)
{
int i;
int cpu_count;
diff --git a/kern/bootstrap.c b/kern/bootstrap.c
index 86e238a..3e24d7b 100644
--- a/kern/bootstrap.c
+++ b/kern/bootstrap.c
@@ -82,8 +82,8 @@ static mach_port_t boot_host_port; /* local name */
extern char *kernel_cmdline;
-static void user_bootstrap(); /* forward */
-static void user_bootstrap_compat(); /* forward */
+static void user_bootstrap(void); /* forward */
+static void user_bootstrap_compat(void); /* forward */
static void bootstrap_exec_compat(void *exec_data); /* forward */
static void get_compat_strings(char *flags_str, char *root_str); /* forward */
diff --git a/kern/machine.c b/kern/machine.c
index d5944ce..52133cb 100644
--- a/kern/machine.c
+++ b/kern/machine.c
@@ -361,7 +361,7 @@ processor_t processor;
/*
* action_thread() shuts down processors or changes their assignment.
*/
-void action_thread_continue()
+void action_thread_continue(void)
{
processor_t processor;
spl_t s;
@@ -390,7 +390,7 @@ void action_thread_continue()
}
}
-void __attribute__((noreturn)) action_thread()
+void __attribute__((noreturn)) action_thread(void)
{
action_thread_continue();
/*NOTREACHED*/
diff --git a/kern/sched_prim.h b/kern/sched_prim.h
index 50041e4..8c62b8b 100644
--- a/kern/sched_prim.h
+++ b/kern/sched_prim.h
@@ -69,7 +69,7 @@ extern void thread_sleep(
event_t event,
simple_lock_t lock,
boolean_t interruptible);
-extern void thread_wakeup(); /* for function pointers */
+extern void thread_wakeup(void); /* for function pointers */
extern void thread_wakeup_prim(
event_t event,
boolean_t one_thread,
@@ -103,7 +103,7 @@ extern boolean_t thread_handoff(
thread_t old_thread,
continuation_t continuation,
thread_t new_thread);
-extern void recompute_priorities();
+extern void recompute_priorities(const void *param);
extern void update_priority(
thread_t thread);
extern void compute_my_priority(
diff --git a/kern/startup.c b/kern/startup.c
index 81874e7..12f5123 100644
--- a/kern/startup.c
+++ b/kern/startup.c
@@ -155,7 +155,7 @@ void setup_main(void)
* Kick off the time-out driven routines by calling
* them the first time.
*/
- recompute_priorities();
+ recompute_priorities(NULL);
compute_mach_factor();
/*
diff --git a/vm/pmap.h b/vm/pmap.h
index 95ba6da..134f9c6 100644
--- a/vm/pmap.h
+++ b/vm/pmap.h
@@ -183,7 +183,7 @@ extern void pmap_copy(pmap_t, pmap_t, vm_offset_t, vm_size_t,
#endif /* pmap_copy */
#ifndef pmap_attribute
/* Get/Set special memory attributes. */
-extern kern_return_t pmap_attribute();
+extern kern_return_t pmap_attribute(void);
#endif /* pmap_attribute */
/*
diff --git a/vm/vm_resident.c b/vm/vm_resident.c
index 6f34041..fa02cbc 100644
--- a/vm/vm_resident.c
+++ b/vm/vm_resident.c
@@ -918,7 +918,7 @@ vm_page_t vm_page_grab(
return mem;
}
-vm_offset_t vm_page_grab_phys_addr()
+vm_offset_t vm_page_grab_phys_addr(void)
{
vm_page_t p = vm_page_grab(FALSE);
if (p == VM_PAGE_NULL)