[parisc-linux] include/asm-parisc/pgalloc.h
Timothy Ball
timball@tux.org
Tue, 12 Feb 2002 15:28:01 -0500
do { ... } while(0); do not need the trailing semicolon and may lead to
strange side effects. the following patch fixes it.
--timball
--snip--snip--snip--
diff -ruN linux-2.5.4/include/asm-parisc/pgalloc.h linux-2.5.4-fixed/include/asm-parisc/pgalloc.h
--- linux-2.5.4/include/asm-parisc/pgalloc.h Sun Feb 10 20:50:16 2002
+++ linux-2.5.4-fixed/include/asm-parisc/pgalloc.h Mon Feb 11 18:35:43 2002
@@ -120,7 +120,7 @@
#define flush_tlb() do { \
flush_data_tlb(); \
flush_instruction_tlb(); \
-} while(0);
+} while(0)
#define flush_tlb_all() flush_tlb() /* XXX p[id]tlb */
--
GPG key available on pgpkeys.mit.edu
pub 1024D/511FBD54 2001-07-23 Timothy Lu Hu Ball <timball@tux.org>
Key fingerprint = B579 29B0 F6C8 C7AA 3840 E053 FE02 BB97 511F BD54