[PATCH v2 5/9] ARM: clps711x: Mark private functions that not will be used outside as static
Alexander Shiyan
shc_work at mail.ru
Wed Feb 13 06:41:40 EST 2013
Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
---
arch/arm/mach-clps711x/clock.c | 8 +++-----
arch/arm/mach-clps711x/devices.c | 2 +-
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/arch/arm/mach-clps711x/clock.c b/arch/arm/mach-clps711x/clock.c
index 5cafba9..09cbaf9 100644
--- a/arch/arm/mach-clps711x/clock.c
+++ b/arch/arm/mach-clps711x/clock.c
@@ -15,13 +15,11 @@
#include <mach/clps711x.h>
-struct clk {
+static struct clk {
unsigned long rate;
-};
-
-static struct clk uart_clk, bus_clk;
+} uart_clk, bus_clk;
-uint64_t clocksource_read(void)
+static uint64_t clocksource_read(void)
{
return ~readw(TC2D);
}
diff --git a/arch/arm/mach-clps711x/devices.c b/arch/arm/mach-clps711x/devices.c
index 08f27d2..de5813a 100644
--- a/arch/arm/mach-clps711x/devices.c
+++ b/arch/arm/mach-clps711x/devices.c
@@ -14,7 +14,7 @@
#include <mach/clps711x.h>
-inline void _clps711x_setup_memcfg(int bank, u32 addr, u32 val)
+inline static void _clps711x_setup_memcfg(int bank, u32 addr, u32 val)
{
u32 tmp = readl(addr);
--
1.7.3.4
More information about the barebox
mailing list