summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-05-30 12:39:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-05-31 08:32:59 +0200
commitb381e781bffa9c285c36c34a291cf00be4155a14 (patch)
tree10f62fe9bb276629709195c94ebe7eeb205312ff /include
parent3ece590c383624f04b23ff12fab077166a869f51 (diff)
downloadbarebox-b381e781bffa9c285c36c34a291cf00be4155a14.tar.gz
barebox-b381e781bffa9c285c36c34a291cf00be4155a14.tar.xz
treewide include/: Add missing includes
This adds several missing includes to files under include/ which we relied on being included implicitly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/environment.h2
-rw-r--r--include/fb.h1
-rw-r--r--include/filetype.h2
-rw-r--r--include/i2c/i2c.h3
-rw-r--r--include/linux/phy.h1
-rw-r--r--include/mfd/mc13xxx.h2
-rw-r--r--include/net.h2
-rw-r--r--include/notifier.h2
-rw-r--r--include/partition.h3
-rw-r--r--include/spi/spi.h1
10 files changed, 17 insertions, 2 deletions
diff --git a/include/environment.h b/include/environment.h
index 7bdd213a52..ae1ecf5bd6 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -20,6 +20,8 @@
#ifndef _ENVIRONMENT_H_
#define _ENVIRONMENT_H_
+#include <linux/list.h>
+
/**
* Managment of a environment variable
*/
diff --git a/include/fb.h b/include/fb.h
index 23d6c6d025..df4ba8ebe7 100644
--- a/include/fb.h
+++ b/include/fb.h
@@ -3,6 +3,7 @@
#include <ioctl.h>
#include <param.h>
+#include <driver.h>
#define FB_VISUAL_TRUECOLOR 2 /* True color */
#define FB_VISUAL_PSEUDOCOLOR 3 /* Pseudo color (like atari) */
diff --git a/include/filetype.h b/include/filetype.h
index ee777acf99..c73c64aa60 100644
--- a/include/filetype.h
+++ b/include/filetype.h
@@ -1,6 +1,8 @@
#ifndef __FILE_TYPE_H
#define __FILE_TYPE_H
+#include <linux/string.h>
+
/*
* List of file types we know
*/
diff --git a/include/i2c/i2c.h b/include/i2c/i2c.h
index 7b59a5102d..dab8dc59e0 100644
--- a/include/i2c/i2c.h
+++ b/include/i2c/i2c.h
@@ -16,6 +16,9 @@
#ifndef I2C_I2C_H
#define I2C_I2C_H
+#include <driver.h>
+#include <linux/types.h>
+
#ifndef DOXYGEN_SHOULD_SKIP_THIS
/*
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 99c96390c7..8e60758ca3 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -15,6 +15,7 @@
#ifndef __PHY_H
#define __PHY_H
+#include <driver.h>
#include <linux/list.h>
#include <linux/ethtool.h>
#include <linux/mii.h>
diff --git a/include/mfd/mc13xxx.h b/include/mfd/mc13xxx.h
index 59042ebee6..cba85890c1 100644
--- a/include/mfd/mc13xxx.h
+++ b/include/mfd/mc13xxx.h
@@ -12,6 +12,8 @@
#ifndef __MFD_MC13XXX_H
#define __MFD_MC13XXX_H
+#include <linux/types.h>
+
#define MC13XXX_REG_IDENTIFICATION 0x07
#define MC13783_REG_INT_STATUS0 0x00
diff --git a/include/net.h b/include/net.h
index bb6b8fa281..72f02ce117 100644
--- a/include/net.h
+++ b/include/net.h
@@ -19,7 +19,9 @@
#include <stdlib.h>
#include <clock.h>
#include <led.h>
+#include <xfuncs.h>
#include <linux/phy.h>
+#include <linux/string.h> /* memcpy */
#include <asm/byteorder.h> /* for nton* / ntoh* stuff */
/* How often do we retry to send packages */
diff --git a/include/notifier.h b/include/notifier.h
index cb2be5f548..c83e28b156 100644
--- a/include/notifier.h
+++ b/include/notifier.h
@@ -1,6 +1,8 @@
#ifndef __NOTIFIER_H
#define __NOTIFIER_H
+#include <linux/list.h>
+
/*
* Notifer chains loosely based on the according Linux framework
*/
diff --git a/include/partition.h b/include/partition.h
index 8ad7490d85..32570530eb 100644
--- a/include/partition.h
+++ b/include/partition.h
@@ -1,7 +1,7 @@
#ifndef __PARTITION_H
#define __PARTITION_H
-struct device_d;
+#include <driver.h>
struct partition {
int num;
@@ -18,4 +18,3 @@ struct partition {
};
#endif /* __PARTITION_H */
-
diff --git a/include/spi/spi.h b/include/spi/spi.h
index 3da13e85ec..45fd22ce26 100644
--- a/include/spi/spi.h
+++ b/include/spi/spi.h
@@ -4,6 +4,7 @@
#ifndef DOXYGEN_SHOULD_SKIP_THIS
#include <driver.h>
+#include <linux/string.h>
struct spi_board_info {
char *name;