Skip to contentSkip to conversation

Fix external module build for 2.6.22

PATCH Superseded Jan Kiszka 1 participant 1 message Sep 2, 2008 KVM

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 Fix external module build for 2.6.22

kernel/external-module-compat-comm.h +5 -0
index 2e87c57..6072fde 100644
@@ -517,6 +517,11 @@ static inline int cancel_work_sync(struct work_struct *work)
 	return 0;
 }
 
+/* ... and it returned void before 2.6.23 */
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
+
+#define cancel_work_sync(work) ({ cancel_work_sync(work); 0; })
+
 #endif
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)