From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 4/6] ARM: omap: fix missing prototypes warnings
Date: Fri, 14 Dec 2018 11:40:58 +0100 [thread overview]
Message-ID: <20181214104100.6296-4-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20181214104100.6296-1-s.hauer@pengutronix.de>
- make locally used function static
- include mach/omap4-generic.h to get prototypes
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2018-12-14 10:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-14 10:40 [PATCH 1/6] ARM: Add missing prototypes Sascha Hauer
2018-12-14 10:40 ` [PATCH 2/6] ARM: AT91: at91rm9200 clocksource: Make locally used function static Sascha Hauer
2018-12-14 10:40 ` [PATCH 3/6] ARM: AT91: remove unused function Sascha Hauer
2018-12-14 10:40 ` Sascha Hauer [this message]
2018-12-14 10:40 ` [PATCH 5/6] ARM: AT91: pit: Make locally used function static Sascha Hauer
2018-12-14 10:41 ` [PATCH 6/6] ARM: AT91: add missing includes Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181214104100.6296-4-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox