Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2229797imm; Mon, 24 Sep 2018 00:05:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV63IC50B6pUoyKKveEjwEcLlsHY8mawMpHOT8PIC8yRwIAKXXMkVy30c16lrqmQTwWHcS9a4 X-Received: by 2002:a65:40cd:: with SMTP id u13-v6mr8165331pgp.334.1537772716437; Mon, 24 Sep 2018 00:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537772716; cv=none; d=google.com; s=arc-20160816; b=yTrfsd8c+i9ntN9DkYwgo2ejS7T2JULCuK6rt8/KSVv/JlBIK+LV/0+L4voVU4RUYJ 6YcL5lK+v5gfn70bNXQPbu64BFmtbCZOh0zHp/PygRkWD3irbO88Z6bT4n9YiorQTy1q VKp4rzKSka59j8hQfP6hl5FmqYEcRVeF+Z/50De4yXXTlyvpZGjgFXbtJZtQihL/LWTK 7/57fMOM9BrFYx75FR8OHfpy54IAi0xNU+RvfHEmYXV0FtmtpsaVn1wxZhrZkjPTkSg0 ++5dhLxJtQvmZW/rfRYUdrqeRukm1JeDVW6Wv1aJ83FBkfOehgvdykMq0W9QFLyjjbYp q7Rw== 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=gi07MnAHod4ZnR+PAFVwtRh9G8UYQNYuxGx9SKAjzqY=; b=KuCmOGV50fDMolMUj2IiMolvQYrj4ZXc50eRo+tF5W4awG4nv0du5J0dwjML/rd8ru lSta1sR2CXIAxJCzOc/knR/sqbgJe6OZHIoM92siPGhsA+IMx9jETzCL1fzAx9Md0i+N MKrgtEvrfj5jID3FDAQBQ1F6q1kRsta2TcW6MsjERE1NW8Zd3z9JWA9DUnfeIMC2nBPy o5JROYNz4OSL52t/ShwY8YzkPOP9TWkYZXfL0lJSJD/6QCLbsJUCXrWjjq/0HhfBFRie 2ZRZiUpV5p/sR8Fi6OXREF3vrWnpurokCmXvxPBEJTrIREUAOgjrkX0BFVk0jckJfMM3 3FFQ== 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 t1-v6si6203284pgi.439.2018.09.24.00.05.00; Mon, 24 Sep 2018 00:05:16 -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 S1727665AbeIXNEd (ORCPT + 99 others); Mon, 24 Sep 2018 09:04:33 -0400 Received: from mail-vk1-f194.google.com ([209.85.221.194]:40289 "EHLO mail-vk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727389AbeIXNEd (ORCPT ); Mon, 24 Sep 2018 09:04:33 -0400 Received: by mail-vk1-f194.google.com with SMTP id q184-v6so3803348vke.7; Mon, 24 Sep 2018 00:03:54 -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=gi07MnAHod4ZnR+PAFVwtRh9G8UYQNYuxGx9SKAjzqY=; b=RRx7p570R/P5SK7GxgRkOhh7/iTRZwFIMlSHUP6JUArmLgy84tP0t+j2SDP9iP2Kq3 pn+giHxzNSPp6YkhaYGOb5oiEwtK7vleIEGVDklyHTpCXPz40ijDnkqtUu2Da6Zjubfz qKg9WsSB7+tdAeqIA16G2kbBpduIKz4oKnqPd9x/9YlmjVTeoVaGGmETwwxtyYqWoNGx 0Z15fXzS2dbgKd3l2MQ/oFSCy4Nw5U1NgyqPu3s4hZENFNHIGBy4/fHKmxMn8o0/fHRi uBQtqQnbgz/nVZ4xVNPLxdlM5I4SKukTrRxlr3he1wM1vCXbQJ/GaH3YwNqwRHOwJTqv MtiQ== X-Gm-Message-State: ABuFfoh+LmGqEm4/3ltyPGYiU38nmfwJgRx1rvZxrqFB1tfkqlaxBCef MN3nfR9rZBdOSbvmbFhqf0QsvQIrVmN0QrEVRV8= X-Received: by 2002:a1f:cc41:: with SMTP id c62-v6mr2192081vkg.74.1537772634085; Mon, 24 Sep 2018 00:03:54 -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: <1537455973-12468-4-git-send-email-firoz.khan@linaro.org> From: Geert Uytterhoeven Date: Mon, 24 Sep 2018 09:03:42 +0200 Message-ID: Subject: Re: [PATCH v2 3/5] m68k: Added system call table generation support To: firoz.khan@linaro.org Cc: linux-m68k , Greg KH , Philippe Ombredanne , Thomas Gleixner , Kate Stewart , y2038 Mailman List , Linux Kernel Mailing List , Linux-Arch , Arnd Bergmann , Deepa Dinamani , marcin.juszkiewicz@linaro.org 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 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? 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