mtd/include/linux/mtd compatmac.h,1.71,1.72

gleixner at infradead.org gleixner at infradead.org
Fri Mar 18 17:42:27 EST 2005


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

Modified Files:
	compatmac.h 
Log Message:
Add backwards compability

Index: compatmac.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/compatmac.h,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -r1.71 -r1.72
--- compatmac.h	12 Jan 2005 23:01:17 -0000	1.71
+++ compatmac.h	18 Mar 2005 22:42:24 -0000	1.72
@@ -197,6 +197,10 @@
 #define __iomem
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11)
+#define CURRENT_TIME_SEC ((struct timespec) { xtime.tv_sec, 0 })
+#endif
+
 #ifndef list_for_each_entry_safe
 /**
  * list_for_each_entry_safe - iterate over list of given type safe against removal of list entry





More information about the linux-mtd-cvs mailing list