mtd/fs/jffs2 os-linux.h,1.61,1.62
Artem Bityutskiy
dedekind at infradead.org
Wed Sep 21 07:13:01 EDT 2005
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv7926
Modified Files:
os-linux.h
Log Message:
[JFFS2] fix gcc warnings in case of no writebuffer compilation.
Index: os-linux.h
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/os-linux.h,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- os-linux.h 7 Sep 2005 08:34:54 -0000 1.61
+++ os-linux.h 21 Sep 2005 11:12:57 -0000 1.62
@@ -80,8 +80,8 @@
#define jffs2_flash_write(c, ofs, len, retlen, buf) jffs2_flash_direct_write(c, ofs, len, retlen, buf)
#define jffs2_flash_read(c, ofs, len, retlen, buf) ((c)->mtd->read((c)->mtd, ofs, len, retlen, buf))
-#define jffs2_flush_wbuf_pad(c) ({ (void)(c), 0; })
-#define jffs2_flush_wbuf_gc(c, i) ({ (void)(c), (void) i, 0; })
+#define jffs2_flush_wbuf_pad(c) ({do{} while(0); (c) = (c); 0;})
+#define jffs2_flush_wbuf_gc(c, i) ({do{} while(0); (c) = (c); (i) = (i); 0;})
#define jffs2_write_nand_badblock(c,jeb,bad_offset) (1)
#define jffs2_nand_flash_setup(c) (0)
#define jffs2_nand_flash_cleanup(c) do {} while(0)
More information about the linux-mtd-cvs
mailing list