From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kpfvg-0002vF-Gm for qemu-devel@nongnu.org; Tue, 14 Oct 2008 05:11:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kpfvf-0002uQ-Ir for qemu-devel@nongnu.org; Tue, 14 Oct 2008 05:10:59 -0400 Received: from [199.232.76.173] (port=43144 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kpfve-0002u3-Nu for qemu-devel@nongnu.org; Tue, 14 Oct 2008 05:10:58 -0400 Received: from gecko.sbs.de ([194.138.37.40]:17978) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kpfve-0005FJ-5x for qemu-devel@nongnu.org; Tue, 14 Oct 2008 05:10:58 -0400 Received: from mail1.sbs.de (localhost [127.0.0.1]) by gecko.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id m9E9ApAD006857 for ; Tue, 14 Oct 2008 11:10:53 +0200 Received: from [139.25.109.167] (mchn012c.mchp.siemens.de [139.25.109.167] (may be forged)) by mail1.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id m9E9AnkC007760 for ; Tue, 14 Oct 2008 11:10:51 +0200 Message-ID: <48F46218.9050703@siemens.com> Date: Tue, 14 Oct 2008 11:10:48 +0200 From: Jan Kiszka MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] avoid unused shm_region warning 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 Signed-off-by: Jan Kiszka --- 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,