summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-12-10 09:07:46 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-12-14 11:39:24 +0100
commit480595e99c067e9efa84ed21f98a1fc34df659e6 (patch)
treecee68b50e6bcc9347730857d4cf2d150dd7b5105 /arch
parentd1d659b5813bba0965a26ad083662d055500af4b (diff)
downloadbarebox-480595e99c067e9efa84ed21f98a1fc34df659e6.tar.gz
barebox-480595e99c067e9efa84ed21f98a1fc34df659e6.tar.xz
ARM: omap: fix missing prototypes warnings
- make locally used function static - include mach/omap4-generic.h to get prototypes Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap/include/mach/omap4-generic.h1
-rw-r--r--arch/arm/mach-omap/omap4_generic.c3
2 files changed, 3 insertions, 1 deletions
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