Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7ae9e420de165c2a992d116002d05655138d8f24
Commit:     7ae9e420de165c2a992d116002d05655138d8f24
Parent:     58d19d6ea608077e83c30e58ae1494246b1f6b82
Author:     Ben Dooks <[EMAIL PROTECTED]>
AuthorDate: Sun Dec 17 20:59:37 2006 +0100
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Sun Dec 17 23:37:58 2006 +0000

    [ARM] 4046/1: S3C24XX: fix sparse errors arch/arm/mach-s3c2410
    
    Fix the following sparse errors in arch/arm/mach-s3c2410
    by fixing the include paths and making un-exported items
    static.
    
    s3c2410-clock.c:206:12: warning: symbol 's3c2410_baseclk_add' was not 
declared. Should it be static?
    s3c2412-clock.c:559:17: warning: symbol 'clks_src' was not declared. Should 
it be static?
    s3c2412-clock.c:622:12: warning: symbol 'clks' was not declared. Should it 
be static?
    s3c2412-clock.c:630:12: warning: symbol 's3c2412_baseclk_add' was not 
declared. Should it be static?
    
    Signed-off-by: Ben Dooks <[EMAIL PROTECTED]>
    Signed-off-by: Russell King <[EMAIL PROTECTED]>
---
 arch/arm/mach-s3c2410/s3c2410-clock.c |    4 ++++
 arch/arm/mach-s3c2410/s3c2412-clock.c |   10 +++++++---
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-s3c2410/s3c2410-clock.c 
b/arch/arm/mach-s3c2410/s3c2410-clock.c
index 00abe19..5815aa0 100644
--- a/arch/arm/mach-s3c2410/s3c2410-clock.c
+++ b/arch/arm/mach-s3c2410/s3c2410-clock.c
@@ -31,12 +31,16 @@
 #include <linux/mutex.h>
 #include <linux/delay.h>
 
+#include <asm/mach/map.h>
+
 #include <asm/hardware.h>
 #include <asm/io.h>
 
+#include <asm/arch/regs-serial.h>
 #include <asm/arch/regs-clock.h>
 #include <asm/arch/regs-gpio.h>
 
+#include "s3c2410.h"
 #include "clock.h"
 #include "cpu.h"
 
diff --git a/arch/arm/mach-s3c2410/s3c2412-clock.c 
b/arch/arm/mach-s3c2410/s3c2412-clock.c
index c95ed3e..63f980c 100644
--- a/arch/arm/mach-s3c2410/s3c2412-clock.c
+++ b/arch/arm/mach-s3c2410/s3c2412-clock.c
@@ -31,12 +31,16 @@
 #include <linux/mutex.h>
 #include <linux/delay.h>
 
+#include <asm/mach/map.h>
+
 #include <asm/hardware.h>
 #include <asm/io.h>
 
+#include <asm/arch/regs-serial.h>
 #include <asm/arch/regs-clock.h>
 #include <asm/arch/regs-gpio.h>
 
+#include "s3c2412.h"
 #include "clock.h"
 #include "cpu.h"
 
@@ -49,7 +53,7 @@
  * set the correct muxing at initialisation
 */
 
-int s3c2412_clkcon_enable(struct clk *clk, int enable)
+static int s3c2412_clkcon_enable(struct clk *clk, int enable)
 {
        unsigned int clocks = clk->ctrlbit;
        unsigned long clkcon;
@@ -556,7 +560,7 @@ struct clk_init {
        struct clk      *src_1;
 };
 
-struct clk_init clks_src[] __initdata = {
+static struct clk_init clks_src[] __initdata = {
        {
                .clk    = &clk_usysclk,
                .bit    = S3C2412_CLKSRC_USBCLK_HCLK,
@@ -619,7 +623,7 @@ static void __init s3c2412_clk_initparents(void)
 
 /* clocks to add straight away */
 
-struct clk *clks[] __initdata = {
+static struct clk *clks[] __initdata = {
        &clk_ext,
        &clk_usb_bus,
        &clk_erefclk,
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to