diff options
| author | Dave Jones <davej@suse.de> | 2002-04-02 19:21:43 -0800 |
|---|---|---|
| committer | Dave Jones <davej@suse.de> | 2002-04-02 19:21:43 -0800 |
| commit | c398fde6ca4e2741c25b1920203653c2e6205604 (patch) | |
| tree | fb51a1ad7e3e5df2192046e6072fd177676acd6d /include | |
| parent | 870b38b01fc385425704eac75aefd79eb553f094 (diff) | |
[PATCH] Fix up broken do while macros.
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-arm/arch-cl7500/system.h | 2 | ||||
| -rw-r--r-- | include/asm-arm/arch-sa1100/keyboard.h | 4 | ||||
| -rw-r--r-- | include/asm-mips/spinlock.h | 4 | ||||
| -rw-r--r-- | include/asm-mips64/spinlock.h | 4 | ||||
| -rw-r--r-- | include/asm-parisc/pgalloc.h | 2 | ||||
| -rw-r--r-- | include/asm-sparc/elf.h | 2 | ||||
| -rw-r--r-- | include/linux/mtd/compatmac.h | 4 | ||||
| -rw-r--r-- | include/linux/rtnetlink.h | 2 | ||||
| -rw-r--r-- | include/net/sock.h | 2 | ||||
| -rw-r--r-- | include/net/tcp.h | 2 |
10 files changed, 14 insertions, 14 deletions
diff --git a/include/asm-arm/arch-cl7500/system.h b/include/asm-arm/arch-cl7500/system.h index 6cb002194834..fee569dd0303 100644 --- a/include/asm-arm/arch-cl7500/system.h +++ b/include/asm-arm/arch-cl7500/system.h @@ -18,6 +18,6 @@ static void arch_idle(void) do { \ iomd_writeb(0, IOMD_ROMCR0); \ cpu_reset(0); \ - } while (0); + } while (0) #endif diff --git a/include/asm-arm/arch-sa1100/keyboard.h b/include/asm-arm/arch-sa1100/keyboard.h index 0207ba65ed6e..aa7f317092e5 100644 --- a/include/asm-arm/arch-sa1100/keyboard.h +++ b/include/asm-arm/arch-sa1100/keyboard.h @@ -10,8 +10,8 @@ #include <asm/mach-types.h> #include <asm/arch/assabet.h> -#define kbd_disable_irq() do { } while(0); -#define kbd_enable_irq() do { } while(0); +#define kbd_disable_irq() do { } while(0) +#define kbd_enable_irq() do { } while(0) extern int sa1111_kbd_init_hw(void); extern void gc_kbd_init_hw(void); diff --git a/include/asm-mips/spinlock.h b/include/asm-mips/spinlock.h index 61ebfa6603eb..fb02686f7896 100644 --- a/include/asm-mips/spinlock.h +++ b/include/asm-mips/spinlock.h @@ -19,10 +19,10 @@ typedef struct { #define SPIN_LOCK_UNLOCKED (spinlock_t) { 0 } -#define spin_lock_init(x) do { (x)->lock = 0; } while(0); +#define spin_lock_init(x) do { (x)->lock = 0; } while(0) #define spin_is_locked(x) ((x)->lock != 0) -#define spin_unlock_wait(x) ({ do { barrier(); } while ((x)->lock); }) +#define spin_unlock_wait(x) do { barrier(); } while ((x)->lock) /* * Simple spin lock operations. There are two variants, one clears IRQ's diff --git a/include/asm-mips64/spinlock.h b/include/asm-mips64/spinlock.h index 7e560d4c05a4..9ce6c6c2e13c 100644 --- a/include/asm-mips64/spinlock.h +++ b/include/asm-mips64/spinlock.h @@ -19,10 +19,10 @@ typedef struct { #define SPIN_LOCK_UNLOCKED (spinlock_t) { 0 } -#define spin_lock_init(x) do { (x)->lock = 0; } while(0); +#define spin_lock_init(x) do { (x)->lock = 0; } while(0) #define spin_is_locked(x) ((x)->lock != 0) -#define spin_unlock_wait(x) ({ do { barrier(); } while ((x)->lock); }) +#define spin_unlock_wait(x) do { barrier(); } while ((x)->lock) /* * Simple spin lock operations. There are two variants, one clears IRQ's diff --git a/include/asm-parisc/pgalloc.h b/include/asm-parisc/pgalloc.h index b29fa8aef9be..37e7511bedd7 100644 --- a/include/asm-parisc/pgalloc.h +++ b/include/asm-parisc/pgalloc.h @@ -123,7 +123,7 @@ extern void flush_instruction_tlb(void); #define flush_tlb() do { \ flush_data_tlb(); \ flush_instruction_tlb(); \ -} while(0); +} while(0) #define flush_tlb_all() flush_tlb() /* XXX p[id]tlb */ diff --git a/include/asm-sparc/elf.h b/include/asm-sparc/elf.h index 436d1a9ad56b..d6e8a340495d 100644 --- a/include/asm-sparc/elf.h +++ b/include/asm-sparc/elf.h @@ -41,7 +41,7 @@ do { unsigned long *dest = &(__elf_regs[0]); \ dest[34] = src->npc; \ dest[35] = src->y; \ dest[36] = dest[37] = 0; /* XXX */ \ -} while(0); +} while(0) typedef struct { union { diff --git a/include/linux/mtd/compatmac.h b/include/linux/mtd/compatmac.h index e6844448c327..9c9a2276f57e 100644 --- a/include/linux/mtd/compatmac.h +++ b/include/linux/mtd/compatmac.h @@ -190,8 +190,8 @@ static inline int try_inc_mod_count(struct module *mod) #if LINUX_VERSION_CODE < 0x20300 #include <linux/interrupt.h> -#define spin_lock_bh(lock) do {start_bh_atomic();spin_lock(lock);}while(0); -#define spin_unlock_bh(lock) do {spin_unlock(lock);end_bh_atomic();}while(0); +#define spin_lock_bh(lock) do {start_bh_atomic();spin_lock(lock);} while(0) +#define spin_unlock_bh(lock) do {spin_unlock(lock);end_bh_atomic();} while(0) #else #include <asm/softirq.h> #include <linux/spinlock.h> diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index b0778a2d45e7..3854002c7eec 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h @@ -589,7 +589,7 @@ extern void rtnetlink_init(void); #define ASSERT_RTNL() do { if (down_trylock(&rtnl_sem) == 0) { up(&rtnl_sem); \ printk("RTNL: assertion failed at " __FILE__ "(%d)\n", __LINE__); } \ - } while(0); + } while(0) #define BUG_TRAP(x) if (!(x)) { printk("KERNEL: assertion (" #x ") failed at " __FILE__ "(%d)\n", __LINE__); } diff --git a/include/net/sock.h b/include/net/sock.h index d50815f55ff3..57159c6ce0bd 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -80,7 +80,7 @@ typedef struct { do { spin_lock_init(&((__sk)->lock.slock)); \ (__sk)->lock.users = 0; \ init_waitqueue_head(&((__sk)->lock.wq)); \ -} while(0); +} while(0) struct sock { /* Begin of struct sock/struct tcp_tw_bucket shared layout */ diff --git a/include/net/tcp.h b/include/net/tcp.h index e35e419a3405..1e7cf2cdce47 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -1832,6 +1832,6 @@ static inline int tcp_paws_check(struct tcp_opt *tp, int rst) return 1; } -#define TCP_CHECK_TIMER(sk) do { } while (0); +#define TCP_CHECK_TIMER(sk) do { } while (0) #endif /* _TCP_H */ |
