* [RESEND][PATCH] Fix external module build for 2.6.22
@ 2008-09-11 15:28 Jan Kiszka
2008-09-11 15:34 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2008-09-11 15:28 UTC (permalink / raw)
To: kvm-devel; +Cc: Avi Kivity
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
diff --git a/kernel/external-module-compat-comm.h b/kernel/external-module-compat-comm.h
index 2e87c57..6072fde 100644
--- a/kernel/external-module-compat-comm.h
+++ b/kernel/external-module-compat-comm.h
@@ -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)
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-11 15:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-11 15:28 [RESEND][PATCH] Fix external module build for 2.6.22 Jan Kiszka
2008-09-11 15:34 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox