Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2510861imu; Thu, 29 Nov 2018 06:13:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/UbG+J2KwlflA/CfePZRjO7tVcQ8BCyIyl5zCWllqp0XjoWY3rqd0HUPyL7vyQ3rdZUUF5Y X-Received: by 2002:a17:902:34a:: with SMTP id 68mr1679861pld.268.1543500809286; Thu, 29 Nov 2018 06:13:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543500809; cv=none; d=google.com; s=arc-20160816; b=OpYNkNYrfvx+3/FP8ISgkx0S1MSjGdl0y8OeDhkp4SBLAA/2jY12aPXsnRTCIDW6Q2 wfS2GmonmRXpxzFwHEd669mRTlJR1e52f5TrzX6suWIrkeF+zyKxMqReegt5/IkAhZgA Nv92S9KnMDx7ZiAA242wR5Ob2FdGkw+TcdU2sjBboncB4mKwxzUtH9tADLeVCVHdYwwq t/c7ULjLf5h0VengwOq0sPY2Om+ekfRWe5BvuisKRTA31C3vmGskZI0Idav43WV/uXbW Wj11WjfeT5zim0m3EY/26r2u0MZUIsnR2B8zYCtbBAZw4NSyuREOlYfKQcIQWcVutxdu xThQ== 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; bh=Wv38us1LrGaAtmbmo49i4wsBnN+kWL1/8/1UP+gxTYQ=; b=v0WoFXxm9dsqeXUgDPhYCuiIpI97VOxK8uOZGHEGUIBntevBXoHOwU/3MF+hyWKMp2 wN4S+o5ldvZtv5v2Zs1Ebg72meCeP1R6vZKwAITXUSCMkn2lJGM3T/3qtnctVNPZEEZD /FaT/qeN5RSAgpy/RA8ppjM/UOpFSv5b4E4A9x99/FNWNrXRh3H1wR5maRf2SHvXcG3q CPofNQxeIjLzbibootH5Q3Rqa8jDsgByA+TcDUHzHvUdHaGNb4crBgK/+z++D+djGiHp PT3KwZrbx0KsdEI/pM4M9sYRUV3mT+WAFbWSb+Z+Qt3AkwbXxJ61011RakwftOgCkQQs urfA== ARC-Authentication-Results: i=1; mx.google.com; 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 n1si2130942pgh.172.2018.11.29.06.13.13; Thu, 29 Nov 2018 06:13:29 -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; 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 S1728592AbeK3BQa (ORCPT + 99 others); Thu, 29 Nov 2018 20:16:30 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:46543 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728233AbeK3BQ3 (ORCPT ); Thu, 29 Nov 2018 20:16:29 -0500 Received: by mail-qk1-f193.google.com with SMTP id q1so1081675qkf.13; Thu, 29 Nov 2018 06:11:00 -0800 (PST) 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=Wv38us1LrGaAtmbmo49i4wsBnN+kWL1/8/1UP+gxTYQ=; b=iJrgSgrcd55iTLc7xH0DmrTsXtqW3C7pScAKuReir1VkgbWTBRzooA7EnYKwN81EZ8 7ZnOFb4D/llqF2+ZD+no2SsbeU7NKEKWmzAVTJepDEcMSll75SyAKhiESPxysyihacdj koo7j+u+DbRRrjdjERo88krZ2IkCcRLTIm50rCY+1csrw7yv8iIjR4Tk7h9c3kR07ytr IcEX71ChQ+iHeZevkHIgxEK2QgoU4h/d0F9/yX9Nm+vbO4nbcx7g+nB8umm+p0GF3gl6 lFf8HLONtTTVmUwVhkstuaZMA9yrOolMl3+z8KHR1dLjmPn0tg0dCnWxfKtBcwVAh8eF pBBg== X-Gm-Message-State: AA+aEWbMypOanyRBKBtCSrImDOyej/kcXbHjlmsaVQLTK8ULeW+ocCDZ xEpb3/I+n6Jn4CGxbYB/YpQEVaaIAc2TetzZKWk= X-Received: by 2002:a37:bdc6:: with SMTP id n189mr1407839qkf.330.1543500659952; Thu, 29 Nov 2018 06:10:59 -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: <1543481016-18500-2-git-send-email-firoz.khan@linaro.org> From: Arnd Bergmann Date: Thu, 29 Nov 2018 15:10:42 +0100 Message-ID: Subject: Re: [PATCH v3 1/6] mips: add __NR_syscalls along with __NR_Linux_syscalls To: Firoz Khan Cc: "open list:RALINK MIPS ARCHITECTURE" , Ralf Baechle , Paul Burton , James Hogan , gregkh , 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 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? Arnd