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=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) by gnuweeb.org (Postfix) with ESMTPSA id B68A280276 for ; Mon, 4 Jul 2022 18:12:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1656958335; bh=QXOb3Cu4gBYLLsUYXtUaMW7jFCn+NloKWknMDdNAhJ4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=aG3QS0cJj0+jPr6C/fKq3S0CpqGCn0lhpAYviYqIIKet/vmyBRibTSzFUQh5uhwzp j5ugPr535dQiT+azKmk8LtpTp8mLOgFrHT+J41FRpHOaxXHeT/ma48O74WuOQj6Ya/ Qj+jtCN80ru9+Rx8VmxgpG/8P57oM9KVYHMS/j/fqCQpIOiB1OVD4abdPwIvLW7iGW cWGtSrBu4utysZpXAACLMbh3nwOTw+aOg/z4J3VqYWxAdDCljx2SCA9nMVkZbU0kHs O1ASi6avcXM+L9+MDHGEVUqg4Mip2n4NAo3R4fdFB2IIjnh3SFquy7RWGACSXLgMH8 5jRT/nP5J4Z9A== Received: by mail-lf1-f50.google.com with SMTP id i18so16930941lfu.8 for ; Mon, 04 Jul 2022 11:12:15 -0700 (PDT) X-Gm-Message-State: AJIora81AAuNfSzRWWXi2VYCbNxBnfCMe2vgo0CJfkFCQmT51QBqeWin zCjkezvYl9yOPbRJwCza+FhSph54GCvm8c9Zfjk= X-Google-Smtp-Source: AGRyM1s/WYfR/ZGgzXGNtk0uwGLMNrv/gvGbcp0BQ8M7mebKB1q3a+wEJM91Sc3drdnYHmhycEm3GGhRuYvVQ1nGocA= X-Received: by 2002:a05:6512:224b:b0:47f:68cf:e697 with SMTP id i11-20020a056512224b00b0047f68cfe697mr21234562lfu.233.1656958333741; Mon, 04 Jul 2022 11:12:13 -0700 (PDT) MIME-Version: 1.0 References: <20220704174858.329326-1-ammar.faizi@intel.com> <20220704174858.329326-4-ammar.faizi@intel.com> In-Reply-To: <20220704174858.329326-4-ammar.faizi@intel.com> From: Alviro Iskandar Setiawan Date: Tue, 5 Jul 2022 01:12:02 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH liburing v3 03/10] arch: syscall: Add `__sys_read()` syscall To: Ammar Faizi Cc: Jens Axboe , "Fernanda Ma'rouf" , Hao Xu , Pavel Begunkov , io-uring Mailing List , "GNU/Weeb Mailing List" Content-Type: text/plain; charset="UTF-8" List-Id: 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). With that fixed: Reviewed-by: Alviro Iskandar Setiawan tq -- Viro