Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

blackfin: asm: fix blackfin.h broken

do{...}while makes no sense in __ASSEMBLY__ code paths. now
kernels fail to build:
arch/blackfin/mach-bf561/atomic.S: Assembler messages:
arch/blackfin/mach-bf561/atomic.S:48: Error: syntax error. Input text
was do.
arch/blackfin/mach-bf561/atomic.S:48: Error:
arch/blackfin/mach-bf561/atomic.S:48: Error: syntax error. Input text
was }.
arch/blackfin/mach-bf561/atomic.S:48: Error:
arch/blackfin/mach-bf561/atomic.S:53: Error: syntax error. Input text
was do.
arch/blackfin/mach-bf561/atomic.S:53: Error:
arch/blackfin/mach-bf561/atomic.S:53: Error: syntax error. Input text
was }.

Signed-off-by: Bob Liu <lliubbo@gmail.com>

Bob Liu b2286f2b b1a3c1da

+2 -6
+2 -6
arch/blackfin/include/asm/blackfin.h
··· 63 63 64 64 #if ANOMALY_05000312 || ANOMALY_05000244 65 65 #define SSYNC(scratch) \ 66 - do { \ 67 66 cli scratch; \ 68 67 nop; nop; nop; \ 69 68 SSYNC; \ 70 - sti scratch; \ 71 - } while (0) 69 + sti scratch; 72 70 73 71 #define CSYNC(scratch) \ 74 - do { \ 75 72 cli scratch; \ 76 73 nop; nop; nop; \ 77 74 CSYNC; \ 78 - sti scratch; \ 79 - } while (0) 75 + sti scratch; 80 76 81 77 #else 82 78 #define SSYNC(scratch) SSYNC;