Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp73913imu; Wed, 7 Nov 2018 13:12:36 -0800 (PST) X-Google-Smtp-Source: AJdET5f2vWVLAPYD5EG8OYfzEVUyDDxFs5qn+g8jHgNUIikNfOtXTIPJYttR6g75YhcwFhHGO8YE X-Received: by 2002:a17:902:6b87:: with SMTP id p7-v6mr1918514plk.282.1541625156062; Wed, 07 Nov 2018 13:12:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541625156; cv=none; d=google.com; s=arc-20160816; b=Sguuog5WjZDPXBlL0T3EeHQnNvqeztIJS87o/qQLeTLU+3MRO7dpy1086vOrrNYkKH E36Lr5bpQPEPj9jLpJSMZdLeHZ2oTBJz5QusxiK0ImEajyhCvCLk7LGLboaFRv9xbgJx X6Vb0IbFClh6E5W/swXv7cGHurFvsrG7yQKKFtF3cnQZEHkb2YnGsUVu+ocze0dQcjCG 6VKqA5fnRJAXMr0RJx/WDaqw+TG95GFIsW+SdJeT8V7TLAqEwviFXiLjToSh7LXjsDcr DbXDHs7Xe/xZuM99l0PvKUEkp4Uwq0+MenVDk8ItLHvyoBXhGmp5j4wiBWzhTCs6yOUp /SoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=/354RJktfWO3Xv0X4oRS/MwprSK52O+Iss7VIFmrPCA=; b=xZ3z2SuFbcQoyXj6ji25VLqi9CbVlfQDKWV6v1/B0TzUZjOOw70qCpDNMea933Jgf7 8zVstroh+FS77/h0UgjAQtE8CfMksVZOaG6opCsz1iwBevi8MYszq7g6RLhJNZlmOOOQ IS2C39o1RfbWOZWYwwc6bpbgXTbmqWAZ5jPENWa/9JdyqDInlqSnHeEzBv9D6en7rRSS MSoEiPRNqXKTQyPoyRb+A2xchu/U/gY7X0BzXgO5NFf5QmvyTxA9Veod/B+o/S4EDJF9 xlYPSRK0A3hCroQeoT+EoLliGsl78BJV1U+vUAFSSLFdC0MU9zcJDkUvnRhTN4PYqk8b SOjg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m14si610983pgd.326.2018.11.07.13.12.20; Wed, 07 Nov 2018 13:12:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727290AbeKHGmK (ORCPT + 99 others); Thu, 8 Nov 2018 01:42:10 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:43570 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726480AbeKHGmK (ORCPT ); Thu, 8 Nov 2018 01:42:10 -0500 Received: by mail-qk1-f193.google.com with SMTP id r71so22943455qkr.10 for ; Wed, 07 Nov 2018 13:10:00 -0800 (PST) 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; bh=/354RJktfWO3Xv0X4oRS/MwprSK52O+Iss7VIFmrPCA=; b=LGRkVcse5aoBczAa+8lGndK3GrC9Dq3O6X66dVVfMYZhBVGl0Blr2VKpwrMEl+h2wg RbCtnfolSTHTXfUzrxYLd3H2SUfhsT3J5Lwm4mL6pm9ayIz17QVqeJwBeERgL+upWQrz LrNo82XmDb6iBRqSXnHkqBLDfufBNwaDsRwXQbwlWDJ71Iku/dRW6gWre4O1Atz6/Neq shf01Oyh7PjQ0dvyXuleBxzsiYue/KIJx1d1owZUKOlxX63KR7eYToG3xQRX9XhhYieS onA2wUGSQB4h8UqwWqqkf6ObzERr5jq/bEeTr8EIN9GksX4WGX79UQ2OOV5eenbCJnyZ 7FWA== X-Gm-Message-State: AGRZ1gIyzmIyssthd89vTglPf6/78WPgaE2ezPOdLtfOSRH01NGrVhI5 RgG5r5ZMpXXlTF8cyYmW8Ko36b6vDWDYFwD7X1M= X-Received: by 2002:a0c:f50c:: with SMTP id j12mr1864644qvm.149.1541624998627; Wed, 07 Nov 2018 13:09:58 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Wed, 7 Nov 2018 22:09:39 +0100 Message-ID: Subject: Re: [PATCH] riscv: add asm/unistd.h UAPI header To: David Abdurachmanov Cc: Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, Linux Kernel Mailing List , Marcin Juszkiewicz , Guenter Roeck Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 7, 2018 at 7:30 PM David Abdurachmanov wrote: > On Wed, Nov 7, 2018 at 1:08 AM Palmer Dabbelt wrote: > > On Mon, 05 Nov 2018 12:56:15 PST (-0800), Arnd Bergmann wrote: > > The target is still the next glibc release (Feb 1st) for a stable RV32I ABI. > > That's progressing well, with one last blocking issue related to some of our > > floating-point emulation routines before we can submit the port. This should > > give us ample time to line up the ABIs correctly so everything works. > > > > So I think the correct answer here is to drop __ARCH_WANT_STAT64 from RISC-V. > > > > Then if you agree I could do and send v2: > > +#ifdef __LP64__ > +#define __ARCH_WANT_NEW_STAT > +#endif /* __LP64__ */ Looks good to me. > Cannot use CONFIG_64BIT as in user space nothing defines it. > Alternatively I could > check for __riscv_xlen == 64. > > I found _LP64 and __LP64__ being used in kernel, incl. include/uapi/linux/rseq.h I think older gcc versions were less consistent about those macros, which is why I introduced __BITS_PER_LONG a long time ago. We now support gcc-4.6 as the minimum, so using __LP64__ is reliable, and on RISC-V we obviously have a much newer compiler anyway. Arnd