From patchwork Thu Dec 20 23:28:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10739685 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 41F2F746 for ; Thu, 20 Dec 2018 23:29:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3209828875 for ; Thu, 20 Dec 2018 23:29:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 25D4A2887F; Thu, 20 Dec 2018 23:29:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3C5628875 for ; Thu, 20 Dec 2018 23:29:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390314AbeLTX3J (ORCPT ); Thu, 20 Dec 2018 18:29:09 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:42662 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731142AbeLTX3J (ORCPT ); Thu, 20 Dec 2018 18:29:09 -0500 Received: by mail-qt1-f195.google.com with SMTP id d19so3785872qtq.9; Thu, 20 Dec 2018 15:29:08 -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:from:date:message-id:subject:to:cc; bh=4CvCObwXu95rgJLvLMmWf3n9NEsQDPtvpe/D14urWvc=; b=A/ZrLXScRcOkeo5aVbviGVvGMTIQmDYYuQqP45bZrxg/84Nx/iFdNYbLOSdtkRCTt1 eAqqkpccAbdvoQ9LW35u1h25fOPWDTDtiSYHrjG7qUFAPJAtm4j9FizqC98gZRsVTgCh S+TlmtHr8A1HDfyi2o5cqo8LP3TtxJSnFsy11qdl/ytugTkWfvLXk1/S2RlEK4wHmkXW g0ALVbXsJvBhhRAOjHaWR8QSfuXrWIMqEa8P/o1AvoufWg2NVyd5RpHoUe7OZkrod2Cf NzpCkC3aMXG/0tT/heaEQ71ci/8pzLR2y7cxbaaLE7WSX9/+SC68dEKH5+fArhK8PWoq 9K+g== X-Gm-Message-State: AA+aEWbEL5ZNo2Ps+L2/v3qlRYVomIhH1vY+5NkJpWfS6fItba6Dsst5 CUqMOjRzbpfqneDHMi2O+aXAcygvS8MfpQrmIv4= X-Google-Smtp-Source: AFSGD/WlrOSAoac/sc+Prmb0MKExEghF115xcbswQK4LqIRMzFgM6I7Jsdn55mXP5GARaHrbSlyxBi/n81h5mCbmx4Q= X-Received: by 2002:ac8:7451:: with SMTP id h17mr178113qtr.319.1545348547606; Thu, 20 Dec 2018 15:29:07 -0800 (PST) MIME-Version: 1.0 From: Arnd Bergmann Date: Fri, 21 Dec 2018 00:28:51 +0100 Message-ID: Subject: [GIT PULL] asm-generic: syscall table script for arch/sh To: Linus Torvalds Cc: Rich Felker , Firoz Khan , Linux API , y2038 Mailman List , Linux Kernel Mailing List , Linux-sh list , Yoshinori Sato Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The following changes since commit 2e6e902d185027f8e3cb8b7305238f7e35d6a436: Linux 4.20-rc4 (2018-11-25 14:19:31 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git tags/asm-generic-4.21 for you to fetch changes up to 2b3c5a99d5f314960e00950c1782eac9361de30f: sh: generate uapi header and syscall table header files (2018-12-19 17:54:40 +0100) ---------------------------------------------------------------- asm-generic: syscall table script for arch/sh I worked with Firoz Khan to change all architectures to have their system call tables (syscall.S and asm/unistd.h) generated by a script from a more readable input file the same way that we already had on x86, s390 and arm. I offered to take those conversions through the asm-generic tree that did not get picked up by the architecture maintainers, and fortunately all but one have now been accepted into arch maintainer trees, so this branch only contains the conversion for arch/sh/, with permission from Rich. The conversion does not include the old 64-bit sh5 architecture, which has never shipped and not even compiled in a long time. The table in include/uapi/asm/unistd.h is also not included here, as Firoz is still working on that one. It will have to wait for the next following merge window, hopefully together with the addition of the 64-bit time_t system calls for the y2038 work that led to the system call table rework. Acked-by: Rich Felker Signed-off-by: Arnd Bergmann ---------------------------------------------------------------- Firoz Khan (3): sh: add __NR_syscalls along with NR_syscalls sh: add system call table generation support sh: generate uapi header and syscall table header files arch/sh/Makefile | 3 + arch/sh/include/asm/Kbuild | 1 + arch/sh/include/asm/unistd.h | 2 + arch/sh/include/uapi/asm/Kbuild | 1 + arch/sh/include/uapi/asm/unistd_32.h | 4 +- arch/sh/include/uapi/asm/unistd_64.h | 4 +- arch/sh/kernel/syscalls/Makefile | 38 +++++++++ arch/sh/kernel/syscalls/syscall.tbl | 392 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ arch/sh/kernel/syscalls/syscallhdr.sh | 36 ++++++++ arch/sh/kernel/syscalls/syscalltbl.sh | 32 +++++++ arch/sh/kernel/syscalls_32.S | 387 +----------------------------------------------------------------------------------- 11 files changed, 514 insertions(+), 386 deletions(-) create mode 100644 arch/sh/kernel/syscalls/Makefile create mode 100644 arch/sh/kernel/syscalls/syscall.tbl create mode 100644 arch/sh/kernel/syscalls/syscallhdr.sh create mode 100644 arch/sh/kernel/syscalls/syscalltbl.sh