From: xtof pernod <xtof.pernod@free.fr>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH KQEMU] Make kqemu compile with kernel 2.6.37
Date: Sat, 22 Jan 2011 11:21:20 +0100 [thread overview]
Message-ID: <4D3AAFA0.3050407@free.fr> (raw)
Hello,
For those who still use kqemu (not all cpu's support kvm;), here is a
small patch that re-enable the init_MUTEX() macro, whose removal
was planed in 2009: see https://lkml.org/lkml/2009/7/26/10
Signed-off-by: christophe pernod <xtof.pernod@free.fr>
---
diff -up kqemu/kqemu-linux.c.ORG kqemu/kqemu-linux.c
--- kqemu/kqemu-linux.c.ORG 2009-05-31 00:34:10.000000000 +0200
+++ kqemu/kqemu-linux.c 2011-01-20 19:44:20.431688004 +0100
@@ -26,6 +27,7 @@
#include <linux/ioctl.h>
#include <linux/smp_lock.h>
#include <linux/miscdevice.h>
+#include <linux/semaphore.h>
#include <asm/atomic.h>
#include <asm/processor.h>
#include <asm/uaccess.h>
@@ -60,6 +62,10 @@ int lock_count;
int page_alloc_count;
#endif
+#ifndef init_MUTEX
+#define init_MUTEX(sem) sema_init(sem, 1)
+#endif
--
XtoF.
reply other threads:[~2011-01-22 10:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D3AAFA0.3050407@free.fr \
--to=xtof.pernod@free.fr \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.