From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KphIN-0006Sd-JF for qemu-devel@nongnu.org; Tue, 14 Oct 2008 06:38:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KphIL-0006RH-Ng for qemu-devel@nongnu.org; Tue, 14 Oct 2008 06:38:30 -0400 Received: from [199.232.76.173] (port=36122 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KphIL-0006Qv-8T for qemu-devel@nongnu.org; Tue, 14 Oct 2008 06:38:29 -0400 Received: from ik-out-1112.google.com ([66.249.90.180]:41882) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KphD8-0006dX-2o for qemu-devel@nongnu.org; Tue, 14 Oct 2008 06:33:06 -0400 Received: by ik-out-1112.google.com with SMTP id c21so1644039ika.2 for ; Tue, 14 Oct 2008 03:33:03 -0700 (PDT) Date: Tue, 14 Oct 2008 13:34:18 +0300 From: "Kirill A. Shutemov" Subject: Re: [Qemu-devel] [PATCH] avoid unused shm_region warning Message-ID: <20081014103416.GA4964@localhost.localdomain> References: <48F46218.9050703@siemens.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline In-Reply-To: <48F46218.9050703@siemens.com> 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 --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 14, 2008 at 11:10:48AM +0200, Jan Kiszka wrote: > Signed-off-by: Jan Kiszka > --- > linux-user/syscall.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) >=20 > Index: b/linux-user/syscall.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- a/linux-user/syscall.c > +++ b/linux-user/syscall.c > @@ -1613,11 +1613,6 @@ static abi_long do_socketcall(int num, a > =20 > #define N_SHM_REGIONS 32 > =20 > -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: > } > =20 > #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, It goes away when my shm-related patches will be merged. --=20 Regards, Kirill A. Shutemov + Belarus, Minsk + ALT Linux Team, http://www.altlinux.com/ --qMm9M+Fa2AknHoGS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkj0dagACgkQbWYnhzC5v6ovYgCdHbkKo7STkazh8nwN/ejN0kqy utIAn3iLk4vGsa67QtoGpt0POwHWvzDO =Yb/+ -----END PGP SIGNATURE----- --qMm9M+Fa2AknHoGS--