summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-04-15 22:44:00 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-04-17 07:31:35 +0200
commit9e69a04222ee88c51bd5ca4f802b5fa5ad42b0f8 (patch)
treebc604531d00cd00b809a9fc5c72c1471d9e7ef1b /include
parent724d8847ed3783d49a5acbf35a5c6b60abe5afa0 (diff)
downloadbarebox-9e69a04222ee88c51bd5ca4f802b5fa5ad42b0f8.tar.gz
barebox-9e69a04222ee88c51bd5ca4f802b5fa5ad42b0f8.tar.xz
include: add includes includes to make fdt.h, of.h and state.h self contained
Otherwise compilation may fail with: include/fdt.h:11:15: error: unknown type name 'uint64_t' static inline uint64_t fdt64_to_cpu(uint64_t x) include/of.h:22:19: error: field 'list' has incomplete type struct list_head list; Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/fdt.h2
-rw-r--r--include/of.h2
-rw-r--r--include/state.h2
3 files changed, 6 insertions, 0 deletions
diff --git a/include/fdt.h b/include/fdt.h
index 35278e3030..1ccd4c6734 100644
--- a/include/fdt.h
+++ b/include/fdt.h
@@ -1,6 +1,8 @@
#ifndef _FDT_H
#define _FDT_H
+#include <linux/types.h>
+
#ifndef __ASSEMBLY__
#define _B(n) ((unsigned long long)((uint8_t *)&x)[n])
diff --git a/include/of.h b/include/of.h
index 764a2e5939..7235138f30 100644
--- a/include/of.h
+++ b/include/of.h
@@ -3,6 +3,8 @@
#include <fdt.h>
#include <errno.h>
+#include <linux/types.h>
+#include <linux/list.h>
#include <asm/byteorder.h>
/* Default string compare functions */
diff --git a/include/state.h b/include/state.h
index 95bf8d263b..e96d3bfb2e 100644
--- a/include/state.h
+++ b/include/state.h
@@ -1,6 +1,8 @@
#ifndef __STATE_H
#define __STATE_H
+#include <of.h>
+
struct state;
int state_backend_dtb_file(struct state *state, const char *path);