From patchwork Wed Nov 14 06:34:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 151034 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5324421ljp; Tue, 13 Nov 2018 22:35:29 -0800 (PST) X-Google-Smtp-Source: AJdET5dIX4jPmZdrm3lMhIgtIpgC+7hGAlsHXOiZRMI9rlDhcxsUzdKMlfd5tiD0sxp0U9xpiZpi X-Received: by 2002:a17:902:3fe4:: with SMTP id a91-v6mr645626pld.295.1542177329533; Tue, 13 Nov 2018 22:35:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542177329; cv=none; d=google.com; s=arc-20160816; b=TQRwIUdV9DzUrBGrGWx/JYJbZG/srMQ2ZbE7Do62oRAru/vDdA1ZzZj7JFah2lfGa9 PEJ7SaNRVyCqIJeter1gO4Yt/PE0iaYJojLAqDtAOOHpLtOsKjpjH8pvtGI4NZhtPufy wYel2nTEftJyrGfZ36usuMmUmGxkGeH6rpQwvoZ+tiiXDsDF5v5zQTDwSaVzvM9zLEUL d4zVbDdWrOfbNFiA92NUOuFLDax+kdQ10VEbIjdKg5vFVYZ/ZyQiJ3hIzLFblWdsrqlT /yu0gUMYT5Qh1imCiiDB5MUPZBS0rmAWbOmZMKf2kQOzGhcg1hrOfeNrFZI8FUwg0O7K gmKA== 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=kMnO6BDIsJ30LH5c9BjM4P+/oJIF7vjQsNdnpI3Mr50=; b=vQrvcH2bpwMJphKrEhZXfUsxseK+Hx9Q4NfZ2PHSyC8gG02AKbkkh4JVcNEgEfIzJq G7I7yAt2+/WrUBfkgtyNF20wffi0MV96hPL8Wb9bKIL0B6e/VJ4JsVP+Do4eOsUkeYCj KRQqnMzBaJ88a6n2ckt4Z8JkJRQfaASHNExDKzOzT1hT0EeAOvajW7Jv214BaJZlrf4r 5yAEkWV5IG6PYhkkJCvQVwH9g23AnXeh9MCWaCWGXeC73Be782OPcekhIHSVz1USpySH OngMdl+Xs413dEQ36t+iieDUbs9h3PPISAIid0YCrMDEKP+PA9DSk7v1BrIIF6DA5edN EaSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TgH7DnZ9; 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 i186-v6si13634468pfg.265.2018.11.13.22.35.28; Tue, 13 Nov 2018 22:35:29 -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=TgH7DnZ9; 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 S1731471AbeKNQhR (ORCPT + 32 others); Wed, 14 Nov 2018 11:37:17 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:44220 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727375AbeKNQhR (ORCPT ); Wed, 14 Nov 2018 11:37:17 -0500 Received: by mail-pf1-f193.google.com with SMTP id b81-v6so6889052pfe.11 for ; Tue, 13 Nov 2018 22:35:25 -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=kMnO6BDIsJ30LH5c9BjM4P+/oJIF7vjQsNdnpI3Mr50=; b=TgH7DnZ95OGJBBG6jI8YaodhraQ7LsfrBfI1+BrxD+b27jFPURb+7jJX8YA71GVMJs img0aCfDD/O0XLVW2vDMbXNY7/Kd5Q/19YIteIU0n4jRZtb+q88urFnOuPeqMBOYs1V+ FhDVEaaVNTTH8XFtlf/0ApvYEq6Wjtdu0QH0E= 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=kMnO6BDIsJ30LH5c9BjM4P+/oJIF7vjQsNdnpI3Mr50=; b=lunGNzkwg6skR/0G78bmIXd9851JCk0skcoCny3yjY4b/eM89LHtrtl3Lk8xMpsFPb 2ZaPMoSP9f15V7QOi5hoTxYCBlYFhtW75s7LlMzx3L4+iD6LH91dZLXC5CQow3VRDhRZ Dnpo4+2n+plCxL2iPEL1QkfeD9492sQiOTej8rxHyxqsZtmqSWz9Y+D1Z1Wa1dmkAQsu Lsmq1/auH1QKNgwVWy8XxqKlkuoOCnWvj3dSg0BaVLsd1XC/ZoQUp9mUhmmykW8/0cMz 1Ivyl3/dPuTUxsDPuRMihgoB8afmTR2lzBEGIYCtv7nmra1ixgjElYiBZm7u2XEjxJju OU2Q== X-Gm-Message-State: AGRZ1gIToGW8YpSqoDXqyFSMb8FxbeDCvB9wDfWg4qnGTW4wtHrNrec+ OEPx6clXZqja0LUBfWcT60ZjlA== X-Received: by 2002:a63:2ad4:: with SMTP id q203-v6mr618192pgq.356.1542177325572; Tue, 13 Nov 2018 22:35:25 -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 l26-v6sm39097318pfg.161.2018.11.13.22.35.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Nov 2018 22:35:24 -0800 (PST) From: Firoz Khan To: linux-parisc@vger.kernel.org, "James E . J . Bottomley" , Helge Deller , 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 v7 0/5] parisc: system call table generation support Date: Wed, 14 Nov 2018 12:04:56 +0530 Message-Id: <1542177301-25844-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 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 (5): parisc: move __IGNORE* entries to non uapi header parisc: add __NR_syscalls along with __NR_Linux_syscalls 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 | 382 +------------------------ arch/parisc/kernel/syscall.S | 11 +- arch/parisc/kernel/syscall_table.S | 459 ------------------------------ arch/parisc/kernel/syscalls/Makefile | 57 ++++ 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, 531 insertions(+), 836 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 Acked-by: Helge Deller