Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3270086imu; Sun, 23 Dec 2018 21:20:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN6GvwnSMYY3tLh3q6HOUubrmyYNKWtRZwj3nPGo8JI3JolYrtIDy+k/ldFcDnH6bVoHWwex X-Received: by 2002:a17:902:20c6:: with SMTP id v6mr11981036plg.156.1545628848318; Sun, 23 Dec 2018 21:20:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545628848; cv=none; d=google.com; s=arc-20160816; b=Z/ED67zg6SfZ4KdLR7k8lzjA369NvPewsWBl5O3qH919HEf/Su1jJGWNMbbh9rlnOP 1VvNbmdy0XB4JX71xe5ugB7L43H+rXpLIHcUsrI4kKqW5F/R0J1sZZBcBP5U83Ox5+PW jzVaipVqEFjsPKMddPxKuMCUhqtGxRt5fi1MG8Lt70KipRi9naDEhuxRWLV3V4yI9elh hEMwpbyestAWBl1SdO34jODAQ2rLHB1trXUemEA3Mc420EmevI9nXbb+qrSe5Zg9uxNV 6FzqeMIFbU1Ixt9eknq8AE2A9iVjVAVwoGSxTKwlat9WbEoBqTpJtmB/F4QY98rZLjwm rg/Q== 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=vTO+iFapKycw8LXxhWPSoaeNUpIXXF2j8h+GKpEFVlg=; b=qyZDxnuAgq6TyxaYZBlCsW7qUoGw3Dn9Dcp7Bf7WuIUE/wQ+5UVfMDr9HpV8cy1wiU 4iIqexlCNWiwJLYSW20EQKcEEu+hAP7F4jpba5517Uzerl5qNud/S8kCLVWaSZgQkFk8 vEgGsH0wqmm0yiF//6KNehCkIxBFtLOBpIOOFwHnZ3EP7jJyELh/fpgN56+WXNdy9xIz NSLUUjvIBTDZq3lBo7Ycno2aQAnNGiOTfCtWVem8ATB7/AZo8vgcKO3wAokmejzlGuo0 kqq8Lbi3EkBv3TFvW7Pn/kxP54w89qwBs3lFz46Sz2brxhvY/MBklrNLt2egVOgGP61J Pzyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VGjf+Msj; 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 e37si23010301plb.172.2018.12.23.21.20.21; Sun, 23 Dec 2018 21:20:48 -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=VGjf+Msj; 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 S1725922AbeLXFTA (ORCPT + 99 others); Mon, 24 Dec 2018 00:19:00 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:38634 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725879AbeLXFTA (ORCPT ); Mon, 24 Dec 2018 00:19:00 -0500 Received: by mail-it1-f194.google.com with SMTP id h65so14077105ith.3 for ; Sun, 23 Dec 2018 21:18:59 -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=vTO+iFapKycw8LXxhWPSoaeNUpIXXF2j8h+GKpEFVlg=; b=VGjf+MsjIrlu9wL3ms3pflyDPI3wnRSqluS6yyZqFQRSUffaITrQlZZ+SKBzt+g316 bIJYV05HA8UlBCMOqwYRJliEchNFFO2RKqW0syyXxMB4BKppBmfeyvTxG2oSKhewLkPk EvPy16xTFaX5M9kEQVFhIjZjeJeIeNVMA4Vgc= 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=vTO+iFapKycw8LXxhWPSoaeNUpIXXF2j8h+GKpEFVlg=; b=Rt/2TxWLf1KUQ4aIDnlKyO8cM4D/V3dDhb7hks52ZOrKQMpZcwjxl+r39j53Fg8tIE KTSm6T/mAEd71blxq2V//4DSdYsUpySJuiM8vRuK4HS64CgTvdyH0IAZLl6CSDgojCfd xIb7kePuEjfn78+3BWAVt3VaPYlJCbMIo2XCyCmyInE12u6/4gAGoxF0vP1geHGnop8y BkCc1L2qM0vhbUau6JAchqyOwTwDA04B6W0PkilqOYqlcBiI/+A2iDO62Z+LUCFrRozd bakv5mEvZX1SVf7c5jgVo8dp8LqsBAZKnKLYEUCLkYdhayQyy6HgKHPDKaNuqmxibhih q66A== X-Gm-Message-State: AJcUukdeC1Eht+XYUrjFHupyepT6FZjzjwaopZTlaZUp6jenDDrDqwyx DlR+A4fTU141k264aS0cl/RCo0s33sPJagCFfF0r1Q== X-Received: by 2002:a24:f14d:: with SMTP id q13mr7290173iti.166.1545628738904; Sun, 23 Dec 2018 21:18:58 -0800 (PST) MIME-Version: 1.0 References: <1545043236-11649-2-git-send-email-firoz.khan@linaro.org> <43N38M4cw7z9sNJ@ozlabs.org> In-Reply-To: <43N38M4cw7z9sNJ@ozlabs.org> From: Firoz Khan Date: Mon, 24 Dec 2018 10:48:50 +0530 Message-ID: Subject: Re: [v6,1/5] powerpc: add __NR_syscalls along with NR_syscalls To: Michael Ellerman Cc: linuxppc-dev , Satheesh Rajendran , Benjamin Herrenschmidt , Paul Mackerras , Arnd Bergmann , Geert Uytterhoeven , Ram Pai , Mathieu Desnoyers , Boqun Feng , Breno Leitao , Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart , Linux-Arch , y2038 Mailman List , Linux Kernel Mailing List , Marcin Juszkiewicz , Deepa Dinamani 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 Sun, 23 Dec 2018 at 18:58, Michael Ellerman wrote: > > On Mon, 2018-12-17 at 10:40:32 UTC, Firoz Khan wrote: > > NR_syscalls macro holds the number of system call exist > > in powerpc architecture. We have to change the value of > > NR_syscalls, if we add or delete a system call. > > > > One of the 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 count- > > ing the no.of system calls. No need to update NR_sys- > > calls until we either add a new system call or delete > > existing system call. > > > > 2. We can keep this feature in above mentioned script, > > that will count the number of syscalls and keep it in > > a generated file. In this case we don't need to expli- > > citly update NR_syscalls in asm/unistd.h file. > > > > The 2nd option will be the recommended one. For that, I > > added the __NR_syscalls macro in uapi/asm/unistd.h along > > with NR_syscalls asm/unistd.h. The macro __NR_syscalls > > 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. > > > > Signed-off-by: Firoz Khan > > Series applied to powerpc next, thanks. Thanks Micheal! Firoz > > https://git.kernel.org/powerpc/c/8a19eeeab66dfdd7c67bc8e3048ac0 > > cheers