Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3813744imu; Mon, 12 Nov 2018 00:31:33 -0800 (PST) X-Google-Smtp-Source: AJdET5deEhLNBcwZYU+RBrMsG2VkyScNXJzh+j5Ckv8SVDM8Myipfn17R3KrYtlQdJVZ1i4JzKpn X-Received: by 2002:a63:1766:: with SMTP id 38mr14645pgx.299.1542011493665; Mon, 12 Nov 2018 00:31:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542011493; cv=none; d=google.com; s=arc-20160816; b=nv3mI9lw7+8kod9z6usX1VymazXDPeHSpJdDdleYvLxO4ZVNk3TfAFhOHDjtqR51zI 4CcDj9hFmNd18PC9b80m1tS3O8njDq71RYp+GLTNTV6TK0phdUpvr24OuB4VZko6ZTQC 3hxcnRuhe+A8zHuvv70L67i5MmTq/qXo8lILEuhwjGcHilyVSBKkHTvYkPG9yeVxtcZx EEXkQLDN/iUquhwXciRfZIpO0NPlHIkiBDaNvrmy/KAZR38d5GXCSnR2EjAzSvACLi91 veV02lZ/hR7t/0YLVON6Pxqx+aPuQpHs4zrDvRPYK2GTWJb+9qUhSH6Oucm9SwY/y5VA E3uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vWwgY24tNZCmJOla7YZMR1NXSyj4vVK1UI+xPsr+gdI=; b=NitH7X/X++JBfi6GlP88wmWghSD6+sPKFly7YaAMfmt/5lI/4ggqb5zpPX5z8c5xxM IOz+cLkjduM3jbYfoxhsgRxIi6rsp+xk2zvuH7xNNv8Rm7lsNbbtn2G90aPo+pxLw23l UmzaNmUbnPGnIIu3AiA4fS1ck3G9uO3+GJroMhLsx6sxD9FYTPG8WuccqIg+Tc6FvGL5 q1ar6QA/ss8bYued56HXwgdT3vi5WB1huL9FRVgGFiuR4+8FTimwvDiIGdAm8PS5QsAU p8ID1pivVvnsELCbWvX7rtrxbyJJkIL6Z3aFOxxxuVMSE+C4h37/5Lh2HtuV1aPK5pcp b98w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fmCr9lPe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1-v6si19147439pfg.121.2018.11.12.00.31.18; Mon, 12 Nov 2018 00:31:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fmCr9lPe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728396AbeKLSVh (ORCPT + 99 others); Mon, 12 Nov 2018 13:21:37 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:51123 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728084AbeKLSVh (ORCPT ); Mon, 12 Nov 2018 13:21:37 -0500 Received: by mail-it1-f195.google.com with SMTP id k206-v6so11448095ite.0 for ; Mon, 12 Nov 2018 00:29:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=vWwgY24tNZCmJOla7YZMR1NXSyj4vVK1UI+xPsr+gdI=; b=fmCr9lPebYBgYwuy1FyJfU8E4Hcwk0Ky83FtvvWlAOHptc26nOfVGRmE0//yJZ6iat tNf3+syo0nr8UZVd6fADJwNGiF4ZI1bKzq8EeAsH1UWf/WRyZ82Ic1IbNY16EMr8M3XW LU2Z/AgKdwT5iGon/Ok1EVKJgitK+Ud2g3G25aRYof2MYkHvXir6ror9p7vvvPoQ6Xtk 2J/ALQCa9ngCWx5DREU2RNXBiYG1NR7ZQVXRLvi5lVU4lAbmMdVdhqwZNkwxVlJ/voXi QXimZGMBen2PJdC7KjlH9Nm5yRFys97yr4WKbCywvXM/gRGk7lsEbWdxWXs/A4UlMdmj 5hCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=vWwgY24tNZCmJOla7YZMR1NXSyj4vVK1UI+xPsr+gdI=; b=smcB0D2OTIrZTWYVnTnFykToH5vhOy4NMkmmjkvV1OxuNySG6zXjqQe2mWjWpEuuii ILHd1d/EExwRzTbi2cMBZoJIjL0ObHJbBBNltepUNZzezHttgOELoHVSs5WQRv99L+Z0 5hhBQFQ27oY89jkku+DGK5CRyMonf1p7VOTqTOqZ03yOceExh/cfqxX31BaN8vfRduJJ h0yQZ6Qq98xkAPoGNnH3rUzSRrdhASme9LieZTJXPAEjgtqD6YOj4Vn0KTv7SS5kdo58 meEzVOdBhNee2ZSGDzlQNnVf5dRoZJ0G+t+RF4D4LHvHfQrpmd5uEiGjV3Y/adsznNmI oWHg== X-Gm-Message-State: AGRZ1gJwUBFIMfeBDJqTxdprEKqj3capOMcoxO9uQJVfoZIkzMP6kwkV QPnmR03xMkkjOuuJzwsLeV7RTU4C6iGXKb/PDTc= X-Received: by 2002:a24:1458:: with SMTP id 85-v6mr9748709itg.40.1542011368945; Mon, 12 Nov 2018 00:29:28 -0800 (PST) MIME-Version: 1.0 References: <41e8cb18d321244ab7000f7dc0467b6ebc5cab8f.1541995312.git.zongbox@gmail.com> In-Reply-To: From: Zong Li Date: Mon, 12 Nov 2018 16:29:17 +0800 Message-ID: Subject: Re: [PATCH 1/2] RISC-V: Request stat64 on RV32 To: david.abdurachmanov@gmail.com Cc: Palmer Dabbelt , aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, Linux Kernel Mailing List , Zong Li , marcin.juszkiewicz@linaro.org, Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Abdurachmanov =E6=96=BC 2018=E5=B9=B4= 11=E6=9C=8812=E6=97=A5 =E9=80=B1=E4=B8=80 =E4=B8=8B=E5=8D=882:19=E5=AF=AB= =E9=81=93=EF=BC=9A > > On Mon, Nov 12, 2018 at 5:10 AM Zong Li wrote: > > > > The stat64 family that is used on 32-bit architectures to replace > > newstat. > > > > Since commit 67314ec7b0250290cc85eaa7a2f88a8ddb9e8547 ("RISC-V: Request > > newstat syscalls"), the RV32 build fail with undeclared 'sys_fstatat64' > > > > Signed-off-by: Zong Li > > --- > > arch/riscv/include/asm/unistd.h | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/riscv/include/asm/unistd.h b/arch/riscv/include/asm/u= nistd.h > > index eff7aa9..a4aade9 100644 > > --- a/arch/riscv/include/asm/unistd.h > > +++ b/arch/riscv/include/asm/unistd.h > > @@ -18,5 +18,6 @@ > > > > #define __ARCH_WANT_NEW_STAT > > #define __ARCH_WANT_SYS_CLONE > > +#define __ARCH_WANT_STAT64 > > #include > > #include > > -- > > See: http://lists.infradead.org/pipermail/linux-riscv/2018-November/00208= 7.html > > The plan is not to have old stat syscalls and support statx on > riscv32, which is y2038 safe. > > The issue you see is a bug in include/uapi/asm-generic/unistd.h. > Marcin (CC) already sent a patch to Arnd (CC) IIRC. Basically without > __ARCH_WANT_NEW_STAT or __ARCH_WANT_STAT64 two macros are not defined: > __NR3264_fstatat and __NR3264_fstat. Which is later used (without any > guards): > > 763 #define __NR_newfstatat __NR3264_fstatat > 764 #define __NR_fstat __NR3264_fstat Nice. Thank you.