summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-04-29 21:47:28 +0200
committerRichard Braun <rbraun@sceen.net>2017-04-29 21:59:03 +0200
commit5a048710ee9dd4112ec467da29fef27ef18b0876 (patch)
tree6998b99fc74d459c00d0e3bd2d50c56502c24be2 /kern
parentd78a948f0a1d8b7b3385944c736d7cffd8ca67a7 (diff)
New stdio.h standard header
Make kernel code obtain definitions for the printf family of functions through the inclusion of the standard stdio.h header.
Diffstat (limited to 'kern')
-rw-r--r--kern/kmem.c3
-rw-r--r--kern/llsync.c3
-rw-r--r--kern/panic.c2
-rw-r--r--kern/percpu.c2
-rw-r--r--kern/printf.c4
-rw-r--r--kern/sprintf.c2
-rw-r--r--kern/sref.c2
-rw-r--r--kern/syscnt.c2
-rw-r--r--kern/task.c1
-rw-r--r--kern/thread.c2
-rw-r--r--kern/work.c3
11 files changed, 12 insertions, 14 deletions
diff --git a/kern/kmem.c b/kern/kmem.c
index 60b8db9c..5cce5589 100644
--- a/kern/kmem.c
+++ b/kern/kmem.c
@@ -44,6 +44,7 @@
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
+#include <stdio.h>
#include <string.h>
#include <kern/assert.h>
@@ -57,8 +58,6 @@
#include <kern/mutex.h>
#include <kern/panic.h>
#include <kern/param.h>
-#include <kern/printf.h>
-#include <kern/sprintf.h>
#include <kern/thread.h>
#include <machine/cpu.h>
#include <machine/pmap.h>
diff --git a/kern/llsync.c b/kern/llsync.c
index 0c81c0ff..1942576d 100644
--- a/kern/llsync.c
+++ b/kern/llsync.c
@@ -34,6 +34,7 @@
#include <stdbool.h>
#include <stddef.h>
+#include <stdio.h>
#include <kern/assert.h>
#include <kern/condition.h>
@@ -46,9 +47,7 @@
#include <kern/mutex.h>
#include <kern/param.h>
#include <kern/percpu.h>
-#include <kern/printf.h>
#include <kern/spinlock.h>
-#include <kern/sprintf.h>
#include <kern/syscnt.h>
#include <kern/work.h>
#include <machine/cpu.h>
diff --git a/kern/panic.c b/kern/panic.c
index 470c4212..34d8c138 100644
--- a/kern/panic.c
+++ b/kern/panic.c
@@ -16,10 +16,10 @@
*/
#include <stdarg.h>
+#include <stdio.h>
#include <kern/atomic.h>
#include <kern/panic.h>
-#include <kern/printf.h>
#include <machine/cpu.h>
#include <machine/strace.h>
diff --git a/kern/percpu.c b/kern/percpu.c
index 6008b64c..5e4ff827 100644
--- a/kern/percpu.c
+++ b/kern/percpu.c
@@ -17,6 +17,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <stdio.h>
#include <string.h>
#include <kern/assert.h>
@@ -26,7 +27,6 @@
#include <kern/panic.h>
#include <kern/param.h>
#include <kern/percpu.h>
-#include <kern/printf.h>
#include <machine/cpu.h>
#include <vm/vm_kmem.h>
#include <vm/vm_page.h>
diff --git a/kern/printf.c b/kern/printf.c
index 6cd6464b..7e48b5dd 100644
--- a/kern/printf.c
+++ b/kern/printf.c
@@ -15,9 +15,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <kern/printf.h>
+#include <stdio.h>
+
#include <kern/spinlock.h>
-#include <kern/sprintf.h>
#include <machine/cpu.h>
/*
diff --git a/kern/sprintf.c b/kern/sprintf.c
index 3d2bf2df..a606d866 100644
--- a/kern/sprintf.c
+++ b/kern/sprintf.c
@@ -18,9 +18,9 @@
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
+#include <stdio.h>
#include <kern/limits.h>
-#include <kern/sprintf.h>
#include <kern/types.h>
/*
diff --git a/kern/sref.c b/kern/sref.c
index 9c2ddead..9ce7a837 100644
--- a/kern/sref.c
+++ b/kern/sref.c
@@ -43,6 +43,7 @@
#include <stdbool.h>
#include <stddef.h>
+#include <stdio.h>
#include <kern/assert.h>
#include <kern/condition.h>
@@ -55,7 +56,6 @@
#include <kern/param.h>
#include <kern/percpu.h>
#include <kern/spinlock.h>
-#include <kern/sprintf.h>
#include <kern/sref.h>
#include <kern/sref_i.h>
#include <kern/syscnt.h>
diff --git a/kern/syscnt.c b/kern/syscnt.c
index 74559ea5..5b479f36 100644
--- a/kern/syscnt.c
+++ b/kern/syscnt.c
@@ -15,13 +15,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <stdio.h>
#include <string.h>
#include <kern/atomic.h>
#include <kern/init.h>
#include <kern/list.h>
#include <kern/mutex.h>
-#include <kern/printf.h>
#include <kern/spinlock.h>
#include <kern/syscnt.h>
diff --git a/kern/task.c b/kern/task.c
index d2aaa80d..7f1c53d2 100644
--- a/kern/task.c
+++ b/kern/task.c
@@ -16,6 +16,7 @@
*/
#include <stddef.h>
+#include <stdio.h>
#include <string.h>
#include <kern/error.h>
diff --git a/kern/thread.c b/kern/thread.c
index 8a87acaa..947b8cfd 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -83,6 +83,7 @@
#include <stdbool.h>
#include <stddef.h>
+#include <stdio.h>
#include <string.h>
#include <kern/assert.h>
@@ -101,7 +102,6 @@
#include <kern/percpu.h>
#include <kern/sleepq.h>
#include <kern/spinlock.h>
-#include <kern/sprintf.h>
#include <kern/sref.h>
#include <kern/syscnt.h>
#include <kern/task.h>
diff --git a/kern/work.c b/kern/work.c
index a81e8de3..714af35c 100644
--- a/kern/work.c
+++ b/kern/work.c
@@ -16,6 +16,7 @@
*/
#include <stddef.h>
+#include <stdio.h>
#include <kern/assert.h>
#include <kern/bitmap.h>
@@ -27,9 +28,7 @@
#include <kern/panic.h>
#include <kern/param.h>
#include <kern/percpu.h>
-#include <kern/printf.h>
#include <kern/spinlock.h>
-#include <kern/sprintf.h>
#include <kern/syscnt.h>
#include <kern/thread.h>
#include <kern/work.h>