]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
microblaze: Remove compilation warnings in cache macro
authorMichal Simek <monstr@monstr.eu>
Thu, 13 May 2010 08:55:47 +0000 (10:55 +0200)
committerMichal Simek <monstr@monstr.eu>
Thu, 13 May 2010 08:55:47 +0000 (10:55 +0200)
CC      arch/microblaze/kernel/cpu/cache.o
arch/microblaze/kernel/cpu/cache.c: In function '__invalidate_dcache_range_wb':
arch/microblaze/kernel/cpu/cache.c:398: warning: ISO C90 forbids mixed declarations and code
arch/microblaze/kernel/cpu/cache.c: In function '__flush_dcache_range_wb':
arch/microblaze/kernel/cpu/cache.c:509: warning: ISO C90 forbids mixed declara

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

index 21c3a92394de998dd17452ffa1f0f1ede0351ba2..109876e8d643a3b51eb41a91e7fc8adb9e1a5ec9 100644 (file)
@@ -137,8 +137,9 @@ do {                                                                        \
 do {                                                                   \
        int step = -line_length;                                        \
        int align = ~(line_length - 1);                                 \
+       int count;                                                      \
        end = ((end & align) == end) ? end - line_length : end & align; \
-       int count = end - start;                                        \
+       count = end - start;                                            \
        WARN_ON(count < 0);                                             \
                                                                        \
        __asm__ __volatile__ (" 1:      " #op " %0, %1;                 \