mtd/include/linux/mtd compatmac.h,1.61,1.62

David Woodhouse dwmw2 at infradead.org
Mon Nov 3 07:20:25 EST 2003


Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv27457

Modified Files:
	compatmac.h 
Log Message:
Fix old_encode_dev()

Index: compatmac.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/compatmac.h,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- compatmac.h	13 Oct 2003 20:56:48 -0000	1.61
+++ compatmac.h	3 Nov 2003 12:20:23 -0000	1.62
@@ -55,7 +55,7 @@
 #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_encode_dev(d) ( (imajor(d)<<8) | iminor(d) )
 #define old_decode_dev(rdev)  (kdev_t_to_nr(mk_kdev((rdev)>>8, (rdev)&0xff)))
 #define old_valid_dev(d) (1)
 #endif




More information about the linux-mtd-cvs mailing list