microblaze: Fix sparse warning - prom.c
authorMichal Simek <monstr@monstr.eu>
Mon, 7 Feb 2011 10:32:09 +0000 (11:32 +0100)
committerMichal Simek <monstr@monstr.eu>
Wed, 9 Mar 2011 07:09:57 +0000 (08:09 +0100)
Warning log:
CHECK   arch/microblaze/kernel/dma.c
arch/microblaze/kernel/dma.c:53:26: warning: incorrect type in argument 1 (different base types)
arch/microblaze/kernel/dma.c:53:26:    expected int [signed] gfp
arch/microblaze/kernel/dma.c:53:26:    got restricted unsigned int [usertype] flag

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/prom.c

index bceaa55..00ee90f 100644 (file)
@@ -59,7 +59,7 @@ static int __init early_init_dt_scan_serial(unsigned long node,
 {
        unsigned long l;
        char *p;
-       int *addr;
+       const __be32 *addr;
 
        pr_debug("search \"serial\", depth: %d, uname: %s\n", depth, uname);