patch-2.4.18 linux/include/linux/kdev_t.h

Next file: linux/include/linux/kernel.h
Previous file: linux/include/linux/jbd.h
Back to the patch index
Back to the overall index

diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/include/linux/kdev_t.h linux/include/linux/kdev_t.h
@@ -75,6 +75,14 @@
 
 extern const char * kdevname(kdev_t);	/* note: returns pointer to static data! */
 
+/* 2.5.x compatibility */
+
+#define mk_kdev(a,b) MKDEV(a,b)
+#define major(d) MAJOR(d)
+#define minor(d) MINOR(d)
+#define kdev_same(a,b) (a==b)
+#define kdev_none(d) (!(d))
+
 /*
 As long as device numbers in the outside world have 16 bits only,
 we use these conversions.

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)