diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2008-02-08 13:20:46 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 18:22:35 +0100 |
commit | 756fa92f4d725698ffa4ac1faeb8f4e8cdb6cd95 (patch) | |
tree | 383d23fde3e040ac4dabdf0d418e7b04ac5fc1c8 /fs/locks.c | |
parent | udf: cache struct udf_inode_info (diff) | |
download | linux-756fa92f4d725698ffa4ac1faeb8f4e8cdb6cd95.tar.xz linux-756fa92f4d725698ffa4ac1faeb8f4e8cdb6cd95.zip |
udf: fix udf_debug macro
udf_debug should be enclosed with do { } while (0)
to be safely used in code like below:
if (something)
udf_debug();
else
anything;
(Otherwise compiler will not compile it with:
"error: expected expression before 'else'")
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/locks.c')
0 files changed, 0 insertions, 0 deletions