Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp89768imm; Mon, 1 Oct 2018 07:08:55 -0700 (PDT) X-Google-Smtp-Source: ACcGV63naqvCmy3kFFIFRRUxdnxbKxZmj4GC/qo8EJxilKvr6zNyLcDFptJl5a2g/CqbnFsxisEQ X-Received: by 2002:aa7:850d:: with SMTP id v13-v6mr11521754pfn.83.1538402935719; Mon, 01 Oct 2018 07:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538402935; cv=none; d=google.com; s=arc-20160816; b=y0GJvkUumqpaSy+hl/vyIv3Cc7OqKULICaek4/kBTk+L58HZYeH26d80c5DATM2iHW 0CY9S10024htU3yFvnCIng2CZFPyCmm0qFDUoyQHWkqlhG/NTthrwCXn7j8VDXRIZeqr +CXmukLj6BoyWRuG2NMd8hKYZ43I1uL10NzVFOt5nC5UnxCVQKXPbJ8yMUvqhjDEZ+fh 0naDOOQezKZsvrzfBaMeKzOJzyHUTi44CGtsSe+H+y9N5TjYDj88uSntlAgF4OnkcqsU 6sK+UvvFXNJu21jF2kTcCNcyhCRWJKJw8yAZqOk7l8GNJs8zysNRf3GA2yKFmDWXSHjM CMkA== 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=LFo3jQyTe0CnWSxQPVPa2xuL0CCmpc4r12t2l+3+l5M=; b=SCjZ7TuS/8DbjgZMAP3X+/BHtLskDOqkP1E8UBOzsfCHPyc7y75843oZQBrCAz6DRE 6ExjvSuUkScJTEWkEQC6GUX0YcL7jdpOY1PDKuPGjFI8D/HD6V5l9ZZNp+4tDHcJOMqR 3TlX6ftKx3BxACc8hzwQXQNL5e/+PuLPilH8vKusJPVv+gkJU66l4SmwO/e6AB4aWBvp ydEmNTYtdOJdbSyQWVQpMK5YqARSzekU29cl0TTavvIWZ5SQAsHw6ZzEdmKeiu7rzSN1 ymtn3mbAKtwMl3TYzPfZySlwmXl5ychDnnxrLCAEmrNM1OBTEiwmH2PhGyjNOE69JGJc kbhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VNxkeHhN; 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 f94-v6si14380054plb.10.2018.10.01.07.08.29; Mon, 01 Oct 2018 07:08:55 -0700 (PDT) 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=VNxkeHhN; 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 S1729528AbeJAUoy (ORCPT + 99 others); Mon, 1 Oct 2018 16:44:54 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:46499 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729516AbeJAUoy (ORCPT ); Mon, 1 Oct 2018 16:44:54 -0400 Received: by mail-yw1-f66.google.com with SMTP id j202-v6so1020858ywa.13 for ; Mon, 01 Oct 2018 07:06:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LFo3jQyTe0CnWSxQPVPa2xuL0CCmpc4r12t2l+3+l5M=; b=VNxkeHhNXgPG+cvmldvhpo8SqsJra8c21FhLztD+IExr3oTx7LBxwvmZ1afiARqX1W YIVpfUyAKqkHMjmAq9lu+BE9cJgxi274jp7ZAqXJZTYYdZG3Utuk8DC+k982EvSz1JpT mpbDU+Yr/CUcWu2SrArtGFDrKmEfYC3o+foH0= 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=LFo3jQyTe0CnWSxQPVPa2xuL0CCmpc4r12t2l+3+l5M=; b=CCE1K1+ohCXtVgoTdBmntNrxMPk0HCmBWriQ8d29UAHf/vQ6m4kI/H5SdQtky06/NT 0SRFR0p0TYRdeCFevtXdKcxZPQE/MTYRfIwzYcgnfnu4d6ZDE+vnwPQLS9V5+b7uQgao Bo6YaiKkebzSqHunFyjUqvD6En+LKP3/hU9pAniVeYLnmcsIFBReUEx7iCOmuCoxgj1b 2FbvqOJuKbzMEm/sEjxLMM00ycK0pD2jVhqQes1VS0+I+wl3noCQajX62uE4uekokzVz CEfjGS3eH8bJN0tyAkGCxyNLKDbYyaKxpRBPswQ1sALtfNRuFQGOmlauTykztgfe15oc S85g== X-Gm-Message-State: ABuFfojEp6pYCPC1jdSIYc7Ej/EvCLLdYAevqsFjXMcLdH3epoRD1Ubr p1OHIJQE0XNEZTJR5A79Nqyq3Eua+O9+SYX1655fZg== X-Received: by 2002:a81:25c4:: with SMTP id l187-v6mr5986479ywl.236.1538402815429; Mon, 01 Oct 2018 07:06:55 -0700 (PDT) MIME-Version: 1.0 References: <1538058267-3765-1-git-send-email-firoz.khan@linaro.org> <1538058267-3765-3-git-send-email-firoz.khan@linaro.org> In-Reply-To: From: Firoz Khan Date: Mon, 1 Oct 2018 19:36:44 +0530 Message-ID: Subject: Re: [PATCH v2 2/5] parisc: add __NR_Linux_syscalls macro with __NR_syscalls To: Arnd Bergmann Cc: linux-parisc@vger.kernel.org, "James E . J . Bottomley" , Helge Deller , Thomas Gleixner , Greg Kroah-Hartman , Philippe Ombredanne , Kate Stewart , y2038 Mailman List , Linux Kernel Mailing List , Linux-Arch , Deepa Dinamani , Marcin Juszkiewicz 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 Hi Arnd, On Fri, 28 Sep 2018 at 17:44, Arnd Bergmann wrote: > > On Thu, Sep 27, 2018 at 4:25 PM Firoz Khan wrote: > > > > 1. Update __NR_Linux_syscalls in uapi/asm/unistd.h manually > > by counting the no.of system calls. No need to update > > __NR_Linux_syscalls until we either add a new system call > > or delete an existing system call. > > > > 2. We can keep this feature it above mentioned script, that > > will count the number of syscalls and keep it in a gener- > > ated file. In this case we don't need to explicitly update > > __NR_Linux_syscalls in asm/unistd.h file. > > > > The 2nd option will be the recommended one. For that, I moved > > the __NR_Linux_syscalls macro from uapi/asm/unistd.h to asm/ > > unistd.h. The macro __NR_syscalls also added for making the > > name convention same across all architecture. While __NR_sys- > > calls isn't strictly part of the uapi, having it as part of > > the generated header to simplifies the implementation. We also > > need to enclose this macro with #ifdef __KERNEL__ to avoid side > > effects. > > > > Signed-off-by: Firoz Khan > > --- > > arch/parisc/include/uapi/asm/unistd.h | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/arch/parisc/include/uapi/asm/unistd.h b/arch/parisc/include/uapi/asm/unistd.h > > index bb52e12..255c62a 100644 > > --- a/arch/parisc/include/uapi/asm/unistd.h > > +++ b/arch/parisc/include/uapi/asm/unistd.h > > @@ -366,7 +366,11 @@ > > #define __NR_statx (__NR_Linux + 349) > > #define __NR_io_pgetevents (__NR_Linux + 350) > > > > -#define __NR_Linux_syscalls (__NR_io_pgetevents + 1) > > +#ifdef __KERNEL__ > > +#define __NR_syscalls 351 > > +#endif > > + > > +#define __NR_Linux_syscalls __NR_syscalls > > > > Hmm, now you have a __NR_Linux_syscalls macro that is defined in user > space to a another macro that is not visible there. How about moving > __NR_Linux_syscalls into arch/parisc/include/asm/unistd.h or > replacing its users with __NR_syscalls instead? Something went wrong when I created this patch series. Yes, this must be reside in asm/unistd.h instead of uapi/asm/unistd.h. I would update this change asap. I would appreciate if some can perform boot test on actual platform. Hopefully the above change doesn't make any problem. Thanks Firoz > > Arnd