mtd/include/linux/mtd compatmac.h,1.59,1.60

David Woodhouse dwmw2 at infradead.org
Sat Oct 11 07:47:01 EDT 2003


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)
 




More information about the linux-mtd-cvs mailing list