From 07b1c63db8eefeb69d6e0644446ff14aacbb7ae2 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 18 Mar 2019 10:00:57 +0100 Subject: treewide: Add missing includes Many files in the tree implement functions, but do not include the header files which provide the prototypes for these functions. This means conflicting prototypes remain undetected. Add the missing includes. Signed-off-by: Sascha Hauer --- arch/arm/boards/crystalfontz-cfa10036/hwdetect.c | 2 ++ arch/arm/boards/friendlyarm-tiny6410/tiny6410.c | 2 ++ arch/arm/lib32/semihosting.c | 1 + arch/arm/mach-clps711x/devices.c | 1 + arch/arm/mach-ep93xx/gpio.c | 1 + arch/arm/mach-ep93xx/led.c | 2 ++ arch/arm/mach-mvebu/common.c | 1 + arch/arm/mach-mxs/power.c | 1 + arch/arm/mach-mxs/usb-imx23.c | 1 + arch/arm/mach-mxs/usb-imx28.c | 1 + arch/arm/mach-netx/generic.c | 1 + arch/arm/mach-nomadik/8815.c | 1 + arch/arm/mach-omap/omap4_twl6030_mmc.c | 1 + arch/arm/mach-pxa/gpio.c | 1 + 14 files changed, 17 insertions(+) (limited to 'arch') diff --git a/arch/arm/boards/crystalfontz-cfa10036/hwdetect.c b/arch/arm/boards/crystalfontz-cfa10036/hwdetect.c index c94cb355e2..e4ccbdb2a3 100644 --- a/arch/arm/boards/crystalfontz-cfa10036/hwdetect.c +++ b/arch/arm/boards/crystalfontz-cfa10036/hwdetect.c @@ -26,6 +26,8 @@ #include +#include "hwdetect.h" + enum board_type { BOARD_ID_CFA10036 = 0, BOARD_ID_CFA10037 = 1, diff --git a/arch/arm/boards/friendlyarm-tiny6410/tiny6410.c b/arch/arm/boards/friendlyarm-tiny6410/tiny6410.c index e066a43dbe..39179c83d8 100644 --- a/arch/arm/boards/friendlyarm-tiny6410/tiny6410.c +++ b/arch/arm/boards/friendlyarm-tiny6410/tiny6410.c @@ -21,6 +21,8 @@ #include #include +#include "tiny6410.h" + static const unsigned tiny6410_pin_usage[] = { /* UART0 */ GPA2_GPIO | GPIO_IN | ENABLE_PU, /* CTS not connected */ diff --git a/arch/arm/lib32/semihosting.c b/arch/arm/lib32/semihosting.c index 10ee7d3640..9fc3b6b62c 100644 --- a/arch/arm/lib32/semihosting.c +++ b/arch/arm/lib32/semihosting.c @@ -21,6 +21,7 @@ #include #include #include +#include #ifndef O_BINARY #define O_BINARY 0 diff --git a/arch/arm/mach-clps711x/devices.c b/arch/arm/mach-clps711x/devices.c index 69574317bd..8eacc70018 100644 --- a/arch/arm/mach-clps711x/devices.c +++ b/arch/arm/mach-clps711x/devices.c @@ -15,6 +15,7 @@ #include #include +#include static int clps711x_mem_init(void) { diff --git a/arch/arm/mach-ep93xx/gpio.c b/arch/arm/mach-ep93xx/gpio.c index 0c87152032..20477f83e6 100644 --- a/arch/arm/mach-ep93xx/gpio.c +++ b/arch/arm/mach-ep93xx/gpio.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #define EP93XX_GPIO_NUM_PORTS 8 diff --git a/arch/arm/mach-ep93xx/led.c b/arch/arm/mach-ep93xx/led.c index a415bce0d7..47e24cd6ed 100644 --- a/arch/arm/mach-ep93xx/led.c +++ b/arch/arm/mach-ep93xx/led.c @@ -20,6 +20,8 @@ #include #include +#include "led.h" + #define GREEN_LED_POS 0x01 #define RED_LED_POS 0x02 diff --git a/arch/arm/mach-mvebu/common.c b/arch/arm/mach-mvebu/common.c index 83aeb41ae2..6b4fa8b889 100644 --- a/arch/arm/mach-mvebu/common.c +++ b/arch/arm/mach-mvebu/common.c @@ -25,6 +25,7 @@ #include #include #include +#include /* * The different SoC headers containing register definitions (mach/dove-regs.h, diff --git a/arch/arm/mach-mxs/power.c b/arch/arm/mach-mxs/power.c index 74c5479f3e..6febf5dbaa 100644 --- a/arch/arm/mach-mxs/power.c +++ b/arch/arm/mach-mxs/power.c @@ -14,6 +14,7 @@ #include #include #include +#include #define POWER_CTRL (IMX_POWER_BASE + 0x0) #define POWER_CTRL_CLKGATE 0x40000000 diff --git a/arch/arm/mach-mxs/usb-imx23.c b/arch/arm/mach-mxs/usb-imx23.c index e626396f9d..d9a54b66f8 100644 --- a/arch/arm/mach-mxs/usb-imx23.c +++ b/arch/arm/mach-mxs/usb-imx23.c @@ -17,6 +17,7 @@ #include #include #include +#include #define USBPHY_PWD (IMX_USBPHY_BASE + 0x0) diff --git a/arch/arm/mach-mxs/usb-imx28.c b/arch/arm/mach-mxs/usb-imx28.c index a87d4f6cbc..a4e1bdb280 100644 --- a/arch/arm/mach-mxs/usb-imx28.c +++ b/arch/arm/mach-mxs/usb-imx28.c @@ -18,6 +18,7 @@ #include #include #include +#include #define POWER_CTRL (IMX_POWER_BASE + 0x0) #define POWER_CTRL_CLKGATE 0x40000000 diff --git a/arch/arm/mach-netx/generic.c b/arch/arm/mach-netx/generic.c index e818f97013..450226d2cc 100644 --- a/arch/arm/mach-netx/generic.c +++ b/arch/arm/mach-netx/generic.c @@ -20,6 +20,7 @@ #include #include #include +#include #include "eth_firmware.h" struct fw_header { diff --git a/arch/arm/mach-nomadik/8815.c b/arch/arm/mach-nomadik/8815.c index dc1bcd2bcd..9f9c0342b4 100644 --- a/arch/arm/mach-nomadik/8815.c +++ b/arch/arm/mach-nomadik/8815.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include diff --git a/arch/arm/mach-omap/omap4_twl6030_mmc.c b/arch/arm/mach-omap/omap4_twl6030_mmc.c index 155add6ea1..67a9a5d6b5 100644 --- a/arch/arm/mach-omap/omap4_twl6030_mmc.c +++ b/arch/arm/mach-omap/omap4_twl6030_mmc.c @@ -17,6 +17,7 @@ #include #include +#include /* MMC voltage */ #define OMAP4_CONTROL_PBIASLITE 0x4A100600 diff --git a/arch/arm/mach-pxa/gpio.c b/arch/arm/mach-pxa/gpio.c index 7dd6ac0648..ebda6bbe2a 100644 --- a/arch/arm/mach-pxa/gpio.c +++ b/arch/arm/mach-pxa/gpio.c @@ -12,6 +12,7 @@ #include #include +#include #include #include -- cgit v1.2.3