Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4432368imm; Mon, 8 Oct 2018 22:42:32 -0700 (PDT) X-Google-Smtp-Source: ACcGV6079Jx5z5PR1n0oSy7udOSMOw5uJwYIfcB2fq5oQOITVHB4orIjenlXWMQH/3R0K2Rr8eDz X-Received: by 2002:a63:541e:: with SMTP id i30-v6mr24381354pgb.413.1539063752020; Mon, 08 Oct 2018 22:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539063751; cv=none; d=google.com; s=arc-20160816; b=kas74K80cAEJD/eyMT49gotE4rtH/dtFcQg5MiyDHuhUvCXa+SFu2IGnqsT0wumCrk h3rbzfkYXRe5RaBmLf+kWdaS78bF2ebQsvfV4zBqSTIqqjKVJX5x9Enh2esierCyOHCL lhQYJwjCUx7/gZmSb5I/AV14NQsKkopgUBkloJg3YfoNibd7kOIdrPKsqcU/V3gQibff 0GRRrxXgfWqSe3QiGydEM0FyASrR9+w/HCTDETFTy3n9w4a16Yo95e3BhbphfWC9+LeP mmLimJH4I4tcR9JJnWKQBbkQKmZ/A6i6zR66TDOZ0v8R8JqfmtB5q22sDvvLgVdPX+yj qBKQ== 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=RrvME24R0Jb2yMT9mjAMiR34IYCUWzSfgjSn97f/t7A=; b=XQYTKS3SbOtzoByVBGi3DFezuvx16hBoDvJGFA7oOLt5ifzE5KWrsAVtCy9RfVaorz V7TxvVBFUQwrq8jysabJFU4eTdbYzVTBa+/CfsPooTqbVZrzvX0PrTeaAgrxJ2dWvJSO /+I4tOvwKA2tXuBgmIZblUDe71QHfsxPvum0if4IbmuoxG3IvRCMGsYeT5R6dD76zxB+ 6jgWmnd2Ym9SLu+QcheAweR3m8bb09j+NmPf/7Sg6NXbo45mJ1GUIIB8jKqTbfVlmNcf Uug5GRXaTbbDKQunvmnEaKoBit5SCBhuczjTSK9ueNIXitE0Pm7hv0HiJfXGKEiA1sQ3 Zpvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A6zw25aB; 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 q22-v6si20547950pls.243.2018.10.08.22.41.46; Mon, 08 Oct 2018 22:42:31 -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; dkim=pass header.i=@linaro.org header.s=google header.b=A6zw25aB; 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 S1726160AbeJIMzz (ORCPT + 99 others); Tue, 9 Oct 2018 08:55:55 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:37881 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725823AbeJIMzz (ORCPT ); Tue, 9 Oct 2018 08:55:55 -0400 Received: by mail-yw1-f68.google.com with SMTP id y14-v6so154524ywa.4 for ; Mon, 08 Oct 2018 22:40:43 -0700 (PDT) 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=RrvME24R0Jb2yMT9mjAMiR34IYCUWzSfgjSn97f/t7A=; b=A6zw25aB3I8tGSP8tCW0IaSmGpHa9CUn8sUKaAPAXR64Vcfao20ZE7Y0S6BgqTjDij xivbhSZvYGAUThgfL1dlw1lb6lCIwA5EQtNsu7X/O9NAD15O5guQhv1PgsbnnfLZaw8H 0UpNLQFnOPJsg4LembOi5xgFxHOYCMnKTURRE= 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=RrvME24R0Jb2yMT9mjAMiR34IYCUWzSfgjSn97f/t7A=; b=D8L5ahQ9IjrkJ91wP+ysVJbvSAKttRrwt0saLuNtSyTAxT31gPNPOlIAxqkJ1hX1iq vIJKwVqSmY4O/FO0wJ1xvxEqp3m/nCRKoN7Ms3swQvIhjbyOpXNAF4D1Qlpvyl7q2YMz gWcHOgyeZSyXQJquLVNKRhSEuxhPxtaVqzoC7212/clFnyrvbypzLRQOCeb8/9eXzTq/ MvTaEb7CiDBQgPnJhr0URNo+3dAdy372eQoEVtokyja9jDQPohCXgLQzFByaoBSKCO4l 4EW4hb782CS/9q2GHrq2i0qF9Zp7+JwCC+JMT/gXF8S36on4uKxzVyp9n3FHymtAaqeL PXzQ== X-Gm-Message-State: ABuFfoh4puO2NlIyvmnhq4apCqMWqcMyZjZlR2NTbw/ToNHEG/HE5M2I NO6z5Nlev5YeMhOFTBuVpKoV64/xCcnt6qmPnzQODQ== X-Received: by 2002:a81:1b85:: with SMTP id b127-v6mr15210571ywb.381.1539063643241; Mon, 08 Oct 2018 22:40:43 -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: Firoz Khan Date: Tue, 9 Oct 2018 11:10:32 +0530 Message-ID: Subject: Re: [PATCH v3 3/6] parisc: add system call table generation support To: Arnd Bergmann Cc: esyr@redhat.com, linux-parisc@vger.kernel.org, "James E . J . Bottomley" , Helge Deller , Thomas Gleixner , Greg Kroah-Hartman , 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, 9 Oct 2018 at 11:05, Firoz Khan wrote: > > Hi Eugene, Arnd, > > On Mon, 8 Oct 2018 at 19:27, Arnd Bergmann wrote: > > > > On Mon, Oct 8, 2018 at 3:02 PM Eugene Syromiatnikov wrote: > > > > On Mon, 8 Oct 2018 at 10:47, Firoz Khan wrote: > > > > > diff --git a/arch/parisc/kernel/syscalls/syscall.tbl b/arch/parisc/kernel/syscalls/syscall.tbl > > > > > > > > +84 common lstat sys_newlstat compat_sys_newlstat > > > > > +85 common readlink sys_readlink > > > > > +86 common uselib sys_ni_syscall > > > > > > Why uselib is declared, contrary to all the skipped syscalls below, > > > that were sys_ni_syscall previously? Only __NR_socketcall was explicitly > > > undefined in arch/parisc/include/uapi/asm/unistd.h. > > > > Good catch, I didn't see that in my earlier review. I agree we want the > > files to be identical to the version they replace, so the macros need to > > be there for now. > > > > We may later decide to clean this up and remove all __NR_* that have > > no entry point, but the conversion to the new table format needs to > > otherwise be a nop. > > > > > > > +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. My suggestion is to leave the non trivial comments only in the .tbl file. Thanks Firoz > > > > > > > > +103 common syslog sys_syslog > > > > > +104 common setitimer sys_setitimer compat_sys_setitimer > > > > > +105 common getitimer sys_getitimer compat_sys_getitimer > > > > > +106 common capget sys_capget > > > > > +107 common capset sys_capset > > > > > > > > +108 32 pread64 parisc_pread64 > > > > > +108 64 pread64 sys_pread64 parisc_pread64 > > > > > > It would be probably nice to have some syntax that would allow avoid > > > this duplication (as compat handler on 64 bit and native on 32 bit are > > > the same). > > > > I think I would prefer to have the compat table be generated with the '32' > > abi rather than the '64' abi, so we end up with > > > > 108 32 pread64 parisc_pread64 > > parisc_pread64 > > 108 64 pread64 sys_pread64 > > > > 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. > > > > > > +348 common pwritev2 sys_pwritev2 compat_sys_pwritev2 > > > > > +349 common statx sys_statx > > > > > +350 common io_pgetevents sys_io_pgetevents compat_sys_io_pgetevents > > > > > \ No newline at end of file > > > > As others have commented several times, Firoz still needs to fix > > the missing newline. > > Sure. I was wondering why the checkpatch script is not catching this one. > Where ever I came across I fixed it. > > Thanks > Firoz > > > > > Firoz, please fix all the newlines before you repost any further > > patches. > > > > Arnd