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
barebox-b67b2671c2b7fe3fd33481f820efd9de17ed4ab7.tar.xz
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 56bc864ad1..329bc72493 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 41ce06e468..1f9b0cc1ee 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 7e4f4da622..c8ae57a594 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 22178cfea2..5303c92f62 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 f73f4cfe99..65f3306bee 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 2e0a4ba3dc..74c7735e31 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>