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 | |
parent | e0d20dc1521e74b82dbd69be53a048847798a90a (diff) | |
download | u-boot-b08c8c4870831c9315dcae237772238e80035bd5.zip u-boot-b08c8c4870831c9315dcae237772238e80035bd5.tar.gz u-boot-b08c8c4870831c9315dcae237772238e80035bd5.tar.bz2 |
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')
43 files changed, 43 insertions, 43 deletions
diff --git a/drivers/core/of_access.c b/drivers/core/of_access.c index c31cba7..9389199 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 4757066..7513ea2 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 0381909..ca2e92b 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 d0bdea0..4e45326 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 0f1d308..8a0e00f 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 36336b6..3a426ab 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 aaaed4e..24abe14 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 diff --git a/drivers/crypto/fsl/sec.c b/drivers/crypto/fsl/sec.c index 0940faf..470e662 100644 --- a/drivers/crypto/fsl/sec.c +++ b/drivers/crypto/fsl/sec.c @@ -5,7 +5,7 @@ */ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #if CONFIG_SYS_FSL_SEC_COMPAT == 2 || CONFIG_SYS_FSL_SEC_COMPAT >= 4 #include <fsl_sec.h> diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c index cef8adc..2875f2f 100644 --- a/drivers/firmware/psci.c +++ b/drivers/firmware/psci.c @@ -10,7 +10,7 @@ #include <common.h> #include <dm.h> #include <dm/lists.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/arm-smccc.h> #include <linux/errno.h> #include <linux/printk.h> diff --git a/drivers/misc/fsl_portals.c b/drivers/misc/fsl_portals.c index 3b3dd02..159dff8 100644 --- a/drivers/misc/fsl_portals.c +++ b/drivers/misc/fsl_portals.c @@ -6,7 +6,7 @@ */ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <asm/processor.h> diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c index e40575e..48643de 100644 --- a/drivers/mmc/exynos_dw_mmc.c +++ b/drivers/mmc/exynos_dw_mmc.c @@ -8,7 +8,7 @@ #include <common.h> #include <dwmmc.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <errno.h> #include <asm/arch/dwmmc.h> diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c index 0f31dfc..be6edb2 100644 --- a/drivers/mmc/rockchip_sdhci.c +++ b/drivers/mmc/rockchip_sdhci.c @@ -9,7 +9,7 @@ #include <common.h> #include <dm.h> #include <dt-structs.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <mapmem.h> #include <sdhci.h> diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c index 62817a0..96bac9d 100644 --- a/drivers/mmc/s5p_sdhci.c +++ b/drivers/mmc/s5p_sdhci.c @@ -10,7 +10,7 @@ #include <malloc.h> #include <sdhci.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/gpio.h> #include <asm/arch/mmc.h> #include <asm/arch/clk.h> diff --git a/drivers/mmc/sdhci-cadence.c b/drivers/mmc/sdhci-cadence.c index 0b174fc..a07e43c 100644 --- a/drivers/mmc/sdhci-cadence.c +++ b/drivers/mmc/sdhci-cadence.c @@ -11,7 +11,7 @@ #include <linux/io.h> #include <linux/iopoll.h> #include <linux/sizes.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <mmc.h> #include <sdhci.h> diff --git a/drivers/mmc/socfpga_dw_mmc.c b/drivers/mmc/socfpga_dw_mmc.c index 759686c..9ace505 100644 --- a/drivers/mmc/socfpga_dw_mmc.c +++ b/drivers/mmc/socfpga_dw_mmc.c @@ -11,7 +11,7 @@ #include <dwmmc.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/err.h> #include <malloc.h> diff --git a/drivers/mmc/stm32_sdmmc2.c b/drivers/mmc/stm32_sdmmc2.c index f3b77f5..bd2200a 100644 --- a/drivers/mmc/stm32_sdmmc2.c +++ b/drivers/mmc/stm32_sdmmc2.c @@ -9,7 +9,7 @@ #include <clk.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <mmc.h> #include <reset.h> #include <asm/io.h> diff --git a/drivers/mmc/xenon_sdhci.c b/drivers/mmc/xenon_sdhci.c index 490a01f..9427a24 100644 --- a/drivers/mmc/xenon_sdhci.c +++ b/drivers/mmc/xenon_sdhci.c @@ -18,7 +18,7 @@ #include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <sdhci.h> diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index 414778c..9463a06 100644 --- a/drivers/mmc/zynq_sdhci.c +++ b/drivers/mmc/zynq_sdhci.c @@ -10,7 +10,7 @@ #include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <sdhci.h> diff --git a/drivers/mtd/spi/sunxi_spi_spl.c b/drivers/mtd/spi/sunxi_spi_spl.c index 35835c2..fa22981 100644 --- a/drivers/mtd/spi/sunxi_spi_spl.c +++ b/drivers/mtd/spi/sunxi_spi_spl.c @@ -8,7 +8,7 @@ #include <spl.h> #include <asm/gpio.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #ifdef CONFIG_SPL_OS_BOOT #error CONFIG_SPL_OS_BOOT is not supported yet diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index 760a124..ea9ae5b 100644 --- a/drivers/net/fsl-mc/mc.c +++ b/drivers/net/fsl-mc/mc.c @@ -8,7 +8,7 @@ #include <errno.h> #include <linux/bug.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <net.h> #include <fdt_support.h> #include <fsl-mc/fsl_mc.h> diff --git a/drivers/pci/fsl_pci_init.c b/drivers/pci/fsl_pci_init.c index df76a94..11104dc 100644 --- a/drivers/pci/fsl_pci_init.c +++ b/drivers/pci/fsl_pci_init.c @@ -886,7 +886,7 @@ int fsl_pcie_init_board(int busno) #endif #ifdef CONFIG_OF_BOARD_SETUP -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> void ft_fsl_pci_setup(void *blob, const char *pci_compat, diff --git a/drivers/pci/pci-emul-uclass.c b/drivers/pci/pci-emul-uclass.c index 0f8e3c9..dcea192 100644 --- a/drivers/pci/pci-emul-uclass.c +++ b/drivers/pci/pci-emul-uclass.c @@ -8,7 +8,7 @@ #include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <pci.h> #include <dm/lists.h> diff --git a/drivers/pci/pcie_layerscape_fixup.c b/drivers/pci/pcie_layerscape_fixup.c index 3dae201..e2ea7c8 100644 --- a/drivers/pci/pcie_layerscape_fixup.c +++ b/drivers/pci/pcie_layerscape_fixup.c @@ -12,7 +12,7 @@ #include <asm/io.h> #include <errno.h> #ifdef CONFIG_OF_BOARD_SETUP -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #ifdef CONFIG_ARM #include <asm/arch/clock.h> diff --git a/drivers/phy/sti_usb_phy.c b/drivers/phy/sti_usb_phy.c index c671ac6..727fb8b 100644 --- a/drivers/phy/sti_usb_phy.c +++ b/drivers/phy/sti_usb_phy.c @@ -12,7 +12,7 @@ #include <errno.h> #include <fdtdec.h> #include <generic-phy.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <regmap.h> #include <reset-uclass.h> #include <syscon.h> diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index a38d774..72f99be 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c @@ -7,7 +7,7 @@ #include <common.h> #include <dm.h> #include <dm/pinctrl.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <asm/io.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c index 114952a..6a73a06 100644 --- a/drivers/pinctrl/pinctrl-uclass.c +++ b/drivers/pinctrl/pinctrl-uclass.c @@ -5,7 +5,7 @@ */ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/err.h> #include <linux/list.h> #include <dm.h> diff --git a/drivers/power/pmic/act8846.c b/drivers/power/pmic/act8846.c index a6b0940..7d107f4 100644 --- a/drivers/power/pmic/act8846.c +++ b/drivers/power/pmic/act8846.c @@ -9,7 +9,7 @@ #include <dm.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <power/act8846_pmic.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/rn5t567.c b/drivers/power/pmic/rn5t567.c index 001e695..9e5b0b1 100644 --- a/drivers/power/pmic/rn5t567.c +++ b/drivers/power/pmic/rn5t567.c @@ -9,7 +9,7 @@ #include <dm.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <power/rn5t567_pmic.h> #include <power/pmic.h> diff --git a/drivers/power/regulator/pwm_regulator.c b/drivers/power/regulator/pwm_regulator.c index b63f941..169f095 100644 --- a/drivers/power/regulator/pwm_regulator.c +++ b/drivers/power/regulator/pwm_regulator.c @@ -13,7 +13,7 @@ #include <errno.h> #include <pwm.h> #include <power/regulator.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fdtdec.h> diff --git a/drivers/qe/fdt.c b/drivers/qe/fdt.c index 4f48f98..9bbdc60 100644 --- a/drivers/qe/fdt.c +++ b/drivers/qe/fdt.c @@ -8,7 +8,7 @@ */ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdt_support.h> #include <fsl_qe.h> diff --git a/drivers/sound/sound-i2s.c b/drivers/sound/sound-i2s.c index 749bbbd..be69fb0 100644 --- a/drivers/sound/sound-i2s.c +++ b/drivers/sound/sound-i2s.c @@ -8,7 +8,7 @@ #include <malloc.h> #include <common.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdtdec.h> #include <i2c.h> #include <i2s.h> diff --git a/drivers/usb/common/common.c b/drivers/usb/common/common.c index e8432bb..69cf11c 100644 --- a/drivers/usb/common/common.c +++ b/drivers/usb/common/common.c @@ -8,7 +8,7 @@ */ #include <common.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/usb/otg.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/usb/host/dwc3-sti-glue.c b/drivers/usb/host/dwc3-sti-glue.c index 67b2561..ce9335e 100644 --- a/drivers/usb/host/dwc3-sti-glue.c +++ b/drivers/usb/host/dwc3-sti-glue.c @@ -12,7 +12,7 @@ #include <dm.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <dm/lists.h> #include <regmap.h> #include <reset-uclass.h> diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index 30297b0..a2c6d5a 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -10,7 +10,7 @@ #include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <usb.h> #include <asm/arch/cpu.h> diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c index f5320ca..ea008bb 100644 --- a/drivers/usb/host/ehci-msm.c +++ b/drivers/usb/host/ehci-msm.c @@ -12,7 +12,7 @@ #include <dm.h> #include <errno.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <usb.h> #include <usb/ehci-ci.h> #include <usb/ulpi.h> diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index 1c72330..f317cf0 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c @@ -16,7 +16,7 @@ #include <asm/arch-tegra/clk_rst.h> #include <usb.h> #include <usb/ulpi.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "ehci.h" diff --git a/drivers/usb/host/ehci-vf.c b/drivers/usb/host/ehci-vf.c index 5bb3763..3d63cfa 100644 --- a/drivers/usb/host/ehci-vf.c +++ b/drivers/usb/host/ehci-vf.c @@ -20,7 +20,7 @@ #include <asm/mach-imx/iomux-v3.h> #include <asm/mach-imx/regs-usbphy.h> #include <usb/ehci-ci.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <fdtdec.h> #include "ehci.h" diff --git a/drivers/usb/host/xhci-exynos5.c b/drivers/usb/host/xhci-exynos5.c index bf72865..6f08d5d 100644 --- a/drivers/usb/host/xhci-exynos5.c +++ b/drivers/usb/host/xhci-exynos5.c @@ -16,7 +16,7 @@ #include <common.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <usb.h> #include <watchdog.h> diff --git a/drivers/usb/phy/rockchip_usb2_phy.c b/drivers/usb/phy/rockchip_usb2_phy.c index 1958478..01bda15 100644 --- a/drivers/usb/phy/rockchip_usb2_phy.c +++ b/drivers/usb/phy/rockchip_usb2_phy.c @@ -6,7 +6,7 @@ #include <common.h> #include <asm/io.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "../gadget/dwc2_udc_otg_priv.h" diff --git a/drivers/video/exynos/exynos_dp.c b/drivers/video/exynos/exynos_dp.c index 2be230c..30e4020 100644 --- a/drivers/video/exynos/exynos_dp.c +++ b/drivers/video/exynos/exynos_dp.c @@ -11,7 +11,7 @@ #include <common.h> #include <display.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <malloc.h> #include <video_bridge.h> #include <linux/compat.h> diff --git a/drivers/video/exynos/exynos_dp_lowlevel.c b/drivers/video/exynos/exynos_dp_lowlevel.c index aae78a8..f84dd70 100644 --- a/drivers/video/exynos/exynos_dp_lowlevel.c +++ b/drivers/video/exynos/exynos_dp_lowlevel.c @@ -13,7 +13,7 @@ #include <asm/arch/dp_info.h> #include <asm/arch/dp.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include "exynos_dp_lowlevel.h" /* Declare global data pointer */ diff --git a/drivers/video/exynos/exynos_fb.c b/drivers/video/exynos/exynos_fb.c index 6ca17f2..a2879a9 100644 --- a/drivers/video/exynos/exynos_fb.c +++ b/drivers/video/exynos/exynos_fb.c @@ -13,7 +13,7 @@ #include <div64.h> #include <dm.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <panel.h> #include <video.h> #include <video_bridge.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi.c b/drivers/video/exynos/exynos_mipi_dsi.c index a5d9b59..724d08f 100644 --- a/drivers/video/exynos/exynos_mipi_dsi.c +++ b/drivers/video/exynos/exynos_mipi_dsi.c @@ -10,7 +10,7 @@ #include <common.h> #include <malloc.h> #include <fdtdec.h> -#include <libfdt.h> +#include <linux/libfdt.h> #include <linux/compat.h> #include <linux/err.h> #include <asm/arch/dsim.h> |