Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3029826imu; Mon, 19 Nov 2018 09:34:49 -0800 (PST) X-Google-Smtp-Source: AJdET5ftMzZGbnNPbfBbeWXVNnEA88aNfxqArfG43NrGAzt6yoFwwpO8dKh0sKyEhg+GCB9Bdizv X-Received: by 2002:a62:83ce:: with SMTP id h197mr11621376pfe.187.1542648889263; Mon, 19 Nov 2018 09:34:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542648889; cv=none; d=google.com; s=arc-20160816; b=xUQx17ZBn8tt7yu9p1ZYiWvvxbZaoOHaQBFW7b1feog06f7/HNURZIuhvIPolLLzva NSvdTBcpxpywFUaGlYb+eHGOnn8pdq2w1w4Ih+RT5zuu5SOzFJIwwbfGzckEY9U/ZVfB GTXvzfG6uV/8wmlkOdWeAaMlsfh6qnlZ3aA0jUGTQ2r0KYrCAEVoxL1Yq9ayCU9tBok7 PXrVSYKVEty4+asn2j5xKOxYtXgbiNw5Fwk6qVbvHhWqpCqO2+sqgdGmuMh0/gKVD/lm acP7u+PXvZJ/ZGDwRiHRZUHN9mFzHrpCw4jEBW2UXnMRPOnH6cWFXFLOSzVHh7av/oOC e9fg== 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:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=ttZHNaBnbF4lntgoxBzHeh1qXjFVZdLtS6IDRkan10U=; b=s3ahQEVr8YBRGX1bl+HB5nmDZMMufxqcu4LFHYEqM+7PtKVYNKYVmRLSHQNSl1X4BN DSrwFh27kKd8RQRmSYW9glLT8wP1wUGFiiKBO7HV3o33ixkVvAMfxyO9qy7kE/l0OvoZ VUe34mSze2GjhAkpNFMD4tCTpVxBPqNpdO+zEt2u/KPChaefn2OJO1NyHvOxOhVV093s aMJCSVxypHZCxgAO62Gf7aHi91lTLv/fghfjv5dxrO/MGKqmXiL0HimBwPO6jQCba92r LXjC9NQyiuT5jhhXVAwqn6G8mL5tyXZciNEAWES6q/jyGa7h/995FmRbahPvLoe5cIV/ SRTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="B/L0wwy+"; 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 j191si38429318pgd.249.2018.11.19.09.34.27; Mon, 19 Nov 2018 09:34:49 -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=@sifive.com header.s=google header.b="B/L0wwy+"; 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 S2403823AbeKTDRv (ORCPT + 99 others); Mon, 19 Nov 2018 22:17:51 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:36287 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390798AbeKTDRu (ORCPT ); Mon, 19 Nov 2018 22:17:50 -0500 Received: by mail-pl1-f193.google.com with SMTP id y6-v6so7287131plt.3 for ; Mon, 19 Nov 2018 08:53:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=ttZHNaBnbF4lntgoxBzHeh1qXjFVZdLtS6IDRkan10U=; b=B/L0wwy+dn5vG7fJT6SsYdHfRWRPp8b15m3T12pcYKj2IKGP2gNyt+NwZglKJRldb3 4bsOoCOwkcU8ufzTG3flJg44d/ei51J0PbL900IvIbL4JB7T9gCmHc94YMXVh9E5jGP6 YK7YMDZUkjQl+GcEpF3OOS9nKAXYh9WgLUc+X+k0nRb/b1/cXGakwgNYRDNJAIt+5mLO vqEPL3pby20Yf7ppz0lJxMIv/O0KiTFpO9p1N6dT5CH4VsIxKN8tniHAIF7D5jpvKJjm aT10/GFiEiUnGAlvjMfwxOVDVSdsBeKsYV5JSSzY4iHWNxCZ84A+9ERQyPbcGcaS8exB yyjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=ttZHNaBnbF4lntgoxBzHeh1qXjFVZdLtS6IDRkan10U=; b=atHmk9/HJmI2EwWLLoYmZGX+X+T4qRenQ26WG8spaA+eXBDfPtW06ghjj+gAzQbEVX bL9ABC5kZ+uzkOpwSypmr5Bk0n4kDjIRKYHDpR8KOkFqR8QiUQBEbdBnu50fyyTNgjF5 OouYPzqrhYI1WHtKM/kgbp4dIigWoDhenaMuwQD8aBEl5nSLoxA5WuRttlQOGOYGpPXC T9/Dl9e+u1AhrApQoDqQRiHx8yg3WxgNbej3Rf0hpsYac4rzfRwJ8oV7gEw586PrUNmV dtyj2s1gROFrjuj2gjVpeJzYYIIqoK60f4hEo5PkQmxQ3UwC+vq8XBIgvRVuPENfNMiI +Lug== X-Gm-Message-State: AGRZ1gLQI92R2s+uuhiXay1tEGRnMclIX3lAIgJGd2BHiMALkL/c767a GKMTq8Nm/fqQinG+S89yEzqD2g== X-Received: by 2002:a17:902:6b82:: with SMTP id p2-v6mr23315505plk.50.1542646416393; Mon, 19 Nov 2018 08:53:36 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id u76-v6sm59747963pfa.176.2018.11.19.08.53.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 08:53:35 -0800 (PST) Date: Mon, 19 Nov 2018 08:53:35 -0800 (PST) X-Google-Original-Date: Mon, 19 Nov 2018 08:52:10 PST (-0800) Subject: Re: [PATCH v2] riscv: add asm/unistd.h UAPI header In-Reply-To: CC: david.abdurachmanov@gmail.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , marcin.juszkiewicz@linaro.org, linux@roeck-us.net From: Palmer Dabbelt To: Olof Johansson Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 16 Nov 2018 18:39:45 PST (-0800), Olof Johansson wrote: > On Thu, Nov 8, 2018 at 11:02 AM David Abdurachmanov > wrote: >> >> Marcin Juszkiewicz reported issues while generating syscall table for riscv >> using 4.20-rc1. The patch refactors our unistd.h files to match some other >> architectures. >> >> - Add asm/unistd.h UAPI header, which has __ARCH_WANT_NEW_STAT only for 64-bit >> - Remove asm/syscalls.h UAPI header and merge to asm/unistd.h >> - Adjust kernel asm/unistd.h >> >> So now asm/unistd.h UAPI header should show all syscalls for riscv. >> >> Before this, Makefile simply put `#include ` into >> generated asm/unistd.h UAPI header thus user didn't see: >> >> - __NR_riscv_flush_icache >> - __NR_newfstatat >> - __NR_fstat >> >> which are supported by riscv kernel. >> >> Signed-off-by: David Abdurachmanov >> Cc: Arnd Bergmann >> Cc: Marcin Juszkiewicz >> Cc: Guenter Roeck >> Fixes: 67314ec7b025 ("RISC-V: Request newstat syscalls") >> Signed-off-by: David Abdurachmanov > > Acked-by: Olof Johansson > > This fixes the 32-bit build error I'm seeing here as well. Palmer, it > would be nice to have 4.20 compile 32-bit kernels still. > > Per builder logs: > http://arm-soc.lixom.net/buildlogs/mainline/v4.20-rc2-133-g1ce80e0fe98e7/buildall.riscv.rv32_defconfig.log.failed, > actual errors are: > > include/uapi/asm-generic/unistd.h:247:29: error: 'sys_fstatat64' > undeclared here (not in a function); did you mean 'sys_fstatfs64'? > include/uapi/asm-generic/unistd.h:249:27: error: 'sys_fstat64' > undeclared here (not in a function); did you mean 'sys_fstatat64'? Sorry, I missed the v2 here. I'll include it as part of this week's PR.