mtd/include/linux/mtd compatmac.h,1.74,1.75

bjd at infradead.org bjd at infradead.org
Thu Jun 30 07:57:45 EDT 2005


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

Modified Files:
	compatmac.h 
Log Message:
After 2.6.12, try_to_freeze() does not take any arguments, so add
a new macro MTD_FREEZE_FLAGS to the compatibility code


Index: compatmac.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/compatmac.h,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- compatmac.h	29 Mar 2005 16:41:33 -0000	1.74
+++ compatmac.h	30 Jun 2005 11:57:42 -0000	1.75
@@ -211,6 +211,12 @@
 }
 #endif
 
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,12)
+#define MTD_FREEZE_FLAGS
+#else
+#define MTD_FREEZE_FLAGS (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