MTD: compatmac.h - workaround for touch_softlockup_watchdog
PATCH 1/1 MTD: compatmac.h - workaround for touch_softlockup_watchdog
"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:
=================================================================================
linux/mtd/compatmac.h renamed from linux/mtd/compatmac.h.old +6 -0
@@ -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