summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
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>