]> err.no Git - linux-2.6/commitdiff
[ARM] More sparse fixes
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Tue, 8 Nov 2005 14:44:15 +0000 (14:44 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 8 Nov 2005 14:44:15 +0000 (14:44 +0000)
arch/arm/kernel/irq.c:998:26: warning: Using plain integer as NULL pointer
arch/arm/kernel/smp.c:145:25: warning: Using plain integer as NULL pointer
arch/arm/kernel/smp.c:362:5: warning: symbol 'smp_call_function_on_cpu' was not declared. Should it be static?
drivers/video/amba-clcd.c:521:12: warning: symbol 'amba_clcdfb_init' was not declared. Should it be static?

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/irq.c
arch/arm/kernel/smp.c
drivers/video/amba-clcd.c

index 9def4404e1f27607e46931d4e093725d705d843a..6f86d0af7c562f8e0211d0e209f3bfdc2814a18b 100644 (file)
@@ -995,7 +995,7 @@ void __init init_irq_proc(void)
        struct proc_dir_entry *dir;
        int irq;
 
-       dir = proc_mkdir("irq", 0);
+       dir = proc_mkdir("irq", NULL);
        if (!dir)
                return;
 
index f65750a3d28bf001fa483b207f2b41ffdfeefa75..f5fc57e0fe412bc1ea0b5fb28b65705a165b317c 100644 (file)
@@ -515,7 +515,7 @@ static void ipi_cpu_stop(unsigned int cpu)
  *
  *  Bit 0 - Inter-processor function call
  */
-void do_IPI(struct pt_regs *regs)
+asmlinkage void do_IPI(struct pt_regs *regs)
 {
        unsigned int cpu = smp_processor_id();
        struct ipi_data *ipi = &per_cpu(ipi_data, cpu);
index 467a1d7ebbdecdf14f129a34c172e8e0ae5ae5d9..a3c2c45e29e03e7d9e42a64036501904305ee4df 100644 (file)
@@ -518,7 +518,7 @@ static struct amba_driver clcd_driver = {
        .id_table       = clcdfb_id_table,
 };
 
-int __init amba_clcdfb_init(void)
+static int __init amba_clcdfb_init(void)
 {
        if (fb_get_options("ambafb", NULL))
                return -ENODEV;