Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3319143imu; Thu, 29 Nov 2018 20:48:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/VE0Y2C5cI06QwQE/Mg7/q89LwScDkcHGwM5NNV+ONofXN3R7nc0uEIMrRmMNwE+BUDq7YN X-Received: by 2002:a17:902:6948:: with SMTP id k8mr4200331plt.2.1543553283650; Thu, 29 Nov 2018 20:48:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543553283; cv=none; d=google.com; s=arc-20160816; b=h/xmpdrT0q6rnWIdJzqMIJVlAFhSH8wcLa4rBWRbS/9itmc59l/UYQZMY3uOwYYyy9 VqcNJJp0PHmeGQtbQB/O1EZUm9eEuIw9e3HP4qqI23CCuzFVGAWG6CZ57/GSmShUl6cz 7OxIKYazHR160yzvm50DSUuGe5tBxqlRo1XLDk6nK7QPd7Wp8uNWRwAN2zc6A+76bF1P RysfohRTNz6L19RvfY0MCbD3UGISVSpXqLPYANY9y9yh5vK1UyIIwSidqF3nBCmyvofJ r8SgI+tR20PmZIZOcegtGvvIcezbZ9yDuugbFwZCCaRpdgz9gNMWy7y+g1mudFASDqSm oBtA== 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=vIAI16RWvHVDoEJapc7NJY6TWPbkzlrPdpU8HIv23OQ=; b=UFx+77H5iMcZbIfq+4hPrQPLeG9Y6VcJFPbnpY4ugl/EOR2AeAsmlWI47oVGMBVjR8 xmWIXSDfu4ZDRUyGYbrGhQQKGYqeKip/wxke3HaMTvbB3kysyEvQSZpMd1YIje9DU+8O cy9ugeewR6K/FX/NkG2AP36XMbUSdms/zlp9T1YK+U0WZiuvCy28DrPd5xHPoKCI6NSq Hv/3GWV1XDZmI51wUFSqsZkBURk+yG6ADtdqRfAsXekrk7tdnydMUsCwKUmGxiChnwf7 IV1jbwgkYZ1FdnLiZeAA0G9hXhKdEvp7amSy2NjMCvDd2yCkHRcEbrj2LUdg+IF33P1w YuHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PVBoaMXe; 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 u186si3708973pgd.131.2018.11.29.20.47.48; Thu, 29 Nov 2018 20:48:03 -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=PVBoaMXe; 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 S1726641AbeK3PyC (ORCPT + 99 others); Fri, 30 Nov 2018 10:54:02 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:33401 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726355AbeK3PyC (ORCPT ); Fri, 30 Nov 2018 10:54:02 -0500 Received: by mail-it1-f194.google.com with SMTP id m8so1040553itk.0 for ; Thu, 29 Nov 2018 20:46:00 -0800 (PST) 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=vIAI16RWvHVDoEJapc7NJY6TWPbkzlrPdpU8HIv23OQ=; b=PVBoaMXeooyrt/QXhiKwRFgimq0aYvgyk25mjWBUmTWtrB8pIJbJRt1F56iDQKqCIe gCSOYC+1gPStIrQfA/HU+crBH/esa/aHFCRerLbkA9RTaeUE8v339AhZPVEMjfNaDpUh 2FXviQXfDKkkNPPkSObTBy07Vlc3qSWBpvfA4= 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=vIAI16RWvHVDoEJapc7NJY6TWPbkzlrPdpU8HIv23OQ=; b=X1Q7iu9Su1dB0iw9H46oadBi8KUTJpJgdS52xRjZutsMZu0c3kAjSziloV/6W6fCW3 Fq/VzDoMoaCN9WenZNkGCCuFIb8e8BWNVZ0dNS5VvGt9Mf3FTsy5Y1y3rA6jdiO7Eqcs wro/xUzi95aSjMaJUqlg5zqQuTx1cR4htvBKTYuL3nwjKe6fWFdSxoqxPOCL+Q5rB9xh K/5bZbMgayZnnC80Iy9TeiMi1aYMpYk3OwP/4zZHebCwiE7aeeF0Tbnj0K7CXyOvZAof 08XOrXp6wYf+Lc66eHxjAegynWVdljdSDe9LHqJWNcN5utgBXNQl/ieeZbndL1CcJ2Rd mPmQ== X-Gm-Message-State: AA+aEWZkBvR+rOetlziiCBDJydYRPgJUFpj8bgG9VwuuYxQg2m4CExOh mt9imDx1rZT7lGICPHhNUMIS1CGbrMarhAIXRRsjLw== X-Received: by 2002:a24:5a8f:: with SMTP id v137mr3941657ita.65.1543553160332; Thu, 29 Nov 2018 20:46:00 -0800 (PST) MIME-Version: 1.0 References: <1543481016-18500-1-git-send-email-firoz.khan@linaro.org> <1543481016-18500-2-git-send-email-firoz.khan@linaro.org> In-Reply-To: From: Firoz Khan Date: Fri, 30 Nov 2018 10:15:48 +0530 Message-ID: Subject: Re: [PATCH v3 1/6] mips: add __NR_syscalls along with __NR_Linux_syscalls To: Arnd Bergmann Cc: "open list:RALINK MIPS ARCHITECTURE" , Ralf Baechle , Paul Burton , James Hogan , Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , 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, Thanks for your email. On Thu, 29 Nov 2018 at 19:41, Arnd Bergmann wrote: > > On Thu, Nov 29, 2018 at 9:44 AM Firoz Khan wrote: > > > arch/mips/include/uapi/asm/unistd.h | 17 ++++++++++++++--- > > 1 file changed, 14 insertions(+), 3 deletions(-) > > > > diff --git a/arch/mips/include/uapi/asm/unistd.h b/arch/mips/include/uapi/asm/unistd.h > > index f25dd1d..6914be5 100644 > > --- a/arch/mips/include/uapi/asm/unistd.h > > +++ b/arch/mips/include/uapi/asm/unistd.h > > @@ -391,11 +391,14 @@ > > #define __NR_rseq (__NR_Linux + 367) > > #define __NR_io_pgetevents (__NR_Linux + 368) > > > > +#ifdef __KERNEL__ > > +#define __NR_syscalls 368 > > +#endif > > > > /* > > * Offset of the last Linux o32 flavoured syscall > > */ > > -#define __NR_Linux_syscalls 368 > > +#define __NR_Linux_syscalls __NR_syscalls > > This seems odd: you define __NR_Linux_syscalls outside of > #ifdef __KERNEL__, but the definition only works > with __NR_syscalls being defined first, which it isn't in > user space. > > Since the macros are completely unused as well as unusable > now, how about removing them together with the other > ones removed in patch 2? Yes, good point, will update asap. Firoz > > Arnd