From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KhOav-00036c-Sn for qemu-devel@nongnu.org; Sun, 21 Sep 2008 09:03:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KhOau-00036L-9o for qemu-devel@nongnu.org; Sun, 21 Sep 2008 09:03:21 -0400 Received: from [199.232.76.173] (port=35921 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KhOau-00036H-5o for qemu-devel@nongnu.org; Sun, 21 Sep 2008 09:03:20 -0400 Received: from mail.codesourcery.com ([65.74.133.4]:34158) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KhOat-0007By-LV for qemu-devel@nongnu.org; Sun, 21 Sep 2008 09:03:19 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH] Add readahead syscall Date: Sun, 21 Sep 2008 14:03:16 +0100 References: <20080919133323.GA19890@kos.to> In-Reply-To: <20080919133323.GA19890@kos.to> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809211403.16987.paul@codesourcery.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 Cc: Riku Voipio > #ifdef TARGET_NR_readahead > case TARGET_NR_readahead: > - goto unimplemented; > + ret = get_errno(readahead(arg1, arg2, arg3)); > + break; This is wrong on 32-bit targets, and especially wrong on ARM where there are two variants. Paul