From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18B0AC433EF for ; Wed, 29 Jun 2022 00:31:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229974AbiF2Ab1 (ORCPT ); Tue, 28 Jun 2022 20:31:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229900AbiF2Ab0 (ORCPT ); Tue, 28 Jun 2022 20:31:26 -0400 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D9502B190 for ; Tue, 28 Jun 2022 17:31:26 -0700 (PDT) Received: from [192.168.88.254] (unknown [180.245.197.13]) by gnuweeb.org (Postfix) with ESMTPSA id CBDEF7FC32; Wed, 29 Jun 2022 00:31:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1656462685; bh=AXQRAB2/qrXWRt1ICQDbGF/Ehk6V3S/1KIBewuAayzo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZWw3+cC69dCu4O4yflOL7A3RpfR8qZNvDq/J9no3aA4iqyCGjK15u5Isnqj1tydsX J7jddHDmkch7j8+Me4mOSvyMmoK2AQKTDy7Cg8lHo+oQgIpTw7dyQFmTWBw4AgAz1z WYMKSKx2vPVEdVfw3ogYyGAIux6DG7DRUi50sU/WNHEnbf43w5usW+1taWWDlSK080 mG3dUQoPbG2NCpPJMhc88GVzAR1QbeUzzexO7LWlI9PGgJqHA42N0zMPWS/kzH1fN+ P4dI4oPIIBAW9jwtkIPfW9Q65t43UBs5fta0Xw7eybPJwZ7UgbAI23X2crbZx3kGpK hOL4GUZT7YycQ== Message-ID: Date: Wed, 29 Jun 2022 07:31:18 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH liburing v1 7/9] arch/arm64: Add `get_page_size()` function Content-Language: en-US To: Jens Axboe Cc: Alviro Iskandar Setiawan , Fernanda Ma'rouf , Pavel Begunkov , Hao Xu , io-uring Mailing List , GNU/Weeb Mailing List References: <20220629002028.1232579-1-ammar.faizi@intel.com> <20220629002028.1232579-8-ammar.faizi@intel.com> From: Ammar Faizi In-Reply-To: <20220629002028.1232579-8-ammar.faizi@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On 6/29/22 7:27 AM, Ammar Faizi wrote: > + while (1) { > + ssize_t ret; > + > + ret = __sys_read(fd, buf, sizeof(buf)); > + if (ret < 0) { > + page_size = -errno; > + break; > + } Oops, this is wrong, I shouldn't use errno here, it should be: page_size = ret; Should I resend? Or you can fix it? -- Ammar Faizi