Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6017735imu; Tue, 13 Nov 2018 15:50:19 -0800 (PST) X-Google-Smtp-Source: AJdET5fbduadlwaQWWhLH5TXX8Zwcr02BcEewCCKHt7Nlq6e8CkE+gNgwgs9qhYeBX9rTH+Ysn9A X-Received: by 2002:a17:902:396a:: with SMTP id e39-v6mr7265132plg.65.1542153019697; Tue, 13 Nov 2018 15:50:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542153019; cv=none; d=google.com; s=arc-20160816; b=krkpu8kyUzT+YPxEQiUN4VsTO9KMi+JXzj/INGmVSHJqS3SE/cPlvovjbkGysLo43k rVZqJtZ4QZjxOK5kqmTCg+AQv+XBy0vhu2xSltWzRVqaTClZWgaZa7ti627oxIQZBSv9 LgTaAVN4CGQ9VM47S6DFkPkq/H/m9MxI9Cu09opXCpNObCNMJ6GbwEs2fAOLteWIvtsJ WFl8w78dV3rDLzfzRh0wohZvJnQA71m1h3toFzAjwfERpyWo87VJT5Rr00xqMvrdxuAg wMH9udJatYl4BSMRISzj6JqtWJzRgiq/TfHyw143JBbjrSBIV4LnHUYhY8oSCst10iG6 wIZQ== 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=mWBIlREpefaU+p3fd66oX4IGdvRaIv8GtcJtWXZFoPs=; b=RZil5lHuokGlGyaT50KFR56JKHXY9QlGAl9ubf9IH4K69sFgwrN1/f/PJ+DjEyyipg PZ2pwZa8Hga0V8sT7Zp1W5ZC6mV4nThgNOiOfCFbzIEAmb1Uee5h/LoivHrr8xINSzOr BanLO7kC0/TFVgCYqvtATfMIIj7ZoCVhrThDE9ZkrEilrlP7Pr0r6hXGM5jQezm+9iJw L4dYJhgYKLejAccFTQ+0AsDy4FmCeuoyk6OC0WIl9SR8daaR0ugXyUmh8Wpq9mKcgWvf js2hNPIn6BNXYFIP6Bz9BZtsNMgk+0azA7hbQpannjcVJq/kh+lbGUhIulNU6HDABJlq QJWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SZeMxeLr; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x11-v6si22394086pln.425.2018.11.13.15.50.03; Tue, 13 Nov 2018 15:50:19 -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=@gmail.com header.s=20161025 header.b=SZeMxeLr; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727761AbeKNJuT (ORCPT + 99 others); Wed, 14 Nov 2018 04:50:19 -0500 Received: from mail-yb1-f196.google.com ([209.85.219.196]:45275 "EHLO mail-yb1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726408AbeKNJuT (ORCPT ); Wed, 14 Nov 2018 04:50:19 -0500 Received: by mail-yb1-f196.google.com with SMTP id 131-v6so6148912ybe.12; Tue, 13 Nov 2018 15:49:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mWBIlREpefaU+p3fd66oX4IGdvRaIv8GtcJtWXZFoPs=; b=SZeMxeLrnn+pCwRRv6zGicVeJQBu5Bde4eXtqKjcuCq20tyE7eoEOs0vV45diGGhMG ghl/Vpwk3gMMPZP+d6/jlL30+x9WS3SkvyQdSmYCdr04nMdIeGm9ERbSiaz8W/v51oH7 KeAYeB9dxFoEAWQzM1uZyXkseMS0VHfASchdT331kBNCR7xFC3C5AbeHAP7UeA6Y8I1u /OKuaXXzleCV8jKx7Y1MVeF3lVSgkRmmML1sFzmkjOi3Cwp1WZLzXNWdbI3eBlZbCzmY rd+eOeN7viElqr0QbOkFOOBHSiGNmhaZ+HjvhX12tIJek1CWr2Jyj/HSuVKbpXZ2o/FU nXRw== 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=mWBIlREpefaU+p3fd66oX4IGdvRaIv8GtcJtWXZFoPs=; b=gQIMsk+9qRWJ9Yd8bh0FS+IPAbPuwfEXsbUc6sCD0BSCrXtYnv0RUZWE2CIIvrCdxn ZDIBM5Fuck7T8hlPaQp9HfVBr++MiACrJuRHCSNQ1Il3ofxsUWK+PeRSihdPT4wcSZO3 UtxVEO0kwYEBztX6WRqhWnE5y4bxB2ii8wOTrNZ9Qy9vkoHGWuRUiPBBfnWpFRrvGdN3 lPUlKjKGrKHzKMY1Ws2nRKR+kn5/2P4Dl73wX1PGD23+G0BNMFoD14Bjg38p97dGB6k/ KMEtzU9Pjc5HgD84hoBqM7kOoENqrsLstXzElV2FaZBOyuTM18d4yHPBGeBAX/ZiYinK BgPg== X-Gm-Message-State: AGRZ1gIMgjxMo3gm0M9HXH9R5q6oy92gfBafLGapYVMdzInCowa/AI22 A2Q6ZGe7e6PCPA8hgxJj1RkLH0Lb13KoNaN79No= X-Received: by 2002:a25:5f4d:: with SMTP id h13-v6mr7264917ybm.252.1542152980921; Tue, 13 Nov 2018 15:49:40 -0800 (PST) MIME-Version: 1.0 References: <1542104370-22831-1-git-send-email-firoz.khan@linaro.org> <1542104370-22831-2-git-send-email-firoz.khan@linaro.org> In-Reply-To: <1542104370-22831-2-git-send-email-firoz.khan@linaro.org> From: Max Filippov Date: Tue, 13 Nov 2018 15:49:29 -0800 Message-ID: Subject: Re: [PATCH v2 1/3] xtensa: add __NR_syscalls along with __NR_syscall_count To: Firoz Khan Cc: Chris Zankel , linux-xtensa@linux-xtensa.org, Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart , y2038@lists.linaro.org, LKML , Linux-Arch , Arnd Bergmann , Deepa Dinamani , marcin.juszkiewicz@linaro.org 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 Firoz, I have one more question: On Tue, Nov 13, 2018 at 2:20 AM Firoz Khan wrote: > The 2nd option will be the recommended one. For that, I > added the __NR_syscalls macro in uapi/asm/unistd.h along > with __NR_syscall_count asm/unistd.h. The macro __NR_sys- > calls also added for making the name convention same across > all architecture. While __NR_syscalls 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. Looking at the include/uapi/asm-generic/unistd.h I see that __NR_syscalls is not guarded by the #ifdef __KERNEL__, why should it be guarded for xtensa? If we remove __NR_syscall_count from the uapi header I'd suggest dropping it completely and switching its two current users to __NR_syscalls. -- Thanks. -- Max