[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 64/66] Cleanup of the prototypes
From: |
Marin Ramesa |
Subject: |
[PATCH 64/66] Cleanup of the prototypes |
Date: |
Thu, 5 Dec 2013 22:03:58 +0100 |
* device/cirbuf.h (nqdb): Remove prototype without definition.
* device/conf.h (dev_set_indirect): Likewise.
* kern/boot_script.h (boot_script_read_file): Likewise.
* kern/eventcount.h (evc_notify_abort): Remove duplicate prototype.
* kern/thread.h (thread_set_own_priority): Likewise.
* kern/thread_swap.h (thread_swapout): Remove prototype without definition.
* kern/timer.h (softclock): Remove duplicate prototype.
* vm/pmap.h (pmap_resident_count, pmap_access, pmap_phys_address,
pmap_phys_to_frame): Remove prototypes without function definition.
* vm/vm_page.h (vm_set_page_size): Likewise.
---
device/cirbuf.h | 1 -
device/conf.h | 5 -----
kern/boot_script.h | 4 ----
kern/eventcount.h | 2 --
kern/thread.h | 2 --
kern/thread_swap.h | 1 -
kern/timer.h | 2 --
vm/pmap.h | 22 ----------------------
vm/vm_page.h | 2 --
9 files changed, 41 deletions(-)
diff --git a/device/cirbuf.h b/device/cirbuf.h
index a3f50ce..5e4360b 100644
--- a/device/cirbuf.h
+++ b/device/cirbuf.h
@@ -52,7 +52,6 @@ extern int putc(int, struct cirbuf *);
extern int getc(struct cirbuf *);
extern int q_to_b(struct cirbuf *, char *, int);
extern int b_to_q(char *, int, struct cirbuf *);
-extern int nqdb(struct cirbuf *, int);
extern void ndflush(struct cirbuf *, int);
extern void cb_clear(struct cirbuf *);
diff --git a/device/conf.h b/device/conf.h
index e91e099..8aacc86 100644
--- a/device/conf.h
+++ b/device/conf.h
@@ -105,10 +105,5 @@ extern int dev_indirect_count;
di < &dev_indirect_list[dev_indirect_count]; \
di++)
-/*
- * Exported routine to set indirection.
- */
-extern void dev_set_indirect(char *, dev_ops_t, int);
-
#endif /* _DEVICE_CONF_H_ */
diff --git a/kern/boot_script.h b/kern/boot_script.h
index 069f5c5..b4fcb98 100644
--- a/kern/boot_script.h
+++ b/kern/boot_script.h
@@ -108,10 +108,6 @@ int boot_script_exec_cmd (void *hook,
task_t task, char *path, int argc,
char **argv, char *strings, int stringlen);
-/* The user must define this function. Load the contents of FILE
- into a fresh anonymous memory object and return the memory object port. */
-mach_port_t boot_script_read_file (const char *file);
-
/* The user must define this functions to perform the corresponding
Mach task manipulations. */
int boot_script_task_create (struct cmd *); /* task_create + task_suspend */
diff --git a/kern/eventcount.h b/kern/eventcount.h
index 4a4125c..08d390f 100644
--- a/kern/eventcount.h
+++ b/kern/eventcount.h
@@ -54,8 +54,6 @@ extern void evc_init(evc_t ev),
extern kern_return_t evc_wait(natural_t ev_id);
-extern void evc_notify_abort (thread_t thread);
-
#if NCPUS <= 1
void simpler_thread_setrun(
thread_t th,
diff --git a/kern/thread.h b/kern/thread.h
index 559e90b..9946bde 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -345,8 +345,6 @@ extern kern_return_t thread_halt(
boolean_t must_halt);
extern void thread_halt_self(void);
extern void thread_force_terminate(thread_t);
-extern void thread_set_own_priority(
- int priority);
extern thread_t kernel_thread(
task_t task,
void (*start)(void),
diff --git a/kern/thread_swap.h b/kern/thread_swap.h
index 3113030..7f611ec 100644
--- a/kern/thread_swap.h
+++ b/kern/thread_swap.h
@@ -39,6 +39,5 @@ extern void swapper_init(void);
extern void thread_swapin(thread_t thread);
extern void thread_doswapin(thread_t thread);
extern void swapin_thread(void);
-extern void thread_swapout(thread_t thread);
#endif /* _KERN_THREAD_SWAP_H_ */
diff --git a/kern/timer.h b/kern/timer.h
index 76a4117..57f017a 100644
--- a/kern/timer.h
+++ b/kern/timer.h
@@ -182,8 +182,6 @@ MACRO_END
extern void init_timers(void);
-void softclock(void);
-
void timer_init(timer_t this_timer);
#endif /* _KERN_TIMER_H_ */
diff --git a/vm/pmap.h b/vm/pmap.h
index 59fd03a..95ba6da 100644
--- a/vm/pmap.h
+++ b/vm/pmap.h
@@ -163,38 +163,16 @@ void pmap_clear_modify(vm_offset_t pa);
/* Return modify bit */
boolean_t pmap_is_modified(vm_offset_t pa);
-
-/*
- * Statistics routines
- */
-
-#ifndef pmap_resident_count
-extern int pmap_resident_count();
-#endif /* pmap_resident_count */
-
/*
* Sundry required routines
*/
/* Return a virtual-to-physical mapping, if possible. */
extern vm_offset_t pmap_extract(pmap_t, vm_offset_t);
-/* Is virtual address valid? */
-extern boolean_t pmap_access();
/* Perform garbage collection, if any. */
extern void pmap_collect(pmap_t);
/* Specify pageability. */
extern void pmap_change_wiring(pmap_t, vm_offset_t, boolean_t);
-#ifndef pmap_phys_address
-/* Transform address returned by device driver mapping function to physical
- * address known to this module. */
-extern vm_offset_t pmap_phys_address();
-#endif /* pmap_phys_address */
-#ifndef pmap_phys_to_frame
-/* Inverse of pmap_phys_address, for use by device driver mapping function in
- * machine-independent pseudo-devices. */
-extern int pmap_phys_to_frame();
-#endif /* pmap_phys_to_frame */
-
/*
* Optional routines
*/
diff --git a/vm/vm_page.h b/vm/vm_page.h
index f5681d7..4445cb0 100644
--- a/vm/vm_page.h
+++ b/vm/vm_page.h
@@ -242,8 +242,6 @@ extern void vm_page_copy(vm_page_t src_m, vm_page_t
dest_m);
extern void vm_page_wire(vm_page_t);
extern void vm_page_unwire(vm_page_t);
-extern void vm_set_page_size(void);
-
#if MACH_VM_DEBUG
extern unsigned int vm_page_info(
hash_info_bucket_t *info,
--
1.8.1.4
- [PATCH 53/66] kern/debug.c: initialize panicstr, (continued)
- [PATCH 53/66] kern/debug.c: initialize panicstr, Marin Ramesa, 2013/12/05
- [PATCH 54/66] kern/debug.c: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 55/66] kern/lock_mon.c: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 57/66] kern/lock_mon.c: remove dead assignments, Marin Ramesa, 2013/12/05
- [PATCH 56/66] kern/lock_mon.c: use spl_t instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 58/66] kern/pc_sample.c: remove unused variables, Marin Ramesa, 2013/12/05
- [PATCH 59/66] kern/priority.c: update comment, Marin Ramesa, 2013/12/05
- [PATCH 60/66] kern/rbtree.h: remove unnecessary include, Marin Ramesa, 2013/12/05
- [PATCH 64/66] Cleanup of the prototypes,
Marin Ramesa <=
- [PATCH 65/66] kern/act.h: remove unnecessary include, Marin Ramesa, 2013/12/05
- [PATCH 63/66] vm/vm_page.h: remove unused variables, Marin Ramesa, 2013/12/05
- [PATCH 36/66] i386/i386at/kd.c: simplify code, Marin Ramesa, 2013/12/05
- [PATCH 62/66] kern/syscall_sw.c: use boolean instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 38/66] i386/i386at/kd.c: use boolean instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 66/66] kern/processor.h: remove ifdef, Marin Ramesa, 2013/12/05
- [PATCH 37/66] i386/i386at/kd.c: simplify code, Marin Ramesa, 2013/12/05