* [PATCH] Fix external module build for 2.6.22
@ 2008-07-18 15:31 Jan Kiszka
2008-07-19 7:09 ` Avi Kivity
0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2008-07-18 15:31 UTC (permalink / raw)
To: kvm-devel; +Cc: Avi Kivity
2.6.22 came with anon_inode_getfd, but it didn't export it. Since 2.6.23
it is usable for modules, too.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
diff --git a/kernel/anon_inodes.c b/kernel/anon_inodes.c
index 7155b4d..8512118 100644
--- a/kernel/anon_inodes.c
+++ b/kernel/anon_inodes.c
@@ -21,7 +21,7 @@
#include <asm/uaccess.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
static struct vfsmount *anon_inode_mnt __read_mostly;
static struct inode *anon_inode_inode;
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] Fix external module build for 2.6.22
@ 2008-09-02 8:51 Jan Kiszka
0 siblings, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2008-09-02 8:51 UTC (permalink / raw)
To: kvm-devel
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] 3+ messages in thread
end of thread, other threads:[~2008-09-02 8:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-18 15:31 [PATCH] Fix external module build for 2.6.22 Jan Kiszka
2008-07-19 7:09 ` Avi Kivity
-- strict thread matches above, loose matches on Subject: below --
2008-09-02 8:51 Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox