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 [36.81.65.188]) by gnuweeb.org (Postfix) with ESMTPSA id 70665801D5; Mon, 4 Jul 2022 18:16:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1656958581; bh=MSrjuxI8s+EQnitdITXO/S74h0j/zVwNHbXsShw5Ciw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=VOqvDN2RMOZvXp0TyBlzAZsJzhhLbHH0PJIia3uGX4PCW9taJPg3hp0YSL8E6hMr6 FewsPqbiaixZryEuRUUwWEXY4TMXXfMUizhAnmNDYR2YggFCX/XNxXPaw34vlkyfzi 24Km4aHBsRVxlR9gZs5CvckYDDIrJpNxCutKdPeDqMUJr1AVzxM/OURtfUhG2QVGpz MuubeCbjFvHECSXGLCFnv7QnpBvBqfu+LhPiCUwiWWfjXaqPHszKoLCA3O0uc37MGC lN+4K43eedPgejHQLVHY3S2yN97Yy+nSNElRSUcZD1ppXQDPDErPYeGMTqmfeJ9RpN JVBSgEaontP1Q== Message-ID: Date: Tue, 5 Jul 2022 01:16:06 +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 v3 03/10] arch: syscall: Add `__sys_read()` syscall Content-Language: en-US To: Alviro Iskandar Setiawan Cc: Jens Axboe , Fernanda Ma'rouf , Hao Xu , Pavel Begunkov , io-uring Mailing List , GNU/Weeb Mailing List References: <20220704174858.329326-1-ammar.faizi@intel.com> <20220704174858.329326-4-ammar.faizi@intel.com> From: Ammar Faizi In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: On 7/5/22 1:12 AM, Alviro Iskandar Setiawan wrote: > On Tue, Jul 5, 2022 at 12:54 AM Ammar Faizi wrote: >> From: Ammar Faizi >> >> A prep patch to support aarch64 nolibc. We will use this to get the >> page size by reading /proc/self/auxv. >> >> Signed-off-by: Ammar Faizi > [...] >> +static inline int __sys_read(int fd, void *buffer, size_t size) >> +{ >> + return (int) __do_syscall3(__NR_read, fd, buffer, size); >> +} > > __sys_read should return ssize_t and the cast should also (ssize_t). Ah right, I missed it. Will fix in v4. > With that fixed: > > Reviewed-by: Alviro Iskandar Setiawan Thanks! -- Ammar Faizi