mtd/include/linux/mtd compatmac.h,1.49,1.50

David Woodhouse dwmw2 at infradead.org
Thu May 15 13:10:10 EDT 2003


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

Modified Files:
	compatmac.h 
Log Message:
extra 2.5 stuff

Index: compatmac.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/compatmac.h,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- compatmac.h	14 May 2003 22:26:26 -0000	1.49
+++ compatmac.h	15 May 2003 17:10:07 -0000	1.50
@@ -578,6 +578,28 @@
 #define generic_file_readonly_mmap generic_file_mmap
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,61)
+static inline void __daemonize25(const char *fmt, ...)
+{
+	va_list args;
+
+	va_start(args, fmt);
+	vsnprintf(current->comm, sizeof(current->comm), fmt, args);
+	va_end(args);
+
+	daemonize();
+}
+#undef daemonize
+#define daemonize __daemonize25
+
+static inline int __dequeue_signal25(struct task_struct *tsk, sigset_t *mask, siginfo_t *info)
+{
+	return dequeue_signal(mask, info);
+}
+#undef dequeue_signal
+#define dequeue_signal __dequeue_signal25
+#endif
+
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,60)
 #define try_module_get(m) ({ __MOD_INC_USE_COUNT(m), 1; })
 #define __module_get(m) ({ __MOD_INC_USE_COUNT(m), 1; })




More information about the linux-mtd-cvs mailing list