[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 46/68] kern/ipc_kobject.c: remove forward declarations
From: |
Marin Ramesa |
Subject: |
[PATCH 46/68] kern/ipc_kobject.c: remove forward declarations |
Date: |
Fri, 29 Nov 2013 22:54:11 +0100 |
* i386/i386/machine_routines.h: Define mig_external.
(mach_server_routine, mach_port_server_routine, mach_host_server_routine,
device_server_routine, device_pager_server_routine, mach4_server_routine,
gnumach_server_routine, mach_debug_server_routine, MACHINE_SERVER_ROUTINE): Add
prototypes.
* kern/ipc_kobject.c [MACH_MACHINE_ROUTINES]: Remove #if.
(mach_server_routine, mach_port_server_routine, mach_host_server_routine,
device_server_routine, device_pager_server_routine, mach4_server_routine,
gnumach_server_routine, mach_debug_server_routine, MACHINE_SERVER_ROUTINE):
Remove forward declarations.
---
i386/i386/machine_routines.h | 18 ++++++++++++++++++
kern/ipc_kobject.c | 19 +------------------
2 files changed, 19 insertions(+), 18 deletions(-)
diff --git a/i386/i386/machine_routines.h b/i386/i386/machine_routines.h
index d77849a..0fdf630 100644
--- a/i386/i386/machine_routines.h
+++ b/i386/i386/machine_routines.h
@@ -33,5 +33,23 @@
#define MACHINE_SERVER mach_i386_server
#define MACHINE_SERVER_ROUTINE mach_i386_server_routine
+#ifndef mig_external
+#define mig_external
+#endif
+
+extern mig_external mig_routine_t mach_server_routine(const mach_msg_header_t
*InHeadP);
+extern mig_external mig_routine_t mach_port_server_routine(const
mach_msg_header_t *InHeadP);
+extern mig_external mig_routine_t mach_host_server_routine(const
mach_msg_header_t *InHeadP);
+extern mig_external mig_routine_t device_server_routine(const
mach_msg_header_t *InHeadP);
+extern mig_external mig_routine_t device_pager_server_routine(const
mach_msg_header_t *InHeadP);
+extern mig_external mig_routine_t mach4_server_routine(const mach_msg_header_t
*InHeadP);
+extern mig_external mig_routine_t gnumach_server_routine(const
mach_msg_header_t *InHeadP);
+#if MACH_DEBUG
+extern mig_external mig_routine_t mach_debug_server_routine(const
mach_msg_header_t *InHeadP);
+#endif
+#if MACH_MACHINE_ROUTINES
+extern mig_external mig_routine_t MACHINE_SERVER_ROUTINE(const
mach_msg_header_t *InHeadP);
+#endif
+
#endif /* _I386_MACHINE_ROUTINES_H_ */
diff --git a/kern/ipc_kobject.c b/kern/ipc_kobject.c
index 37d4eb9..5b92ab1 100644
--- a/kern/ipc_kobject.c
+++ b/kern/ipc_kobject.c
@@ -48,10 +48,8 @@
#include <vm/vm_object.h>
#include <vm/memory_object_proxy.h>
#include <device/ds_routines.h>
-
-#if MACH_MACHINE_ROUTINES
#include <machine/machine_routines.h>
-#endif
+
/*
@@ -146,21 +144,6 @@ ipc_kobject_server(request)
* to perform the kernel function
*/
{
- extern mig_routine_t mach_server_routine(),
- mach_port_server_routine(),
- mach_host_server_routine(),
- device_server_routine(),
- device_pager_server_routine(),
- mach4_server_routine(),
- gnumach_server_routine();
-#if MACH_DEBUG
- extern mig_routine_t mach_debug_server_routine();
-#endif
-
-#if MACH_MACHINE_ROUTINES
- extern mig_routine_t MACHINE_SERVER_ROUTINE();
-#endif
-
check_simple_locks();
if ((routine = mach_server_routine(&request->ikm_header)) != 0
|| (routine = mach_port_server_routine(&request->ikm_header)) != 0
--
1.8.1.4
- [PATCH 39/68] kern/startup.c: remove forward declarations, (continued)
- [PATCH 39/68] kern/startup.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 38/68] kern/sched_prim.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 40/68] kern/syscall_subr.c: remove forward declaration, Marin Ramesa, 2013/11/29
- [PATCH 41/68] kern/syscall_sw.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 42/68] kern/task.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 43/68] kern/thread.c: remove forward declaration, Marin Ramesa, 2013/11/29
- [PATCH 44/68] kern: remove forward declaration, Marin Ramesa, 2013/11/29
- [PATCH 45/68] ipc/ipc_kmsg.h: update comment, Marin Ramesa, 2013/11/29
- [PATCH 46/68] kern/ipc_kobject.c: remove forward declarations,
Marin Ramesa <=
- [PATCH 47/68] vm/vm_fault.c: remove forward declaration, Marin Ramesa, 2013/11/29
- [PATCH 48/68] vm/vm_kern.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 50/68] vm/vm_pageout.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 49/68] vm/vm_map.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 52/68] vm/vm_user.c: remove forward declaration, Marin Ramesa, 2013/11/29
- [PATCH 51/68] vm/vm_resident.c: correct comment, Marin Ramesa, 2013/11/29
- [PATCH 53/68] Normalize whitespace, Marin Ramesa, 2013/11/29
- [PATCH 56/68] Remove unnecessary files, Marin Ramesa, 2013/11/29
- [PATCH 58/68] kern/time_stamp.c: remove multimax code, Marin Ramesa, 2013/11/29
- [PATCH 59/68] Type definition, Marin Ramesa, 2013/11/29