qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] avoid unused shm_region warning


From: Jan Kiszka
Subject: [Qemu-devel] [PATCH] avoid unused shm_region warning
Date: Tue, 14 Oct 2008 11:10:48 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

Signed-off-by: Jan Kiszka <address@hidden>
---
 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,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]