All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] avoid unused shm_region warning
Date: Tue, 14 Oct 2008 11:10:48 +0200	[thread overview]
Message-ID: <48F46218.9050703@siemens.com> (raw)

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,

             reply	other threads:[~2008-10-14  9:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-14  9:10 Jan Kiszka [this message]
2008-10-14 10:34 ` [Qemu-devel] [PATCH] avoid unused shm_region warning Kirill A. Shutemov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48F46218.9050703@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.