[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 7/7] kern: move forward declarations into a header file
From: |
Marin Ramesa |
Subject: |
[PATCH 7/7] kern: move forward declarations into a header file |
Date: |
Sat, 23 Nov 2013 15:29:30 +0100 |
* kern/machine.c (processor_doaction, processor_doshutdown): Remove forward
declarations.
* kern/processor.h (processor_doaction, processor_doshutdown): Add prototypes.
---
kern/machine.c | 7 -------
kern/processor.h | 7 +++++++
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/kern/machine.c b/kern/machine.c
index c1df28b..f9ed8c0 100644
--- a/kern/machine.c
+++ b/kern/machine.c
@@ -361,8 +361,6 @@ processor_t processor;
/*
* action_thread() shuts down processors or changes their assignment.
*/
-void processor_doaction(); /* forward */
-
void action_thread_continue()
{
processor_t processor;
@@ -403,11 +401,6 @@ void action_thread()
* is to schedule ourselves onto a cpu and then save our
* context back into the runqs before taking out the cpu.
*/
-#ifdef __GNUC__
-__volatile__
-#endif
-void processor_doshutdown(); /* forward */
-
void processor_doaction(processor)
register processor_t processor;
{
diff --git a/kern/processor.h b/kern/processor.h
index 9a6c944..ea69c23 100644
--- a/kern/processor.h
+++ b/kern/processor.h
@@ -320,4 +320,11 @@ extern kern_return_t processor_set_threads(
natural_t *count);
#endif
+void processor_doaction(processor_t processor);
+
+#ifdef __GNUC__
+__volatile__
+#endif
+void processor_doshutdown(processor_t processor);
+
#endif /* _KERN_PROCESSOR_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, 2013/11/23
- [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 <=
- Re: Turning forward declarations into prototypes, Samuel Thibault, 2013/11/24