Skip to content

Commit ddfbc93

Browse files
committed
microblaze: Remove compilation warnings in cache macro
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>
1 parent e1733d2 commit ddfbc93

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎arch/microblaze/kernel/cpu/cache.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,9 @@ do { \
137137
do { \
138138
int step = -line_length; \
139139
int align = ~(line_length - 1); \
140+
int count; \
140141
end = ((end & align) == end) ? end - line_length : end & align; \
141-
int count = end - start; \
142+
count = end - start; \
142143
WARN_ON(count < 0); \
143144
\
144145
__asm__ __volatile__ (" 1: " #op " %0, %1; \

0 commit comments

Comments
 (0)