Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp738417imu; Mon, 5 Nov 2018 08:05:20 -0800 (PST) X-Google-Smtp-Source: AJdET5druhq3Cs3eFvNLtk3F4a5Btlvp/AwRt0K9YsaaCi2z2VE04hg7MKnKjKdRPihhN+d7dkIr X-Received: by 2002:a63:8c4:: with SMTP id 187-v6mr20718428pgi.396.1541433920710; Mon, 05 Nov 2018 08:05:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541433920; cv=none; d=google.com; s=arc-20160816; b=DPMeaXCt6myvLTaxwLr59IMpXEyLQ7a07JkPX4SjkWKTrl7zuSyFEwi3K13MuXj2oV UO4UYoMOqoRreMcVKNcfeNUkWCDKoqacWaTDj79WYjXRl1ygbF4WZKZs4dthAlka7vM2 8aOV4hWFaH77auShFXY7nLMXWb41w8ngNo+xxStRHkq7/LxCxecolsuZ33J+IEwMqQWr RWFU21Sg8ImSnZp9W37qCxSGdJ8a/FPgP2VRrjt9URo0Vcsv3YO0qvTEwkBUXuItCRYY 7Vkm/Vxgzp+uLETUzlA4jp5C+Cb1bA0qZ8556TkuI0EKHlLK6AMkJjDRxBvxmEg3kNQ4 qsBQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=ZMxhmbRAIQLj3oBn3eeQ8aveNoV65uYF5CVgV05Xyuk=; b=L577klk5Yzi2LqcMU+g9NG2jsEFUnOCac848Xhhhbf1HoN4ftOA8NFnBRK+RI8Rtlc suxOHU+bG51Oq34qJwmtA1gCcB37piMRNSEj5JTyZQQ1gUxLaRGjBvc4wSQUo6GDoQF6 QY36R+4ODD32PCXV6JBUW4w9cdE0aYMkqs4IMSjYLTinZPvoQu1V1LDuYJoA20Muz+GM LlQpUk4Ed9SYB4mkY6Cnlel1HifEWEBgEtcBATWj/vgppcUO6xtiE9ocXuMgq4/ymYkv soO1eHQPrZV4/lKLOxI0YKuTALsxO6A2NJagPInsJSBkexk3mXXn6QWeR1aEPiHE+Gpi ldrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GiPtssnK; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t2-v6si44091897plz.427.2018.11.05.08.04.40; Mon, 05 Nov 2018 08:05:20 -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=@linaro.org header.s=google header.b=GiPtssnK; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387436AbeKFBXZ (ORCPT + 99 others); Mon, 5 Nov 2018 20:23:25 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:40968 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729733AbeKFBXZ (ORCPT ); Mon, 5 Nov 2018 20:23:25 -0500 Received: by mail-lj1-f196.google.com with SMTP id z80-v6so8512008ljb.8 for ; Mon, 05 Nov 2018 08:03:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ZMxhmbRAIQLj3oBn3eeQ8aveNoV65uYF5CVgV05Xyuk=; b=GiPtssnKl+CaYcqrZMuvjYnXfJEkhYhBdBk25cK3lMl5KHop+yZDGdkKEBVAWelLOD XFoXM6UHeFBGL1xiYaLo0wDP1NDAtA8li3Ebkbd+MzXjTD67OXlAn9kIqT2Wgd5Uyo5p 3gOWByV58uKDmRcPpGA2EdqoDXHJ9gLZF6HEk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=ZMxhmbRAIQLj3oBn3eeQ8aveNoV65uYF5CVgV05Xyuk=; b=Fyw27jpcXi/fnhjwo+0MJ+rPfDy1FyoqHCsubtPtt2r5Ehp3mDwJl0Utpzcj8uc+0G fnKryeDR6OCSIUkBn7zw5wBIQNzgUv7y1MCalW88mx7cZnWA8EUQOYdNICO7cvgHoaz5 SrTHxZudLyQuRib5xpQ2Uzn8PAge8mR1HOG6IociDCofcDeOELV3svEeiRwBOEIbphbn XTFYIzG0LznAjwNHAv7/Wx+tvnqNchY7yNwwYIH1xPv8Ejr52EJTBMGL1TOfaCfd7lID /mxUd1PDvaA6T/D2fMqxxBdkpFxpDWUaijkTT9bAlXdkQb4VJfkrP8bCpNW/5S7bHAYc MLww== X-Gm-Message-State: AGRZ1gISgfqwhlUp+07PNggbgOkDSZBXHtLCrdukJxoQJJcTElmQ+DZJ J3zNobJvsdPLp2lFCjLmG7BjFg== X-Received: by 2002:a2e:9107:: with SMTP id m7-v6mr14900524ljg.23.1541433781673; Mon, 05 Nov 2018 08:03:01 -0800 (PST) Received: from puchatek.local (89-77-138-96.dynamic.chello.pl. [89.77.138.96]) by smtp.gmail.com with ESMTPSA id 67-v6sm1724796ljc.26.2018.11.05.08.03.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Nov 2018 08:03:00 -0800 (PST) Subject: Re: [PATCH] riscv: add asm/unistd.h UAPI header To: David Abdurachmanov , palmer@sifive.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Guenter Roeck References: <20181105142602.25750-1-david.abdurachmanov@gmail.com> From: Marcin Juszkiewicz Openpgp: preference=signencrypt Autocrypt: addr=marcin.juszkiewicz@linaro.org; prefer-encrypt=mutual; keydata= xsBNBFpUjlUBCACcrMkSqYJk8B5O6vhcdvMM4yMBxil9hqLD6oKoLkgNCGpnb03xtf2dkdbq yZJKEpPteoiYof/qrS7VewUcqWpNfuq5Q3x/Aun89CUVU1GZ+mY+nHhiTddSTCswCNhYfY8S lu0eCYIeF5xr3xNcvRIQhxvO1y3aLAo7Te7CikfmtpcM/5IEbUX3EXejoUeMlvdXvX19NM6I 8uX1DO7v9g0CUN+1h+9YOvLIV+bOJ33jlsB2TNystteoBKotJYhIbfBhrLMWLMzBhOPUaTIe hlGO3+4CHi82MqowKYxablG29vFSCn6UFyJS25xLSbMflslCFJey8I4Wry33R1dmzT2jABEB AAHNMk1hcmNpbiBKdXN6a2lld2ljeiA8bWFyY2luLmp1c3praWV3aWN6QGxpbmFyby5vcmc+ wsCOBBMBCAA4FiEE8CbDcZeweWDKBjDApkmLmwOs1qMFAlpUjlUCGwMFCwkIBwIGFQgJCgsC BBYCAwECHgECF4AACgkQpkmLmwOs1qMVDQf/aIA4NIB03g6JqFoTvhrzvc+n5ALveUyRyChY QE71qYCRJi+2A8apTGxkJuk15I9bJ8ySnb6Z51MRg81pikfbPpumtUr9l5u0377JwZmKE/wE 9drdHfiB+0iamr0+XTvADjIwEnRwz+Vts9ydZQ39cyDv9+2CRTpv/2yY8eM037Ftkejr5HSd PzHAHYAQ1SZZNQPHOvYhX3DxOeiOAKz5PUtLgosQLGnaXJ0PRPoajTh/pV3OPiiLeY9UfVsK h0s6vo5fSFIdYBSpRW6rEvIrvCmh2Ovgwmy7J6UQk5qiP5T+vFfyZDR90Z3o5kAxShLfGpIZ sWxSxuxeMf9SU96d0c7ATQRaVI5VAQgAvzQOLdVY5IoLKIFYz99HtW3FD05UiBdaeVrO14mv rh7AGqtd1vmMW7kTpnNhCMi2S54oM18ZMDcD0m1bTIVhSKNcrWuaTOQtL5KyDjHb5j1Q+MRJ d4M0n4rs+oskGicsvAHqcRh8BVTFbgVetn+GgT58alufWzIWDGpLcW4W0SgkL5/tYxEXDQI0 +UJqMmoyDxZbIHmNJUxCXIFbxvUm5X5pNfT7sirfH+OzAeUt5PmjiIDW2Z9h/fgn0ybeLdty ZHPKLVwVwSZ+R7PE2IknkYfcKBaomLhDCfCqOKM3uX+8UtXyJ9cKQdnDZr+g6/ICveJ5SbtG vVXDRBTvt14o3QARAQABwsB2BBgBCAAgFiEE8CbDcZeweWDKBjDApkmLmwOs1qMFAlpUjlUC GwwACgkQpkmLmwOs1qMggggAjQ+LfkLRinj6VwYuQrIHxuyOipZi81s5GTeg5S2cIVKzA5V2 LTCrIREhzJcEfU/wtj0WXhov1cDWt+QJUkJo7PugiWGH74LqSUkjcJl5WLNbhRzdXiTEjCij uwNnZjiHMzOzrlOLDZNZ2qdDTthcBVXexKLWzyJtVkWXdbDPUV47zhGzCc+Q1fvWi8aCJGlv 8GxOIVR8OXEe1TV64dlUCbmcmjcFRQmvJyMwZE28AqhNtKsRlLkY0o5Yn02wkmgRtAbNA9jL 00ZX+4x0H+Qm8NQG5Ps9Ay7DePwZH21SsWBleOo43xNlbiw+NUOxC+cIK9BJqAqMmCYoUwtT j99pMA== Message-ID: <10c6f266-12ce-9f1a-5859-52873ff329f1@linaro.org> Date: Mon, 5 Nov 2018 17:02:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181105142602.25750-1-david.abdurachmanov@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org W dniu 05.11.2018 o 15:26, David Abdurachmanov pisze: > 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 > - 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. Tested-by: Marcin Juszkiewicz With patch applied I got proper syscall data: fstat 80 newfstatat 79 riscv_flush_icache 259