Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp145575oof; Mon, 24 Sep 2018 17:49:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV61PXmZLO3YLjzb4DaI+JS+IguWvquXgdDIiJ9JAXeIGSuIb+2/6M9ognlriPIPAZOzETWAE X-Received: by 2002:a17:902:7287:: with SMTP id d7-v6mr1071313pll.54.1537836553407; Mon, 24 Sep 2018 17:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537836553; cv=none; d=google.com; s=arc-20160816; b=yDsO2Qt/Id3zJ8wFP31TzGBKZxYjj67UQw7bLegYxW/9mvhiMgkQWUwkDDurjKTEaj ZPbbDK4isE2GSFrn6w/UTaFQ0+F3Ky4l7ejfhfK9JAB/M+3ngTqPzIhTY0C+gdWQKe7U bLEHPwbAFnLOdDIU163fx81ftjoj8QRS1wwRLq1e16MZF0SdyP5v8uemViwp/OuIbmpE 7m1zZ1+NVmWQF5CLZs3hbHowZTNjCKUfLWTCNiAMA3BDi8iXDi5JpfKDnXwHtUik810M m+Tjhi4o7t1z7YTU0uPttzYyHtZVEUeT9T9YWT6PioTWoQdoVbBZZPA8WFgrb0NAom6O vsAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=kuJQSkQsSFFh7LIhF6+BUHqXUiCk5LynXrtevxh+QgU=; b=PVzLjuyfoAh9ybF4GtAcVFN6fPaVxZqhpe9hcQiDH0/1joz/nsnEBwbwwRto0vH8PY eo5EeYDz7jGLyNbwjXTCXZLkAk4/YRUkVZEE1Vk9ukRpI+g9RjK+Ar7g9vgh11b2ZI0w OoWONR8HqX1EUtEl8OxPeEBituhPklqHEqbjeRkrt3ramCIno5fKeMBKVR44D0mfz5xu OyccFrBbDN4BHbXzO8aSNjnz7vdCtNwEBmJw1Ty9ZgMj/NCHEiPCfbucVrza28vQe4tG ddjifmPzkhgLy0Es1MOYjdo/M+3rPjfo4MOpSLjyebqk3/0/uCkMWlokUJJZjz1ZWNsv Cojw== 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 g22-v6si766743pfb.136.2018.09.24.17.48.57; Mon, 24 Sep 2018 17:49:13 -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 S1727338AbeIYGxo (ORCPT + 99 others); Tue, 25 Sep 2018 02:53:44 -0400 Received: from ozlabs.org ([203.11.71.1]:42357 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726025AbeIYGxo (ORCPT ); Tue, 25 Sep 2018 02:53:44 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 42K2WP3Z5Kz9s9N; Tue, 25 Sep 2018 10:48:49 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Arnd Bergmann , Firoz Khan Cc: linuxppc-dev , Benjamin Herrenschmidt , Paul Mackerras , linuxram@us.ibm.com, leitao@debian.org, Boqun Feng , gregkh , Philippe Ombredanne , Thomas Gleixner , Kate Stewart , y2038 Mailman List , Linux Kernel Mailing List , linux-arch , Deepa Dinamani , Marcin Juszkiewicz Subject: Re: [PATCH 2/3] powerpc: Add system call table generation support In-Reply-To: References: <1536913980-4811-1-git-send-email-firoz.khan@linaro.org> <1536913980-4811-3-git-send-email-firoz.khan@linaro.org> Date: Tue, 25 Sep 2018 10:48:49 +1000 Message-ID: <87efdi5rm6.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd Bergmann writes: > On Tue, Sep 18, 2018 at 2:15 PM Firoz Khan wrote: >> On 14 September 2018 at 15:31, Arnd Bergmann wrote: >> > On Fri, Sep 14, 2018 at 10:33 AM Firoz Khan wrote: >> > >> >> --- >> >> arch/powerpc/kernel/syscalls/Makefile | 51 ++++ >> >> arch/powerpc/kernel/syscalls/syscall_32.tbl | 378 ++++++++++++++++++++++++++++ >> >> arch/powerpc/kernel/syscalls/syscall_64.tbl | 372 +++++++++++++++++++++++++++ >> >> arch/powerpc/kernel/syscalls/syscallhdr.sh | 37 +++ >> >> arch/powerpc/kernel/syscalls/syscalltbl.sh | 38 +++ >> > >> > I think you should only need a single .tbl input file here. >> >> Yes, we can do that way also.As I mentioned, it will add >> more complexity in the script. >> >> The script has to be smart enough to parse the >> .tbl if we add more thing in the .tble file. It need more >> logic in the scripts. This is not common. So if you keep >> separate .tbl we can avoid this. > > But all three existing architectures (x86, s390 and arm) already > have the capability to parse the table and generate different output > from that. Yeah, we want that on powerpc too. If the script needs to be more complex that's fine, if it can't be shared across arches that's fine, the main thing for me is that wiring up a syscall can be done by adding a single line in a single file. cheers