From patchwork Wed Nov 21 04:14:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 151641 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1443461ljp; Tue, 20 Nov 2018 20:15:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/VuCvRyARJelX6T+sxaaQ2f7P+QEig9+wTS6tMO9vFcMlprpZmgPAvt8qLt8dCUM6j44360 X-Received: by 2002:a63:ba48:: with SMTP id l8mr4455928pgu.72.1542773704495; Tue, 20 Nov 2018 20:15:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542773704; cv=none; d=google.com; s=arc-20160816; b=P8+ooueIofuMYHA3YwIhQaAnNJ3m1vDZK51pR4aTKx0yQsTZmD03u1mwuk0VIkPtFZ rYObsqTFDipShzrBNHDG7378wL43HvEuLDnoCBal6IaoD2+cDy2ZSKMEs1w5I5wYSQEz nTriB5BdelIeDK6guy4vq/RQK8BvuS+lRDM+iKgj6v8iNJd9DyL0kbhSLnZF+kqiARQv j3bb9i07egFdR0IF7Wr/rvEnP9Buu1wnkcPXxWbOPB/tSlg4rbhn0Q1WT7HRUXqSOE6H SAuS+ZSKf17v+vN0WVNFdjUVygKYLgJg1YIswzzW6zz9Yl63ArDrgBD1Obyq6ST1k/AP YdTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=tcWMYlNQtSLN7aZEXs1ixCkzdZuDoypH0iDD9Tjodp0=; b=N/b3rbLn40Tvh65Hn2jpJzxrMBtg9q9TYbHTjOs+RCQ6etlZ8P0nLE7pUMICwBXw+N /LICkb0Ia+9k+2Fxv1FCUu/aUjmguSn47CQB3S/xp6XWTjKvB1N7dz2rVqDViwci2Ouf knG5aUYpKdLs3mdbgnNQan8a+NL3qu+7fm1Pq8IpCic1hlSwk4iP84Vhg3I+AAempL95 Mi3shV5WUfVEP1NXH+KyPjLb3qMPUVgiWsUKKD/broLwLK5Vh7722sKEEVOkoXR0dmOW ItgO5/YDoB2SGN87ILauIKMVhxaJeu13rsGokdXogaXfDiILirVT2hMu8OIaRRluJ5Pi YCcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jxzM8Sk+; 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 44si2847076plc.110.2018.11.20.20.15.04; Tue, 20 Nov 2018 20:15:04 -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; dkim=pass header.i=@linaro.org header.s=google header.b=jxzM8Sk+; 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 S1727317AbeKUOri (ORCPT + 32 others); Wed, 21 Nov 2018 09:47:38 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:35643 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726343AbeKUOri (ORCPT ); Wed, 21 Nov 2018 09:47:38 -0500 Received: by mail-pl1-f196.google.com with SMTP id v1-v6so3509892plo.2 for ; Tue, 20 Nov 2018 20:14:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=tcWMYlNQtSLN7aZEXs1ixCkzdZuDoypH0iDD9Tjodp0=; b=jxzM8Sk+CWAKgVVDzdr1nmmytbX1BKGYjuTucyyobwfXqcyJsben6UbIWIHT6qdxWS ZSvk5Vj7MuAwnW6HXCgrWhAn6MrcUex0wuhZJnWb/UtovfP7k5NhX6a9ylFrVdyaWZzH kD6ZQtN8RjgmBgEbKegG77zY4bn4rbOT8bJr0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tcWMYlNQtSLN7aZEXs1ixCkzdZuDoypH0iDD9Tjodp0=; b=OGbhpcXEcZfuUcB3fBMdD1CBFgcg1mYrxGW/0xVCR0UsEtAOJtlbfhWyTsn2Sy/L1F 2NQv5uTSwA/Ru089wA7k30Lz1ICGIlq6FaceRhJ8ZAS9SSIIa2gGXUuwSlS+ue7wpQui wAWw+tqBM2HLp/C4YEuntehqlm6gMFUM0vDlr565Q2HYqn414Xxz4uxJgF3YnTXkH2hS Sj77Pc1Q45tTUDBgeWeNLL7Kv4lpFYDz1/aywrWCSS50+VG7qQ58cbQr6l1g68CTl7Mf bUGXFQHjrKMk3rf5XNJKZWl47IzhsbDEfJHOBkNnU2FjvlGr1Sw0r/OCAn9PJ0QWZ8wj 1Cmg== X-Gm-Message-State: AGRZ1gL3mEtWHxMyBJZXyjOvJZgvVxQgzso3E1oezjVanHlfSss0lreP K77+WEHdhYLC45xVfCznsjBrmA== X-Received: by 2002:a62:5ac3:: with SMTP id o186-v6mr5325983pfb.40.1542773696630; Tue, 20 Nov 2018 20:14:56 -0800 (PST) Received: from qualcomm-HP-ZBook-14-G2.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id v124-v6sm10818712pfb.182.2018.11.20.20.14.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Nov 2018 20:14:56 -0800 (PST) From: Firoz Khan To: linux-parisc@vger.kernel.org, "James E . J . Bottomley" , Helge Deller , Geert Uytterhoeven , Thomas Gleixner , Greg Kroah-Hartman , Philippe Ombredanne , Kate Stewart Cc: y2038@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, arnd@arndb.de, deepa.kernel@gmail.com, marcin.juszkiewicz@linaro.org, firoz.khan@linaro.org Subject: [PATCH v8 0/6] parisc: system call table generation support Date: Wed, 21 Nov 2018 09:44:24 +0530 Message-Id: <1542773670-25460-1-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The purpose of this patch series is, we can easily add/modify/delete system call table support by cha- nging entry in syscall.tbl file instead of manually changing many files. The other goal is to unify the system call table generation support implementation across all the architectures. The system call tables are in different format in all architecture. It will be difficult to manually add, modify or delete the system calls in the resp- ective files manually. To make it easy by keeping a script and which'll generate uapi header file and syscall table file. syscall.tbl contains the list of available system calls along with system call number and correspond- ing entry point. Add a new system call in this arch- itecture 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. ARM, s390 and x86 architecuture does exist the sim- ilar support. I leverage their implementation to come up with a generic solution. I have done the same support for work for alpha, ia64, m68k, microblaze, mips, powerpc, sh, sparc and xtensa. Below mentioned git repository contains more details about the workflow. https://github.com/frzkhn/system_call_table_generator/ Finally, this is the ground work to solve the Y2038 issue. We need to add two dozen of system calls to solve Y2038 issue. So this patch series will help to add new system calls easily by adding new entry in the syscall.tbl. changes since v7: - removed __NR_Linux from uapi header file. changes since v6: - changed from generic-y to generated-y in Kbuild. changes since v5: - optimized/updated the syscall table generation scripts. - fixed all mixed indentation issues in syscall.tbl. - added "comments" in syscall_*.tbl. changes since v4: - optimized/updated the syscall table generation scripts. - removed __IGNORE entries which was added in v2 to suppress the warning. changes since v3: - optimized/updated the syscall table generation scripts. - added missing new line. changes since v2: - updated the syscall.tbl file by including missed entries. changes since v1: - enclosed __NR_sycalls macro with __KERNEL__. Firoz Khan (6): parisc: move __IGNORE* entries to non uapi header parisc: add __NR_syscalls along with __NR_Linux_syscalls parisc: remove __NR_Linux from uapi header file. parisc: add system call table generation support parisc: generate uapi header and system call table files parisc: syscalls: ignore nfsservctl for other architectures arch/parisc/Makefile | 3 + arch/parisc/include/asm/Kbuild | 3 + arch/parisc/include/asm/unistd.h | 8 + arch/parisc/include/uapi/asm/Kbuild | 2 + arch/parisc/include/uapi/asm/unistd.h | 379 +----------------------- arch/parisc/kernel/syscall.S | 11 +- arch/parisc/kernel/syscall_table.S | 459 ------------------------------ arch/parisc/kernel/syscalls/Makefile | 55 ++++ arch/parisc/kernel/syscalls/syscall.tbl | 369 ++++++++++++++++++++++++ arch/parisc/kernel/syscalls/syscallhdr.sh | 36 +++ arch/parisc/kernel/syscalls/syscalltbl.sh | 36 +++ scripts/checksyscalls.sh | 1 + 12 files changed, 527 insertions(+), 835 deletions(-) delete mode 100644 arch/parisc/kernel/syscall_table.S create mode 100644 arch/parisc/kernel/syscalls/Makefile create mode 100644 arch/parisc/kernel/syscalls/syscall.tbl create mode 100644 arch/parisc/kernel/syscalls/syscallhdr.sh create mode 100644 arch/parisc/kernel/syscalls/syscalltbl.sh -- 1.9.1