From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60448 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pgab0-0006DA-3I for qemu-devel@nongnu.org; Sat, 22 Jan 2011 05:21:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pgaay-00016q-SO for qemu-devel@nongnu.org; Sat, 22 Jan 2011 05:21:25 -0500 Received: from smtp11.smtpout.orange.fr ([80.12.242.133]:43806 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pgaay-00014Y-Nv for qemu-devel@nongnu.org; Sat, 22 Jan 2011 05:21:24 -0500 Message-ID: <4D3AAFA0.3050407@free.fr> Date: Sat, 22 Jan 2011 11:21:20 +0100 From: xtof pernod MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH KQEMU] Make kqemu compile with kernel 2.6.37 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 --- 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 #include #include +#include #include #include #include @@ -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.