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 1B4ECC43334 for ; Mon, 4 Jul 2022 18:16:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229515AbiGDSQX (ORCPT ); Mon, 4 Jul 2022 14:16:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbiGDSQW (ORCPT ); Mon, 4 Jul 2022 14:16:22 -0400 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB56B637C for ; Mon, 4 Jul 2022 11:16:21 -0700 (PDT) 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 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org 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