summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-07-10 09:27:06 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-11-08 15:42:04 +0100
commitb67b2671c2b7fe3fd33481f820efd9de17ed4ab7 (patch)
treed348054a0c88f34edb3fd77b74804dc41ae1e186 /common
parent6fecd2aaca209884a0ec1f58ccc42b91d1d4b828 (diff)
downloadbarebox-b67b2671c2b7fe3fd33481f820efd9de17ed4ab7.tar.gz
treewide: Add missing includes
A lot of files rely on include/driver.h including include/of.h (and this including include/errno.h. include the files explicitly so we can eventually get rid of including of.h from driver.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/console.c1
-rw-r--r--common/globalvar.c1
-rw-r--r--common/memory_display.c1
-rw-r--r--common/memtest.c1
-rw-r--r--common/misc.c1
-rw-r--r--common/startup.c1
6 files changed, 6 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c
index 56bc864..329bc72 100644
--- a/common/console.c
+++ b/common/console.c
@@ -25,6 +25,7 @@
#include <console.h>
#include <driver.h>
#include <fs.h>
+#include <of.h>
#include <init.h>
#include <clock.h>
#include <kfifo.h>
diff --git a/common/globalvar.c b/common/globalvar.c
index 41ce06e..1f9b0cc 100644
--- a/common/globalvar.c
+++ b/common/globalvar.c
@@ -1,6 +1,7 @@
#include <common.h>
#include <malloc.h>
#include <globalvar.h>
+#include <errno.h>
#include <init.h>
#include <environment.h>
#include <magicvar.h>
diff --git a/common/memory_display.c b/common/memory_display.c
index 7e4f4da..c8ae57a 100644
--- a/common/memory_display.c
+++ b/common/memory_display.c
@@ -1,4 +1,5 @@
#include <common.h>
+#include <errno.h>
#define DISP_LINE_LEN 16
diff --git a/common/memtest.c b/common/memtest.c
index 22178cf..5303c92 100644
--- a/common/memtest.c
+++ b/common/memtest.c
@@ -25,6 +25,7 @@
#include <memory.h>
#include <types.h>
#include <sizes.h>
+#include <errno.h>
#include <memtest.h>
static const resource_size_t bitpattern[] = {
diff --git a/common/misc.c b/common/misc.c
index f73f4cf..65f3306 100644
--- a/common/misc.c
+++ b/common/misc.c
@@ -22,6 +22,7 @@
#include <magicvar.h>
#include <globalvar.h>
#include <environment.h>
+#include <of.h>
int errno;
EXPORT_SYMBOL(errno);
diff --git a/common/startup.c b/common/startup.c
index 2e0a4ba..74c7735 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -35,6 +35,7 @@
#include <malloc.h>
#include <debug_ll.h>
#include <fs.h>
+#include <errno.h>
#include <linux/stat.h>
#include <envfs.h>
#include <asm/sections.h>