Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1724802imm; Thu, 9 Aug 2018 00:32:07 -0700 (PDT) X-Google-Smtp-Source: AA+uWPydtx9pfsx/DfTAq/Z0vWxLYWevZ4C+SXbLuczZmpcGu36P5nCSb9JpjCmi48EOswNV42tz X-Received: by 2002:a65:6104:: with SMTP id z4-v6mr998650pgu.361.1533799927601; Thu, 09 Aug 2018 00:32:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533799927; cv=none; d=google.com; s=arc-20160816; b=gUZTmN+xCEOn3QVAGW3hSJ3ZvKbiDNw18zOIEXZMuQNqkIuWVyTM0bn2X9OhLBrrWp vWbcAR7SNwcHLdZZisrZFSArV1CvmpC8Spr6X4pH62k4XY07xoo1x2CIh2JI99seXOGq HfSPi7QGcplViJJQb6YRTopLlipdrSKvW6PGHofsGv2J+fhJIBG6SgfwQgjVn672wNAS YwT8/mS7pOOtp9F6PITU2hG94QNVa6ImkXrp5BAdlD2b/632RGV0kRDCS9EbXCwosv9C QSwXK2JfARCm4JO+ElcO2Gwux8/iny+oOCaiI9Fa3vCFVV/hgvpSY6QKcFJuWHBbMhvW 5oNw== 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:arc-authentication-results; bh=um1o8O0oro4qWrLZq0bV+ac6cbwb+JflNYf9q4SyrcY=; b=NEsH3JTO00xm0TX8SsffRNQsKd6oO1TjEruX8rdQ2uHeUekLPvLExGUiAvuiGYJMkW jp6P0TmPxhEGIlCrK2mxohHaatx8nfI5IFgWq8Z7pMRORjmqsgk/s9c+EzDB+Y6wJck5 IjQ8oXBYqU6NyYLUTOs1McPunS+tAby/MtbLC/n1QJShURZgUEJqz64QYH2JHT5sdzJX J0bt3XczFNUzI3xTtwiyF2/FlxL+/DeBzKbFcPt/l4NhM/2vFbYS2OrBHiZ7Fzu2H1ML s7v1m707ONis6ATCD6DJ+m41Lq4ewpNJqOwNt2ZoW3t3bfTCScMxxobGwewgOWPSmbWC 54kA== 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 s14-v6si6333098pga.21.2018.08.09.00.31.52; Thu, 09 Aug 2018 00:32:07 -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; 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 S1728209AbeHIJyd (ORCPT + 99 others); Thu, 9 Aug 2018 05:54:33 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:46209 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727768AbeHIJyd (ORCPT ); Thu, 9 Aug 2018 05:54:33 -0400 Received: by mail-lf1-f67.google.com with SMTP id l16-v6so3383003lfc.13; Thu, 09 Aug 2018 00:31:00 -0700 (PDT) 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=um1o8O0oro4qWrLZq0bV+ac6cbwb+JflNYf9q4SyrcY=; b=XVp83p0JRJ3xbzy3OSlD2H9k+KjHZwr9lvjwqaK4H9XtieoPy9LO2KkAAhyFFwhmo3 Fdhr5Lu+vfZua6/7+w9z6CaiWXZK3xanWc6bNukFooJDSbH2YN13VRwvnth29Hh/oT6k Ah/KCSuat1On7W/BCpzUfTjMVuwtxXXpIP4gmVLo/MbLjfTkay3AW5sLAAVgiOBrfF0C OAVf/9Re8Oggpgn8wkUTNE4t+HbEStKgYU/e3v/WPg8fIJ8lJ/yDeUQQ0Fl0E/kRU5b2 d27X3vf8f9c0ynoXZHA5bau485qstAzMYJPf2LR4K6GaFUr7xfnZ0/O5Q6LXqoNaLqgB df7w== X-Gm-Message-State: AOUpUlGm1UMdchkIPWhdjXpLyCE5II64kbpwAAV0qL+rEED/qy6ICSrv ghCn5lyOI1yTYhnncppkWnro/PK4qs4SOnENnDc= X-Received: by 2002:a19:ea5c:: with SMTP id i89-v6mr702816lfh.19.1533799859320; Thu, 09 Aug 2018 00:30:59 -0700 (PDT) MIME-Version: 1.0 References: <1533791723-3882-1-git-send-email-firoz.khan@linaro.org> <1533791723-3882-3-git-send-email-firoz.khan@linaro.org> In-Reply-To: <1533791723-3882-3-git-send-email-firoz.khan@linaro.org> From: Geert Uytterhoeven Date: Thu, 9 Aug 2018 09:30:45 +0200 Message-ID: Subject: Re: [PATCH 2/4] m68k: Replace NR_syscalls macro from asm/unistd.h To: firoz.khan@linaro.org Cc: linux-m68k , y2038 Mailman List , Linux Kernel Mailing List , 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, One first comment below... On Thu, Aug 9, 2018 at 7:16 AM Firoz Khan wrote: > NR_syscalls macro holds the number of system call exist in m68k > architecture. This macro is currently the part of asm/unistd.h file. > We have to change the value of NR_syscalls, if we add or delete a > system call. > > One of patch in this patch series has a script which will generate > a uapi header based on syscall.tbl file. The syscall.tbl file > contains the number of system call information. So we have two > option to update NR_syscalls value. > > 1. Update NR_syscalls in asm/unistd.h manually by counting the > no.of system calls. No need to update NR_syscalls untill > we either add a new system call or delete an existing system > call. > > 2. We can keep this feature it above mentioned script, that'll > count the number of syscalls and keep it in a generated file. > In this case we don't need to explicitly update NR_syscalls > in asm/unistd.h file. > > The 2nd option will be the recommended one. For that, I moved the > NR_syscalls macro from asm/unistd.h to uapi/asm/unistd.h. The macro > name also changed form NR_syscalls to __NR_syscalls 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. It can indeed not be part of the UAPI, as UAPI definitions can never change, while new syscalls will be added in the future, increasing the number ;-) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds