mtd/include/linux/mtd compatmac.h,1.59,1.60
David Woodhouse
dwmw2 at infradead.org
Sat Oct 11 07:47:01 EDT 2003
- Previous message: mtd/fs/jffs2 wbuf.c,1.52,1.53
- Next message: mtd/fs/jffs2 dir.c,1.81,1.82 file.c,1.95,1.96 fs.c,1.31,1.32
os-linux.h,1.36,1.37 super.c,1.89,1.90
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv21579
Modified Files:
compatmac.h
Log Message:
More 2.5 compat stuff
Index: compatmac.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/compatmac.h,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- compatmac.h 9 Oct 2003 13:42:41 -0000 1.59
+++ compatmac.h 11 Oct 2003 11:46:59 -0000 1.60
@@ -52,6 +52,13 @@
#define cond_resched() do { if need_resched() { yield(); } } while(0)
#endif /* < 2.4.20 */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,73)
+#define iminor(d) minor(d)
+#define imajor(d) major(d)
+#define old_encode_dev(d) ( imajor(d) | iminor(d) )
+#define old_decode_dev(rdev) (kdev_t_to_nr(mk_kdev((rdev)>>8, (rdev)&0xff)))
+#define old_valid_dev(d) (1)
+#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,61)
- Previous message: mtd/fs/jffs2 wbuf.c,1.52,1.53
- Next message: mtd/fs/jffs2 dir.c,1.81,1.82 file.c,1.95,1.96 fs.c,1.31,1.32
os-linux.h,1.36,1.37 super.c,1.89,1.90
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list