Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b2e569d876e153365b01525a102b7d90bb309446
Commit:     b2e569d876e153365b01525a102b7d90bb309446
Parent:     012390517e3e6734d381ff81c4a7e9817636e2f1
Author:     Ralf Baechle <[EMAIL PROTECTED]>
AuthorDate: Thu Mar 8 00:47:11 2007 +0000
Committer:  Ralf Baechle <[EMAIL PROTECTED]>
CommitDate: Thu Mar 8 01:10:30 2007 +0000

    [MIPS] ARC: Fix several compiler warnings.
    
      CC      arch/mips/arc/init.o
    arch/mips/arc/init.c: In function 'prom_init':
    arch/mips/arc/init.c:27: warning: ISO C90 forbids mixed declarations and 
code
    arch/mips/arc/init.c:35: warning: format ‘%08lx’ expects type ‘long 
unsigned int’, but argument 2 has type 'ULONG'
    arch/mips/arc/init.c:28: warning: unused variable 'c'
    arch/mips/arc/init.c:27: warning: unused variable ‘cnt’
    
    Signed-off-by: Ralf Baechle <[EMAIL PROTECTED]>
---
 arch/mips/arc/init.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/mips/arc/init.c b/arch/mips/arc/init.c
index 0ac8f42..e2f75b1 100644
--- a/arch/mips/arc/init.c
+++ b/arch/mips/arc/init.c
@@ -23,16 +23,16 @@ LONG *_prom_argv, *_prom_envp;
 void __init prom_init(void)
 {
        PSYSTEM_PARAMETER_BLOCK pb = PROMBLOCK;
+
        romvec = ROMVECTOR;
-       ULONG cnt;
-       CHAR c;
 
        prom_argc = fw_arg0;
        _prom_argv = (LONG *) fw_arg1;
        _prom_envp = (LONG *) fw_arg2;
 
        if (pb->magic != 0x53435241) {
-               printk(KERN_CRIT "Aieee, bad prom vector magic %08lx\n", 
pb->magic);
+               printk(KERN_CRIT "Aieee, bad prom vector magic %08lx\n",
+                      (unsigned long) pb->magic);
                while(1)
                        ;
        }
-
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