From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,NO_DNS_FOR_FROM, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 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 List-Id: 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