Received: from eggs.gnu.org ([140.186.70.92]:50644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS9O5-0001JR-LX for qemu-devel@nongnu.org; Thu, 02 Jun 2011 11:00:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QS9O3-00035t-NH for qemu-devel@nongnu.org; Thu, 02 Jun 2011 11:00:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS9O3-00035a-3S for qemu-devel@nongnu.org; Thu, 02 Jun 2011 11:00:39 -0400 From: Juan Quintela In-Reply-To: (Peter Maydell's message of "Thu, 2 Jun 2011 14:51:21 +0100") References: <60dd6cb1f888183df83a2d6b6b98e17c5991a093.1307014902.git.quintela@redhat.com> Date: Thu, 02 Jun 2011 16:59:49 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 11/14] linux-user: fpu_save_addr is not used Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org Peter Maydell wrote: > On 2 June 2011 12:53, Juan Quintela wrote: >> It is only read to set the error code? > >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 err |=3D __get_user(fpu_save_addr, &sf->fpu_= save); >> - >> + =C2=A0 =C2=A0 =C2=A0 =C2=A0(void)fpu_save_addr; > > In linux-user __get_user can never generate an error: faults > are always caught by the lock_user_struct() or equivalent call > done beforehand. The error handling is I think a leftover from > code borrowed from the kernel (which does have a __get_user > that might return an error). > > So I think the correct fix here is just to remove the __get_user > lines and the variables if they're not used. Fine with me. Will do for next series. Later, Juan.