* [PATCH] MTD: compatmac.h - workaround for touch_softlockup_watchdog
@ 2006-01-07 12:24 Lenar D. Tukhvatullin
0 siblings, 0 replies; only message in thread
From: Lenar D. Tukhvatullin @ 2006-01-07 12:24 UTC (permalink / raw)
To: linux-mtd
"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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-01-07 12:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-07 12:24 [PATCH] MTD: compatmac.h - workaround for touch_softlockup_watchdog Lenar D. Tukhvatullin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox