- make locally used function static - include mach/omap4-generic.h to get prototypes Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- arch/arm/mach-omap/include/mach/omap4-generic.h | 1 + arch/arm/mach-omap/omap4_generic.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap/include/mach/omap4-generic.h b/arch/arm/mach-omap/include/mach/omap4-generic.h index 7ec41d880b..c1d0a3c900 100644 --- a/arch/arm/mach-omap/include/mach/omap4-generic.h +++ b/arch/arm/mach-omap/include/mach/omap4-generic.h @@ -1,6 +1,7 @@ #ifndef __MACH_OMAP4_GENERIC_H #define __MACH_OMAP4_GENERIC_H +#include <linux/sizes.h> #include <mach/generic.h> #include <mach/omap4-silicon.h> diff --git a/arch/arm/mach-omap/omap4_generic.c b/arch/arm/mach-omap/omap4_generic.c index a3f370df8f..ed3bb7524e 100644 --- a/arch/arm/mach-omap/omap4_generic.c +++ b/arch/arm/mach-omap/omap4_generic.c @@ -10,6 +10,7 @@ #include <mach/generic.h> #include <mach/gpmc.h> #include <mach/omap4_rom_usb.h> +#include <mach/omap4-generic.h> /* * The following several lines are taken from U-Boot to support @@ -179,7 +180,7 @@ static inline void delay(unsigned long loops) "bne 1b" : "=r" (loops) : "0"(loops)); } -int omap4_emif_config(unsigned int base, const struct ddr_regs *ddr_regs) +static int omap4_emif_config(unsigned int base, const struct ddr_regs *ddr_regs) { /* * set SDRAM CONFIG register -- 2.19.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox