Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2575347imu; Thu, 29 Nov 2018 07:07:15 -0800 (PST) X-Google-Smtp-Source: AFSGD/WpYscaUT5jllVO4XUqezDu+dZIAPehHABmY6bNgYhfpK67UTpnYFQzr4LzZXccalMg4fQv X-Received: by 2002:a17:902:7e4f:: with SMTP id a15mr1770987pln.149.1543504034988; Thu, 29 Nov 2018 07:07:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543504034; cv=none; d=google.com; s=arc-20160816; b=MjJ8bRXXCQOGuB3hczV6kZjh2RDaPuf8yd0SxQ+coE8e0GDNCEGPFP8jLZs0hjum1Q vW8SQW+MF2vFjrLcpug/dZx10b7bVp9hk5GI5R/LIpx5grOnHt1NhlrNH1KX7H9z7D/P 5DO4cLIXTSiu0K72c692ZErVxMEaDeaTlkHLHJG3kxSIjbx6xILLpF/3Xxt5qzvplNSc sV8V5jzAH0jg/kdOOvDok3tsoSxyxZD8mXm7tSY1BpojNWsAE+3ToSbH8CaPUKOi0LS6 zN3othumYeXNUePRmqRfgjrB6AwfaQIrUCvnMFX/DVhoLRXmI/TFtH5c8djz5OMmz1zM LPsA== 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=zwMsN0MymMapX+iJ/bF8gBhwCFKK8oi/Umouxn9UCY8=; b=XHs/MqzicQKsry3FDN+Agrd8NUTwxg5TTaEvpWevwZCIWXmu7Rhh5IeKHirLrnzlN7 nsS/6X0Y7Ywf736Cchqek60mjMKdGzXLJHh/GrGFqk1sPBFQ0ptkh6mMZRyfXApCWXBm zPuvw7iUVfRvoN9/vE7M19Smu1NE+zvKNUjY47RhJB+Ccj/3T600h0YTYscGKmF9KxCT wimw/botd00khCQt0ssd6hzQCk9cXVpYOyQoVUgxxdGFmDcmuCRCzuJogkk5/bvMxbLJ hPHWR6Dvf4NGr1W3gRB55eBtWBffXbqe7u9SR78Ms+Fc39p8MmjD8iV13vU/ZXhKmw0h nxRQ== 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 s73si2214717pfs.54.2018.11.29.07.06.59; Thu, 29 Nov 2018 07:07:14 -0800 (PST) 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 S1729953AbeK3BVr (ORCPT + 99 others); Thu, 29 Nov 2018 20:21:47 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:46186 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728865AbeK3BVq (ORCPT ); Thu, 29 Nov 2018 20:21:46 -0500 Received: by mail-qt1-f194.google.com with SMTP id y20so2045382qtm.13; Thu, 29 Nov 2018 06:16:15 -0800 (PST) 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=zwMsN0MymMapX+iJ/bF8gBhwCFKK8oi/Umouxn9UCY8=; b=rfNjnxdPndcIHCAZ73zOvPq6Rbrj3hSFLmrcTK8Akh/2vSMg7MjNgOeKRiHHZBOym0 NDu7wQR7/9kulPJK9ypYePU/MtcQcxqKJx8791+VsPWN2kNRVe+HzcSQ/AAwO8JyHv+6 8UybqmkyjLQi2OGp2j5OfZ/0G2Zo4585NTXtk5W1IJn6CDt9xBwX0KNl8BvSDvJuqlUb /RV4A7IMEPhZdsMqcSHPdplfW8vqhfykH8MoaG+Dwn58XhH1SvMSBCtLUqT0eoD1x6cm iy0tzpd6e9WFSNFGaVvZ57C9ctFDxmfAuPCG6l4YQELfPHvfK7MDdKt3p2rpHgIKQhJm 3gzg== X-Gm-Message-State: AA+aEWZMzHdSSIyvin+w3fOpsxe7R3eioUzSUKnSFuXGxwUADruO3AMF UpZ/QKLDD8K5ByOnHJ8/TPlypdWWXNaTHBkUAn0= X-Received: by 2002:ac8:2c34:: with SMTP id d49mr1581648qta.152.1543500975228; Thu, 29 Nov 2018 06:16:15 -0800 (PST) MIME-Version: 1.0 References: <1543481016-18500-1-git-send-email-firoz.khan@linaro.org> <1543481016-18500-6-git-send-email-firoz.khan@linaro.org> In-Reply-To: <1543481016-18500-6-git-send-email-firoz.khan@linaro.org> From: Arnd Bergmann Date: Thu, 29 Nov 2018 15:15:58 +0100 Message-ID: Subject: Re: [PATCH v3 5/6] mips: add system call table generation support To: Firoz Khan Cc: "open list:RALINK MIPS ARCHITECTURE" , Ralf Baechle , Paul Burton , James Hogan , gregkh , Philippe Ombredanne , Thomas Gleixner , 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 Thu, Nov 29, 2018 at 9:44 AM Firoz Khan wrote: > > The system call tables are in different format in all > architecture and it will be difficult to manually add, > modify or delete the syscall table entries in the res- > pective files. To make it easy by keeping a script and > which will generate the uapi header and syscall table > file. This change will also help to unify the implemen- > tation across all architectures. > > The system call table generation script is added in > kernel/syscalls directory which contain the scripts to > generate both uapi header file and system call table > files. The syscall.tbl will be 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. > - Compat entry name, if required. > > syscallhdr.sh and syscalltbl.sh will generate uapi > header unistd_64/n32/o32.h and syscall_table_32_o32/- > 64_64/64-n32/64-o32.h files respectively. Both .sh files > will parse the content syscall.tbl to generate the header > and table files. unistd_64/n32/o32.h will be included by > uapi/asm/unistd.h and syscall_table_32_o32/64_64/64-n32- > /64-o32.h is included by kernel/syscall_table32_o32/64- > _64/64-n32/64-o32.S - the real system call table. > > ARM, s390 and x86 architecuture does have similar support. > I leverage their implementation to come up with a generic > solution. > > Signed-off-by: Firoz Khan Ah, I see you added the syscallnr.sh script from ARM. I guess that is one way to handle it, and the implementation seems fine. It would be good to mention it in the changelog text above though. Arnd