[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/7] kern: move forward declarations into a header file
From: |
Marin Ramesa |
Subject: |
[PATCH 3/7] kern: move forward declarations into a header file |
Date: |
Sat, 23 Nov 2013 15:29:26 +0100 |
* kern/thread.c [MACH_DEBUG] (stack_init, stack_finalize): Remove forward
declarations.
* kern/thread.h [MACH_DEBUG] (stack_init, stack_finalize): Add prototypes.
---
kern/thread.c | 3 ---
kern/thread.h | 5 +++++
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/kern/thread.c b/kern/thread.c
index eb8a8bb..c681176 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -78,9 +78,6 @@ extern void pcb_module_init(void);
struct thread thread_template;
#if MACH_DEBUG
-void stack_init(vm_offset_t stack); /* forward */
-void stack_finalize(vm_offset_t stack); /* forward */
-
#define STACK_MARKER 0xdeadbeefU
boolean_t stack_check_usage = FALSE;
decl_simple_lock_data(, stack_usage_lock)
diff --git a/kern/thread.h b/kern/thread.h
index 3959dfc..0ba616f 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -384,4 +384,9 @@ extern void thread_unfreeze(
#define current_space() (current_task()->itk_space)
#define current_map() (current_task()->map)
+#if MACH_DEBUG
+void stack_init(vm_offset_t stack);
+void stack_finalize(vm_offset_t stack);
+#endif /* MACH_DEBUG */
+
#endif /* _KERN_THREAD_H_ */
--
1.8.1.4
- Turning forward declarations into prototypes, Marin Ramesa, 2013/11/23
- [PATCH 1/7] vm: move forward declarations into a header file, Marin Ramesa, 2013/11/23
- [PATCH 2/7] vm: move forward declarations into a header file, Marin Ramesa, 2013/11/23
- [PATCH 3/7] kern: move forward declarations into a header file,
Marin Ramesa <=
- [PATCH 4/7] kern: move forward declaration into a header file, Marin Ramesa, 2013/11/23
- [PATCH 5/7] kern: move forward declaration into a header file, Marin Ramesa, 2013/11/23
- [PATCH 6/7] kern: move forward declaration into a header file, Marin Ramesa, 2013/11/23
- [PATCH 7/7] kern: move forward declarations into a header file, Marin Ramesa, 2013/11/23
- Re: Turning forward declarations into prototypes, Samuel Thibault, 2013/11/24