[PATCH] MTD: compatmac.h - workaround for touch_softlockup_watchdog

Lenar D. Tukhvatullin lenar at netroad.ru
Sat Jan 7 07:24:05 EST 2006


"Soft lockups detection" feature was added in 2.6.14 kernel.

In early kernels touch_softlockup_watchdog() is absent,
that causes compilation error of nand_base.c and onenand_base.c

Patch below adds workaround for kernels < 2.6.14:

=================================================================================
--- include/linux/mtd/compatmac.h.old	Mon Nov  7 14:14:54 2005
+++ include/linux/mtd/compatmac.h	Sat Jan  7 04:12:12 2006
@@ -223,6 +223,12 @@
 #define class_destroy(cs) class_simple_destroy((struct class_simple *)cs)
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
+static inline void touch_softlockup_watchdog(void)
+{
+}
+#endif
+
 #ifndef list_for_each_entry_safe
 /**
  * list_for_each_entry_safe - iterate over list of given type safe against removal of list entry
=================================================================================

--
 Lenar D. Tukhvatullin,
 Ulyanovsk State Technical University




More information about the linux-mtd mailing list