]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Fix build errors if bitop functions are do {} while macros
authorRalf Baechle <ralf@linux-mips.org>
Tue, 20 Feb 2007 21:57:45 +0000 (13:57 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 21 Feb 2007 01:10:12 +0000 (17:10 -0800)
commit7b8f850bebe093e37d283ed791039b39fa241e6d
tree5ecd31dda2658366a9e7feb4c8c6c95e01a57caf
parente696268a73f7f59a333624f9abf8ffc9412ee64c
[PATCH] Fix build errors if bitop functions are do {} while macros

If one of clear_bit, change_bit or set_bit is defined as a do { } while (0)
function usage of these functions in parenthesis like

  (foo_bit(23, &var))

while be expaned to something like

  (do { ... } while (0)}).

resulting in a build error.  This patch removes the useless parenthesis.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/floppy.c
include/linux/sunrpc/sched.h