All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] avoid unused shm_region warning
@ 2008-10-14  9:10 Jan Kiszka
  2008-10-14 10:34 ` Kirill A. Shutemov
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2008-10-14  9:10 UTC (permalink / raw)
  To: qemu-devel

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 linux-user/syscall.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Index: b/linux-user/syscall.c
===================================================================
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -1613,11 +1613,6 @@ static abi_long do_socketcall(int num, a
 
 #define N_SHM_REGIONS	32
 
-static struct shm_region {
-    abi_ulong	start;
-    abi_ulong	size;
-} shm_regions[N_SHM_REGIONS];
-
 struct target_ipc_perm
 {
     abi_long __key;
@@ -2028,6 +2023,11 @@ end:
 }
 
 #ifdef TARGET_NR_ipc
+static struct shm_region {
+    abi_ulong	start;
+    abi_ulong	size;
+} shm_regions[N_SHM_REGIONS];
+
 /* ??? This only works with linear mappings.  */
 /* do_ipc() must return target values and target errnos. */
 static abi_long do_ipc(unsigned int call, int first,

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-14 10:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14  9:10 [Qemu-devel] [PATCH] avoid unused shm_region warning Jan Kiszka
2008-10-14 10:34 ` Kirill A. Shutemov

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.