All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] tests/runcom.c: use sys/vm86.h definition of vm86 system call
@ 2007-11-12  7:48 Carlo Marcelo Arenas Belon
  0 siblings, 0 replies; only message in thread
From: Carlo Marcelo Arenas Belon @ 2007-11-12  7:48 UTC (permalink / raw)
  To: qemu-devel

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 <sys/vm86.h> 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 <linux/unistd.h>
 #include <asm/vm86.h>
+#include <sys/vm86.h>
 
 //#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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-12  7:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-12  7:48 [Qemu-devel] [PATCH] tests/runcom.c: use sys/vm86.h definition of vm86 system call Carlo Marcelo Arenas Belon

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.