* [PATCH 2/6] ARM: AT91: at91rm9200 clocksource: Make locally used function static
2018-12-14 10:40 [PATCH 1/6] ARM: Add missing prototypes Sascha Hauer
@ 2018-12-14 10:40 ` Sascha Hauer
2018-12-14 10:40 ` [PATCH 3/6] ARM: AT91: remove unused function Sascha Hauer
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Sascha Hauer @ 2018-12-14 10:40 UTC (permalink / raw)
To: Barebox List
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/mach-at91/at91rm9200_time.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-at91/at91rm9200_time.c b/arch/arm/mach-at91/at91rm9200_time.c
index b4021b5038..63975071f1 100644
--- a/arch/arm/mach-at91/at91rm9200_time.c
+++ b/arch/arm/mach-at91/at91rm9200_time.c
@@ -40,7 +40,7 @@ static void __iomem *st = IOMEM(AT91RM9200_BASE_ST);
* the updates as seen by the CPU don't seem to be strictly monotonic.
* Waiting until we read the same value twice avoids glitching.
*/
-uint64_t at91rm9200_clocksource_read(void)
+static uint64_t at91rm9200_clocksource_read(void)
{
unsigned long x1, x2;
--
2.19.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 3/6] ARM: AT91: remove unused function
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 ` Sascha Hauer
2018-12-14 10:40 ` [PATCH 4/6] ARM: omap: fix missing prototypes warnings Sascha Hauer
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Sascha Hauer @ 2018-12-14 10:40 UTC (permalink / raw)
To: Barebox List
at91rm9200_set_type() is unused. Remove it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/mach-at91/setup.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c
index adc614c42c..a2f594bbd0 100644
--- a/arch/arm/mach-at91/setup.c
+++ b/arch/arm/mach-at91/setup.c
@@ -24,17 +24,6 @@ void __initdata (*at91_boot_soc)(void);
struct at91_socinfo at91_soc_initdata;
EXPORT_SYMBOL(at91_soc_initdata);
-void __init at91rm9200_set_type(int type)
-{
- if (type == ARCH_REVISON_9200_PQFP)
- at91_soc_initdata.subtype = AT91_SOC_RM9200_PQFP;
- else
- at91_soc_initdata.subtype = AT91_SOC_RM9200_BGA;
-
- pr_info("AT91: filled in soc subtype: %s\n",
- at91_get_soc_subtype(&at91_soc_initdata));
-}
-
static void __init soc_detect(u32 dbgu_base)
{
u32 cidr, socid;
--
2.19.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 4/6] ARM: omap: fix missing prototypes warnings
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
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
4 siblings, 0 replies; 6+ messages in thread
From: Sascha Hauer @ 2018-12-14 10:40 UTC (permalink / raw)
To: Barebox List
- 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 5/6] ARM: AT91: pit: Make locally used function static
2018-12-14 10:40 [PATCH 1/6] ARM: Add missing prototypes Sascha Hauer
` (2 preceding siblings ...)
2018-12-14 10:40 ` [PATCH 4/6] ARM: omap: fix missing prototypes warnings Sascha Hauer
@ 2018-12-14 10:40 ` Sascha Hauer
2018-12-14 10:41 ` [PATCH 6/6] ARM: AT91: add missing includes Sascha Hauer
4 siblings, 0 replies; 6+ messages in thread
From: Sascha Hauer @ 2018-12-14 10:40 UTC (permalink / raw)
To: Barebox List
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
drivers/clocksource/timer-atmel-pit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/timer-atmel-pit.c b/drivers/clocksource/timer-atmel-pit.c
index 40895847f0..e23f1e5ec4 100644
--- a/drivers/clocksource/timer-atmel-pit.c
+++ b/drivers/clocksource/timer-atmel-pit.c
@@ -40,7 +40,7 @@
static __iomem void *pit_base;
-uint64_t at91sam9_clocksource_read(void)
+static uint64_t at91sam9_clocksource_read(void)
{
return pit_read(AT91_PIT_PIIR);
}
--
2.19.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 6/6] ARM: AT91: add missing includes
2018-12-14 10:40 [PATCH 1/6] ARM: Add missing prototypes Sascha Hauer
` (3 preceding siblings ...)
2018-12-14 10:40 ` [PATCH 5/6] ARM: AT91: pit: Make locally used function static Sascha Hauer
@ 2018-12-14 10:41 ` Sascha Hauer
4 siblings, 0 replies; 6+ messages in thread
From: Sascha Hauer @ 2018-12-14 10:41 UTC (permalink / raw)
To: Barebox List
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/mach-at91/clock.c | 1 +
arch/arm/mach-at91/setup.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c
index 9d2e3a3acc..d2691acae3 100644
--- a/arch/arm/mach-at91/clock.c
+++ b/arch/arm/mach-at91/clock.c
@@ -22,6 +22,7 @@
#include <mach/hardware.h>
#include <mach/at91_pmc.h>
#include <mach/cpu.h>
+#include <mach/board.h>
#include "clock.h"
#include "generic.h"
diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c
index a2f594bbd0..cb79eb26b8 100644
--- a/arch/arm/mach-at91/setup.c
+++ b/arch/arm/mach-at91/setup.c
@@ -15,6 +15,7 @@
#include <mach/cpu.h>
#include <mach/at91_dbgu.h>
#include <mach/at91_rstc.h>
+#include <mach/board.h>
#include "generic.h"
--
2.19.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 6+ messages in thread