diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-03-05 01:20:11 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-03-05 10:16:28 -0500 |
commit | b08c8c4870831c9315dcae237772238e80035bd5 (patch) | |
tree | c884e2e58c20806a730f9b462ef705d4c258b88c /drivers/core | |
parent | e0d20dc1521e74b82dbd69be53a048847798a90a (diff) | |
download | u-boot-b08c8c4870831c9315dcae237772238e80035bd5.tar.gz u-boot-b08c8c4870831c9315dcae237772238e80035bd5.tar.xz u-boot-b08c8c4870831c9315dcae237772238e80035bd5.zip |
libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>
Thomas reported U-Boot failed to build host tools if libfdt-devel
package is installed because tools include libfdt headers from
/usr/include/ instead of using internal ones.
This commit moves the header code:
include/libfdt.h -> include/linux/libfdt.h
include/libfdt_env.h -> include/linux/libfdt_env.h
and replaces include directives:
#include <libfdt.h> -> #include <linux/libfdt.h>
#include <libfdt_env.h> -> #include <linux/libfdt_env.h>
Reported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/core')
-rw-r--r-- | drivers/core/of_access.c | 2 | ||||
-rw-r--r-- | drivers/core/of_addr.c | 2 | ||||
-rw-r--r-- | drivers/core/of_extra.c | 2 | ||||
-rw-r--r-- | drivers/core/ofnode.c | 2 | ||||
-rw-r--r-- | drivers/core/regmap.c | 2 | ||||
-rw-r--r-- | drivers/core/root.c | 2 | ||||
-rw-r--r-- | drivers/core/util.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/drivers/core/of_access.c b/drivers/core/of_access.c index c31cba7fd6..9389199a2a 100644 --- a/drivers/core/of_access.c +++ b/drivers/core/of_access.c @@ -21,7 +21,7 @@ */ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/of_access.h> #include <linux/ctype.h> #include <linux/err.h> diff --git a/drivers/core/of_addr.c b/drivers/core/of_addr.c index 4757066967..7513ea2cf7 100644 --- a/drivers/core/of_addr.c +++ b/drivers/core/of_addr.c @@ -8,7 +8,7 @@ */ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/of_access.h> #include <dm/of_addr.h> #include <linux/err.h> diff --git a/drivers/core/of_extra.c b/drivers/core/of_extra.c index 0381909848..ca2e92b32b 100644 --- a/drivers/core/of_extra.c +++ b/drivers/core/of_extra.c @@ -6,7 +6,7 @@ */ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/of_access.h> #include <dm/of_extra.h> #include <dm/ofnode.h> diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index d0bdea08df..4e4532651f 100644 --- a/drivers/core/ofnode.c +++ b/drivers/core/ofnode.c @@ -9,7 +9,7 @@ #include <dm.h> #include <fdtdec.h> #include <fdt_support.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/of_access.h> #include <dm/of_addr.h> #include <dm/ofnode.h> diff --git a/drivers/core/regmap.c b/drivers/core/regmap.c index 0f1d30820c..8a0e00ff9a 100644 --- a/drivers/core/regmap.c +++ b/drivers/core/regmap.c @@ -8,7 +8,7 @@ #include <common.h> #include <dm.h> #include <errno.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <mapmem.h> #include <regmap.h> diff --git a/drivers/core/root.c b/drivers/core/root.c index 36336b65b6..3a426ab4b7 100644 --- a/drivers/core/root.c +++ b/drivers/core/root.c @@ -11,7 +11,7 @@ #include <errno.h> #include <fdtdec.h> #include <malloc.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/device.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/core/util.c b/drivers/core/util.c index aaaed4ec02..24abe1445b 100644 --- a/drivers/core/util.c +++ b/drivers/core/util.c @@ -6,7 +6,7 @@ #include <common.h> #include <dm/util.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <vsprintf.h> #ifdef CONFIG_DM_WARN |