Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4535874imm; Tue, 9 Oct 2018 00:48:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV63RbrOpsa1CPsVUBG2pBvhusfEuZQRopIuJNgsEjtGCaSUjCSWOP5+w8m4IbEG9UrqcQeuw X-Received: by 2002:aa7:86cc:: with SMTP id h12-v6mr28360347pfo.58.1539071339557; Tue, 09 Oct 2018 00:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539071339; cv=none; d=google.com; s=arc-20160816; b=pt6FITvaaeIgYd9W4KHbUbhX0/NbTn1VsywO3lmyre9VDbgoWxvYv2n7yPwIdvVDvl hbRRiNQVf/c010Cnl+y3sDeW5ibJa2eY4O19kZfCCaeATwQdK2DDaywjC9TZ8Xyk92hc FcOwd58gE+EtO6nFsvkb+cuhoylPUJQE5qkySqH6KixaP9u/ZTqQKJ9G4k44pQAWKrwT shXrZnlBAoEYBhv825RgGEfZ7+QcmdVfhcrsmMiKyJOrL3sEUxZj91WR2o7IIN5O9EeJ 3FeJ9YZH/+Zjrx//qH79rslib5jVCQ5YkxFkeuwv5RLLmS+wPZlZEKmRFrC3ntLMVIGu ROqA== 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=BTapHSjpivCU6Tmrhj51gzEopsaVt6YsrsoPoqgiudU=; b=v+zCuOhM0rOHW8QqqbpBngchAMGKNGUw6IAiXSFpQnBzDW8I2zHLd27mj+IDpsDAH0 9fNoq54ckZ0D+53P91jAw0MAAYeGxDKN7ZlycxCWKhFAf7+rk+q/bE3lH/0iSCAtWqS4 TVOUweM9mlbF/13I0ZOPfsAgdrqA++N7K/FCLwzcMdM0KqDsXPxYJZdtP44sOaTnpSCa Tt8Trdmq30mWfGJQEqcRpLpNOYJM4bIAmGVLhfujFHmIWiSQJLeP3jy/rWJTzc+gNc/A moPs9u26+1YKxhH3wI7lNPa1NxIToYu+v/sn5D/0E8Go42DDW4WMmqfJpNeYp1tI3aah tvCQ== 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 s21-v6si19823889pgj.90.2018.10.09.00.48.45; Tue, 09 Oct 2018 00:48:59 -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 S1726757AbeJIPDn (ORCPT + 99 others); Tue, 9 Oct 2018 11:03:43 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:33214 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726625AbeJIPDn (ORCPT ); Tue, 9 Oct 2018 11:03:43 -0400 Received: by mail-qt1-f193.google.com with SMTP id q40-v6so612476qte.0; Tue, 09 Oct 2018 00:48:05 -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=BTapHSjpivCU6Tmrhj51gzEopsaVt6YsrsoPoqgiudU=; b=Ow4aP+Y+/f8gQ7VfADOaElZOuV0+Zaa6aOzHDez4oLjYLJWyoBJBizROustF2Juw29 gEdZeEGXA99aDMUrkziibakpWReFOl2cYtVNRvJOeCn/sMgaZpxuTStVavSLWP63eGY6 mm9lXBHC7kgF+GoUs2h4xDMrIjNjdJiLzvnVePYIT/OzuR0GiGw9CA+yQL/dlPAdLUw4 8HQ77DNkcMGUbP7N68RQ7s93iEo3PlDKZG60+dDOA6tnyePb0fWsuVeTH2XkIYmSS7Sy aKCGdWhGOCJHHRgXFw+e+vlU5ngAFJbqCqveBj5KCAtIyjCVxm3YTa/jnMpZHQtUXL1s Le6w== X-Gm-Message-State: ABuFfoj8wkCHO4xF3/ULGP39++4xhPVUXzkFK/AQ8Z9P/hjp7buFmkpG Gs5rkRYY3r8/pnc0gj6teG8H+Edg3xccJuO9wC0= X-Received: by 2002:ac8:7254:: with SMTP id l20-v6mr22246528qtp.213.1539071285000; Tue, 09 Oct 2018 00:48:05 -0700 (PDT) MIME-Version: 1.0 References: <1538975801-13735-1-git-send-email-firoz.khan@linaro.org> <1538975801-13735-4-git-send-email-firoz.khan@linaro.org> <20181008130301.GM32759@asgard.redhat.com> In-Reply-To: From: Arnd Bergmann Date: Tue, 9 Oct 2018 09:47:48 +0200 Message-ID: Subject: Re: [PATCH v3 3/6] parisc: add system call table generation support To: Firoz Khan Cc: Eugene Syromiatnikov , Parisc List , "James E.J. Bottomley" , Helge Deller , Thomas Gleixner , gregkh , Philippe Ombredanne , 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 Tue, Oct 9, 2018 at 7:35 AM Firoz Khan wrote: > On Mon, 8 Oct 2018 at 19:27, Arnd Bergmann wrote: > > On Mon, Oct 8, 2018 at 3:02 PM Eugene Syromiatnikov wrote: > > > > > +87 common swapon sys_swapon > > > > > +88 common reboot sys_reboot > > > > > +89 common mmap2 sys_mmap2 > > > > > +90 common mmap sys_mmap > > > > > +91 common munmap sys_munmap > > > > > +92 common truncate sys_truncate compat_sys_truncate > > > > > +93 common ftruncate sys_ftruncate compat_sys_ftruncate > > > > > +94 common fchmod sys_fchmod > > > > > +95 common fchown sys_fchown > > > > > +96 common getpriority sys_getpriority > > > > > +97 common setpriority sys_setpriority > > > > > +98 common recv sys_recv > > > > > +99 common statfs sys_statfs compat_sys_statfs > > > > > +100 common fstatfs sys_fstatfs compat_sys_fstatfs > > > > > +101 common stat64 sys_stat64 > > > > > > It is probably worth adding a comment here that syscall 102 was > > > socketcall, in order to make reason for this jump in syscall numeration > > > self-evident. > > > > +1 > > > > In general, I'd argue we want to keep all the nontrivial comments that > > were present in either unistd.h or syscall_table.S. > > unistd_32.h, unistd_64.h, syscall_table_32.h, syscall_table_64.h and > syscall_table_c32.h > are generated files. unistd.h and syscall_table.S file include > generated files. I had the > support to keep the comments in the generated files. > > Eg:- from github > https://github.com/frzkhn/system_call_table_generator/blob/5fe5fb5a3ad457b234e7600d8a4b61b2e3629acd/ia64/syscall.tbl#L105 > > But I got to know the generated file don't carry any license info and > comment section. That's > why I removed it from all architecture. > > I'm ok to keep this support for all architecture. Please feel free to > comment here. I meant just have the comments in the .tbl file, but not act on them. One way to do this would be to let the script ignore everything past the first '#' character in a line by passing it through 'sed -e "s:#.*$::"' or a similar step (there is probably a nicer way to do this with shell built-ins). > > I think this makes more sense, in particular on the other architectures > > that have different macro names in some cases. When we do this, > > the entries could get compressed to > > > > 108 32 pread64 parisc_pread64 > > 108 64 pread64 sys_pread64 > > > > Sure. I can do this thing. The above one may be applicable for parisc not other > architecture. So the scripts might be slightly different. If we keep a > standard way, > the script will be unique. So the only difference will be Makefile and > .tbl files for all > architecture; I think that is our one of the goal. I would expect the above to actually be more important on other architectures. E.g. on powerpc: 291 32 fstatat64 sys_fstatat64 sys_fstatat64 291 64 newfstatat newfstatat or (simplified) 291 32 fstatat64 sys_fstatat64 291 64 newfstatat newfstatat makes much more sense than 291 32 fstatat64 sys_fstatat64 291 64 newfstatat newfstatat sys_fstatat64 Arnd