Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp116074imu; Fri, 16 Nov 2018 18:42:53 -0800 (PST) X-Google-Smtp-Source: AJdET5ckVOkMUnD2tfSB/fR3qBdctNH2lpflYT09nKrZ9GU+ji/SqOxvuxK1q2tRCZ/SqEcmsjmB X-Received: by 2002:a63:f412:: with SMTP id g18mr12321958pgi.262.1542422572981; Fri, 16 Nov 2018 18:42:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542422572; cv=none; d=google.com; s=arc-20160816; b=oVDd4i2Zs7THcJbVk+CIZItLTZCmE/wf0CuD9TAoGyJSNjXyIJyCW8U/+yA/Ui6WjP Zd06qlkRtXOfVHx615GudAUwb0tExSY7n4P+0T88lrDByzT43Py3T2jGclicQISK26e8 FWfBadp2Q87o18UhQ+DpYBLa4IoX45BIS95J2LgNIFbWnSn2fXpI6uzZQ+fro7YEPAzU oE9jVUgJHl0rZ2QfaE45FZgzamtF5Y6TiO7Um/WxoOVGBHmfCGO2yGKuC9GXugkkscrG FJVv9gFCrDwprjP7b7Dq6WyuRAKVPOlIrMPc2vShNRLBGwzJIJQ47ju1kfiyMjbGZs8Q ENcA== 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:dkim-signature; bh=rK55K10od5KYXUDhRkOOQG4qCOgAE6VjlwueDIfT6eE=; b=rJJ92iXRSkGgIqtM7ovpnhgBiV7ifm3FQHirEIbZPlFcY/A5EIGVI/64IO2KFxiYNy Rmqae+Y3/yas1tpjeUl1iTnsuSuqQ8CFpFx3lPl1idkSGHNS44mw6DB3bm6xkc/SiaDi iE8LV8zE5OeyIyV3WNxtEeKeXM4wpnXN3b9HNqh1loU0AIyYmD1/5tBfWNBduz9XCECc 8IQjmPngMTmyiyzt6CE+T+OvMpqxZH45Cf9Ofgkww/i+ZMTnpxGYJ+RMixk4Ybso9fdD QatkZzcef20P62D4VWj75fE8Z7KmBcg9Q6wuiFmT//k0iuglTtBlfkkl1CVwKYnqkyRf Eaxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=x8B41Iyq; 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 33si5883665plu.169.2018.11.16.18.42.38; Fri, 16 Nov 2018 18:42:52 -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=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=x8B41Iyq; 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 S1731531AbeKQMy5 (ORCPT + 99 others); Sat, 17 Nov 2018 07:54:57 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:37956 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729843AbeKQMy5 (ORCPT ); Sat, 17 Nov 2018 07:54:57 -0500 Received: by mail-ed1-f67.google.com with SMTP id a2-v6so21152790edi.5 for ; Fri, 16 Nov 2018 18:39:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rK55K10od5KYXUDhRkOOQG4qCOgAE6VjlwueDIfT6eE=; b=x8B41IyqwkR+8JIku9ErRUCcujMhepzC/abYbKH23pqdpBn+js3qL+qnaZZo6+BhX3 h9ma14kxxPc9tMriWk776mL4cAK2e+o/LEpzjG7ed/FewyKZ+D/DKBATLkvLZNr3S2Zs Tqjalqs35PO+YhgIaF7/eWkroXKUw0txp+b79GPtJ/G67VG9ZXKnCH9SILU2tZf/Sd3c 6jp5UjuRTxPfcS+3zH2EP0vrsB7+aPWVgaXOSpCyRkt7tc9fwdoocOUZs+Rnvr2ENW+s i6DPzjKRiS+xWx34Ub3jpQr2snImC4jmrIJZO644goWi1GekpTZPc7PoHZCgNgsQWTHc 6eAQ== 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=rK55K10od5KYXUDhRkOOQG4qCOgAE6VjlwueDIfT6eE=; b=ZoSeljRX2ImJDOXbHcTCbdVRvEyJToxRae0lNM3BWuPuzprA4cgEYi5FozI5h6xkFN dRhXnApXVf/iXpSwCSGnKv7J9+DukIJ17yhjS1yH5DKfL/B4QBnqBNpDVS9YoNPFWW27 LxvTDgAJrdHu+eOz4EB6rsiQYJTfeiVjXrw6mbA5NqdKvaQXtzvpBRPO4XDBqVuNKj8j Q5vUA7Ba//xy46BXysGRtgI6fCmiYzcE6pYzbW+5PfjssY+dkdTh9AGEykAGcI65RhLp tBynqykgInpRxKtpWGNOJnQXmEE+G6WVjOFOumsj4Itg0W6u/kkGCY+ul1Z+b1k3eqPH 6zyw== X-Gm-Message-State: AGRZ1gJ5jj6zNrNyQKrWhn34//ZQNHdIcHC4V7Ohup4J+91PXmr6y8o6 Cc4lFehqmtoLdWhUzxpgePaHBFakACMGVFDMLO3izg== X-Received: by 2002:a50:9977:: with SMTP id l52mr11142793edb.277.1542422397183; Fri, 16 Nov 2018 18:39:57 -0800 (PST) MIME-Version: 1.0 References: <20181108190239.29633-1-david.abdurachmanov@gmail.com> In-Reply-To: <20181108190239.29633-1-david.abdurachmanov@gmail.com> From: Olof Johansson Date: Fri, 16 Nov 2018 18:39:45 -0800 Message-ID: Subject: Re: [PATCH v2] riscv: add asm/unistd.h UAPI header To: david.abdurachmanov@gmail.com Cc: Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, Linux Kernel Mailing List , Arnd Bergmann , marcin.juszkiewicz@linaro.org, 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 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'? -Olof