summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-05 01:22:19 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-05 19:35:23 +0100
commit281d1fadb34242347da379ddeba75d2195148b4c (patch)
treedd1d1fb044d4e905c56b73e94d88a47ccc215a71 /firmware
parentdd7b14173647c6e3326d705e5c4d802a35711030 (diff)
downloadrockbox-281d1fadb34242347da379ddeba75d2195148b4c.tar.gz
rockbox-281d1fadb34242347da379ddeba75d2195148b4c.tar.bz2
rockbox-281d1fadb34242347da379ddeba75d2195148b4c.zip
Do not include kernel.h in system.h.
system.h doesn't need it on its own and this change makes it less dependant on Rockbox internals. Change-Id: I4e1e4108a52a7b599627a829204eb82b392fc6d6
Diffstat (limited to 'firmware')
-rw-r--r--firmware/buflib.c1
-rw-r--r--firmware/drivers/audio/as3514.c2
-rw-r--r--firmware/export/system.h5
-rw-r--r--firmware/font.c10
-rw-r--r--firmware/general.c5
-rw-r--r--firmware/target/arm/as3525/debug-as3525.c3
-rw-r--r--firmware/target/arm/as3525/lcd-fuze.c5
-rw-r--r--firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c1
-rw-r--r--firmware/target/arm/pp/system-target.h3
-rw-r--r--firmware/target/hosted/android/pcm-android.c3
-rw-r--r--firmware/target/hosted/kernel-unix.c3
11 files changed, 27 insertions, 14 deletions
diff --git a/firmware/buflib.c b/firmware/buflib.c
index d7a24b8722..db09d3efc9 100644
--- a/firmware/buflib.c
+++ b/firmware/buflib.c
@@ -27,6 +27,7 @@
#include <stdlib.h> /* for abs() */
#include <stdio.h> /* for snprintf() */
+#include <stddef.h> /* for ptrdiff_t */
#include "buflib.h"
#include "string-extra.h" /* strlcpy() */
#include "debug.h"
diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c
index 1f79277423..6f531be095 100644
--- a/firmware/drivers/audio/as3514.c
+++ b/firmware/drivers/audio/as3514.c
@@ -21,9 +21,11 @@
* KIND, either express or implied.
*
****************************************************************************/
+
#include "cpu.h"
#include "debug.h"
#include "system.h"
+#include "kernel.h"
#include "audio.h"
#include "sound.h"
diff --git a/firmware/export/system.h b/firmware/export/system.h
index b1959c496d..25f9287618 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -22,9 +22,10 @@
#ifndef __SYSTEM_H__
#define __SYSTEM_H__
+#include <stdbool.h>
+#include <stdint.h>
+
#include "cpu.h"
-#include "stdbool.h"
-#include "kernel.h"
#include "gcc_extensions.h" /* for LIKELY/UNLIKELY */
extern void system_reboot (void);
diff --git a/firmware/font.c b/firmware/font.c
index 06f104054f..e7a574f0dd 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -24,14 +24,16 @@
* loaded at startup, as well as their mapping into
* the FONT_SYSFIXED, FONT_UI and FONT_MP3 ids.
*/
-#include "config.h"
-
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include "inttypes.h"
-#include "lcd.h"
+#include <stdint.h>
+#include <stddef.h>
+
+#include "config.h"
#include "system.h"
+#include "kernel.h"
+#include "lcd.h"
#include "font.h"
#include "file.h"
#include "core_alloc.h"
diff --git a/firmware/general.c b/firmware/general.c
index 8e6d5af9a0..d6c1d2f465 100644
--- a/firmware/general.c
+++ b/firmware/general.c
@@ -19,8 +19,10 @@
*
****************************************************************************/
-#include "config.h"
#include <stdio.h>
+#include "config.h"
+#include "system.h"
+#include "kernel.h"
#include "general.h"
#include "file.h"
#include "dir.h"
@@ -28,7 +30,6 @@
#include "limits.h"
#include "stdlib.h"
#include "string-extra.h"
-#include "system.h"
#include "time.h"
#include "timefuncs.h"
diff --git a/firmware/target/arm/as3525/debug-as3525.c b/firmware/target/arm/as3525/debug-as3525.c
index 514eebd390..ab70f73165 100644
--- a/firmware/target/arm/as3525/debug-as3525.c
+++ b/firmware/target/arm/as3525/debug-as3525.c
@@ -20,10 +20,11 @@
****************************************************************************/
#include <stdbool.h>
+#include "system.h"
+#include "kernel.h"
#include "button.h"
#include "lcd.h"
#include "font.h"
-#include "system.h"
#include "cpu.h"
#include "pl180.h"
#include "ascodec.h"
diff --git a/firmware/target/arm/as3525/lcd-fuze.c b/firmware/target/arm/as3525/lcd-fuze.c
index b2033738b6..df4d668ab0 100644
--- a/firmware/target/arm/as3525/lcd-fuze.c
+++ b/firmware/target/arm/as3525/lcd-fuze.c
@@ -19,11 +19,12 @@
* KIND, either express or implied.
*
****************************************************************************/
-#include "config.h"
+#include "config.h"
#include "cpu.h"
-#include "lcd.h"
#include "system.h"
+#include "kernel.h"
+#include "lcd.h"
#include "file.h"
#include "clock-target.h"
#include "dbop-as3525.h"
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
index 8244c475fa..1b30e112fd 100644
--- a/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
+++ b/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
@@ -21,6 +21,7 @@
#include "config.h"
#include "system.h"
+#include "kernel.h"
#include "button.h"
#include "backlight.h"
diff --git a/firmware/target/arm/pp/system-target.h b/firmware/target/arm/pp/system-target.h
index 84419edd77..742044b7be 100644
--- a/firmware/target/arm/pp/system-target.h
+++ b/firmware/target/arm/pp/system-target.h
@@ -22,9 +22,10 @@
#ifndef SYSTEM_TARGET_H
#define SYSTEM_TARGET_H
+#include <stdbool.h>
#include "config.h"
#include "system-arm.h"
-#include <stdbool.h>
+#include "kernel.h"
/* TODO: This header could be split in 2 */
diff --git a/firmware/target/hosted/android/pcm-android.c b/firmware/target/hosted/android/pcm-android.c
index 0608e971a7..23a003ff73 100644
--- a/firmware/target/hosted/android/pcm-android.c
+++ b/firmware/target/hosted/android/pcm-android.c
@@ -22,8 +22,9 @@
#include <jni.h>
#include <stdbool.h>
#define _SYSTEM_WITH_JNI /* for getJavaEnvironment */
-#include <system.h>
#include <pthread.h>
+#include "system.h"
+#include "kernel.h"
#include "debug.h"
#include "pcm.h"
#include "pcm-internal.h"
diff --git a/firmware/target/hosted/kernel-unix.c b/firmware/target/hosted/kernel-unix.c
index a0167d46c5..e3c492a8cc 100644
--- a/firmware/target/hosted/kernel-unix.c
+++ b/firmware/target/hosted/kernel-unix.c
@@ -26,8 +26,10 @@
#include <errno.h>
#include <unistd.h>
#include <pthread.h>
+
#include "config.h"
#include "system.h"
+#include "kernel.h"
#include "button.h"
#include "audio.h"
#include "panic.h"
@@ -165,4 +167,3 @@ void timer_unregister(void)
timer_delete(timer_tid);
timer_prio = -1;
}
-