From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IrTxH-0004lW-PI for qemu-devel@nongnu.org; Mon, 12 Nov 2007 02:43:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IrTxF-0004l6-KJ for qemu-devel@nongnu.org; Mon, 12 Nov 2007 02:43:34 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrTxF-0004l3-Ce for qemu-devel@nongnu.org; Mon, 12 Nov 2007 02:43:33 -0500 Received: from tapir.sajinet.com.pe ([66.139.79.212]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IrTxE-0006Qn-H1 for qemu-devel@nongnu.org; Mon, 12 Nov 2007 02:43:32 -0500 Date: Mon, 12 Nov 2007 01:48:16 -0600 From: Carlo Marcelo Arenas Belon Message-ID: <20071112074816.GA15570@tapir> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] tests/runcom.c: use sys/vm86.h definition of vm86 system call Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The following patch fixes a compilation/type mismatch issue for runcom by removing the _syscall2 macro call (deprecated since kernel 2.6.18) and using the definition from for the vm86 system call instead. Carlo --- Index: tests/runcom.c =================================================================== RCS file: /sources/qemu/qemu/tests/runcom.c,v retrieving revision 1.5 diff -u -r1.5 runcom.c --- tests/runcom.c 17 Sep 2007 08:09:54 -0000 1.5 +++ tests/runcom.c 12 Nov 2007 07:30:50 -0000 @@ -12,6 +12,7 @@ #include #include +#include //#define SIGTEST @@ -21,8 +22,6 @@ return (type) (res); \ } while (0) -_syscall2(int, vm86, int, func, struct vm86plus_struct *, v86) - #define COM_BASE_ADDR 0x10100 void usage(void)