Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2263963imm; Mon, 24 Sep 2018 00:54:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV63ZD+lDtzICTJ5DnAIZC3S7Xc3UyoHPyVu2un+YKOrnF9ZI8k89M0OISwcLLNzOn+cdvnnA X-Received: by 2002:a17:902:aa83:: with SMTP id d3-v6mr9355951plr.242.1537775646757; Mon, 24 Sep 2018 00:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537775646; cv=none; d=google.com; s=arc-20160816; b=hqQ+EGq4GpXg/Al1nDnylzHE7y065Tr1/iy3C63uXG9yxquZrszWh/VzokDt9iGBxG qmWZo/pykXag3axjkpFoRum+RnMNg1bpcfRbJTfnUQH7puUjosZ62fEvJVCJ8g5D7klC CdriDctCTn2sIBmSDjEbViVbRQDhRTSIfVlP5DjuiIW0qiY9/rSUY4Tpv2/tBsp2i2gO oLeGn2ThyR8ZubP6ALVnN+8lbcobDEMaBGXiI9uXxIu142PuqUvDTkoZb/0d9uy4JKkj j8PdqjXJqsX0s9zkPt/l1dGxaCV+/tDesSYOvBqD579TUv4AOW0Wr9tan1w9CK103F5F 14Fg== 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=yLL1gOj9lTyJrGiM53C6pWgcW3LyE6rweAcQE3Q5+Wc=; b=AfmIm5xHiVQnwizZAjyDbvw4RdPmRmLZOsF+o7yKmnHZMOmoZUwE70ORGImpNkOT69 I+lI2VblhbksPv1+MUezaeHnRbJD24h4UUh1u96jP45mQm5xA1pGCErNQqndWVF/wy21 4eUvpjrYH/+EFMX0y0uxKfE4xK9AzxrpJYy3VtqPA9puqibCCjd434DPdOz0n7a/WvnP 79JSDWh1o6naOQmumJIaw3MQ8oQe21IAqCXAT7nFyC5oJo7JuIjQ4qU/NbwoY+IQ8ETY +T1fqHPieUAp+o9zI9qOIrU1rbvS7EACDCJuodh5e3EBGFPgomIKKCqaq8kiKDqNVc4N UbAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KdyPlpyU; 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 x29-v6si14887272pga.674.2018.09.24.00.53.51; Mon, 24 Sep 2018 00:54:06 -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=KdyPlpyU; 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 S1727310AbeIXNyc (ORCPT + 99 others); Mon, 24 Sep 2018 09:54:32 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:42905 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726269AbeIXNyc (ORCPT ); Mon, 24 Sep 2018 09:54:32 -0400 Received: by mail-yw1-f66.google.com with SMTP id h134-v6so4367403ywc.9 for ; Mon, 24 Sep 2018 00:53: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=yLL1gOj9lTyJrGiM53C6pWgcW3LyE6rweAcQE3Q5+Wc=; b=KdyPlpyUO0Y48dzFlmmH9mfbC9POY7q9eWvwd3HKZhpUKZweQDCuJ5F08ykqTf/au3 oyXaQXRe7PV7RLIWFvt8A+6loeq5mESkLvfl25YBXz0XGDoRLmIZuPPPh6oUGFvA5qfc TyDh3bYD+6UKUUSI2s0OeuIN0HiOvx2WdMQ2k= 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=yLL1gOj9lTyJrGiM53C6pWgcW3LyE6rweAcQE3Q5+Wc=; b=EaIAAkCO90jkjeZrZkfGMEbA+gLvPBTvqG3/kbhnMuhbJ/1PSEMA4wwsStW+jdmPXe agIXBgJR5hb6lAPxRWpgJ6unMmBhcSEPPuyxlz4h0YH+QNFqIwAwBUhqEXvZhM05yvGy vW12VIYTnWEVxH5qPDxr05mEY3e6CV3bKq3KLSAup8c2K27MXsifIOmm1NBMfIWfwkwT 61BuxIDA778Ll9xy9M4l+XWeezyuPA1WjxIO5no7E48zdyyR6mRqX6XtJ+YWe0z70CJI PHjFiRNiHPHzgaaPYJuZ5uynsEEMUxDLp0nAcwhFCYAtLZIi3dUvdEvzcjFueGb933ex HEag== X-Gm-Message-State: ABuFfojRrgTBw/6ITuXW5dRUmtZmg2TcJVK4X3dj62WWdJBfaH6nEuyZ B8Ab4NSfuJNfbnlwKI2fpNU27T86K59II4/b+WlW+A== X-Received: by 2002:a81:25c4:: with SMTP id l187-v6mr4090311ywl.236.1537775622843; Mon, 24 Sep 2018 00:53:42 -0700 (PDT) MIME-Version: 1.0 References: <1537455973-12468-1-git-send-email-firoz.khan@linaro.org> <1537455973-12468-4-git-send-email-firoz.khan@linaro.org> In-Reply-To: From: Firoz Khan Date: Mon, 24 Sep 2018 13:23:31 +0530 Message-ID: Subject: Re: [PATCH v2 3/5] m68k: Added system call table generation support To: Geert Uytterhoeven Cc: linux-m68k , Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart , y2038 Mailman List , Linux Kernel Mailing List , Linux-Arch , Arnd Bergmann , 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 Hi Geert, On Mon, 24 Sep 2018 at 12:33, Geert Uytterhoeven wrote: > > Hi Firoz, > > On Thu, Sep 20, 2018 at 5:07 PM Firoz Khan wrote: > > The system call tables are in different format in all > > architecture and it will be difficult to manually add or > > modify the system calls in the respective files. To make > > it easy by keeping a script and which'll generate the > > header file and syscall table file so this change will > > unify them across all architectures. > > > > The system call table generation script is added in > > syscalls directory which contain the script to generate > > both uapi header file system call table generation file > > and syscall.tbl file which'll be the input for the scripts. > > > > syscall.tbl contains the list of available system calls > > along with system call number and corresponding entry point. > > Add a new system call in this architecture will be possible > > by adding new entry in the syscall.tbl file. > > > > Adding a new table entry consisting of: > > - System call number. > > - ABI. > > - System call name. > > - Entry point name. > > > > syscallhdr.sh and syscalltbl.sh will generate uapi header- > > unistd.h and syscall_table.h files respectively. File > > syscall_table.h is included by syscall_table.S - the real > > system call table. Both .sh files will parse the content > > syscall.tbl to generate the header and table files. > > > > ARM, s390 and x86 architecuture does have the similar support. > > I leverage their implementation to come up with a generic > > solution. And this is the ground work for y2038 issue. We need > > to change two dozons of system call implementation and this > > work will reduce the effort by simply modify two dozon entries > > in syscall.tbl. > > > > Signed-off-by: Firoz Khan > > Thanks for your patch! > > > --- /dev/null > > +++ b/arch/m68k/kernel/syscalls/syscall.tbl > > @@ -0,0 +1,369 @@ > > +# > > +# Linux system call numbers and entry vectors > > +# > > +# The format is: > > +# > > +# > > +# The abi is always common for this file. > > +# > > +0 common restart_syscall sys_restart_syscall > > Why the indentation by an "odd" number of spaces, instead of TABs? I'll check and fix ASAP. Hopefully I can post a clean (almost) patch series within couple of days! - Firoz > > 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