Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp280089imu; Thu, 3 Jan 2019 19:44:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN7/mXz7mndlR0r1TpRS55Bd/CAn8THe4XykJLUsZjeXWj4otVsrTP6o8RDqycsTJHWQMOt/ X-Received: by 2002:a63:26c1:: with SMTP id m184mr264138pgm.367.1546573475343; Thu, 03 Jan 2019 19:44:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546573475; cv=none; d=google.com; s=arc-20160816; b=sr2RsTn30g52Or076cFxlFi5AkN9mEcn/NnCUzr8PpLvkt9muGqgClmSSf+M05xy2s ZValcKL6VkokJx6Xtf/w5oWzoSeGlfb+QBg2Mw6zS+E0uKoY3qENJsu+lSeVFw4M/u9u 4+7zKWAaEj+2YJAQSmKCvapyBuCwftNk1Ac+uIiUYXVioFMwwZkvHfH+pzRCGZclHfVN 574a6NiTJgFtdpue3ZsOSKAqFdn0kgys/WqPvJ8jw7CYRbOXgwN7ojPgDIX6EirhSlPR dkzl6vaLf2lJW8H+7W1pn6fDTXwhkNeUHCjADF96pc3QtqSjB4CRV3TRAJeB5hc33bTX q0eQ== 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:dkim-signature; bh=dKFfDtyw0jobwE9IpFeHnlj2yY9oKEKBvvvLjdeRxj4=; b=tmhdhtzBDOoheTwXB/apgS6Kf/KvfOYjl/iKzePyVN6zZzBLrAU1g7ewqth3VYi+pL iB0Mdg1tzT1szk5iMD6y04zqfTwAb3CXTz03RybAA12xfJNgQzc0nLYMVOWMKmKA72pM RjqJNAjM4TxYkI6CCywd6psihX9qTzYb5M+AyIE42/5ChNwNDG2HKUlNvh938Rl74Kck OZ9/BgOgZQuwUEk8q/jvlP0qyQlEHl3Xpp+Cy949rd2My/D8ebPfMQgQemCDXAuL2O2w 37EOKyL0vDVYo3F4sg/2wl31bXH7JM3UUX9LY+tfPvGwZtd74S5UR+ARuBpGVfPIhlJg 0rew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QtQ6EHfx; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s38si2572604pga.38.2019.01.03.19.44.18; Thu, 03 Jan 2019 19:44:35 -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=@gmail.com header.s=20161025 header.b=QtQ6EHfx; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728635AbfACWov (ORCPT + 99 others); Thu, 3 Jan 2019 17:44:51 -0500 Received: from mail-yw1-f65.google.com ([209.85.161.65]:35321 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728419AbfACWou (ORCPT ); Thu, 3 Jan 2019 17:44:50 -0500 Received: by mail-yw1-f65.google.com with SMTP id h32so13875355ywk.2; Thu, 03 Jan 2019 14:44:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dKFfDtyw0jobwE9IpFeHnlj2yY9oKEKBvvvLjdeRxj4=; b=QtQ6EHfx+ee/NcNzvKvsiYN5dl/PLMrYR6isRV4w4YN9O7Tktw8s4Fr+PK3R5jGYtf XPLx1oniPgdbtil+qG93cDLA9bv5aZd2QTTiPeruk4g9VRrtQGFH4ZZJbcAdh5I/R7D0 PJRW2XVqLmldFDl0TXT1SRSQE+7JRIlNFIZqOhBIUcoai+iX8EyTtVGGT68DoZ425Q3J bKeCj+dYa7240uxBdTV+yiHA9x6QJse8fyeM+a6F2v0vvP1p7gteNu3IlzCo5LZ/9GM5 fMYEDtAb8OjE5Jdh+94XnOFpE0E+GdmGEUu8uDmEbcuMEPnCeTf4gZD6ed7OsT6g4qSP SLug== 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=dKFfDtyw0jobwE9IpFeHnlj2yY9oKEKBvvvLjdeRxj4=; b=bhq2f716LLzFcy8SBNToRtlFrykPMrMXHcZBbJ5NQGVP4zLGiD/B67EtrhON6z0snL oYAnhbp/Xc56H7i+SW35Tjz0SP+8JfQ10bysQuOWgeBfCbTrri9zt8egCIPCU0zNFXJb oOTKyHb10ZNUB6Ucir+62InZCfBrBPCnS9JzdW7Rlt7a52OG5gW6jQb90PHX8gSFWFnJ 7o3FpuLTFYDMOi3i/uuSz6kJAmFpqogB8s1N+aGFaam60f5VdLkFVSDyVOhKBmLO5WB3 TNJVq9yGfMqOaz8WPi4yIIM7d2z87yvh2dQQrMmQgkqVjP/RPEfaWzWaTJh/KJTYwg7l CjIA== X-Gm-Message-State: AA+aEWbqDX0pnFO0Th219PHYj2f1jLji6M+CO7XxOQZPQj/eMIlLUaT/ 4Oe/VgIKW9zW0ZolPwL1fB6zPdQK0pa79AB7v+w= X-Received: by 2002:a0d:ea81:: with SMTP id t123mr50202557ywe.496.1546555488803; Thu, 03 Jan 2019 14:44:48 -0800 (PST) MIME-Version: 1.0 References: <1546442912-20818-1-git-send-email-firoz.khan@linaro.org> <1546442912-20818-3-git-send-email-firoz.khan@linaro.org> In-Reply-To: <1546442912-20818-3-git-send-email-firoz.khan@linaro.org> From: Max Filippov Date: Thu, 3 Jan 2019 14:44:37 -0800 Message-ID: Subject: Re: [PATCH 2/2] xtensa: generate uapi header and syscall table header files To: Firoz Khan Cc: Chris Zankel , Dominik Brodowski , linux-xtensa@linux-xtensa.org, Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart , y2038@lists.linaro.org, LKML , 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 Wed, Jan 2, 2019 at 7:29 AM Firoz Khan wrote: > Unified system call table generation script must be run to > generate unistd_32.h and syscall_table.h files. This patch > will have changes which will invokes the script. > > This patch will generate unistd_32.h and syscall_table.h > files by the syscall table generation script invoked by > xtensa/Makefile and the generated files against the removed > files must be identical. > > The generated uapi header file will be included in uapi/- > asm/unistd.h and generated system call table header file > will be included by kernel/syscall.c file. > > Signed-off-by: Firoz Khan > --- > arch/xtensa/kernel/syscalls/Makefile | 11 ++++++++-- > arch/xtensa/kernel/syscalls/syscallhdr.sh | 36 ------------------------------- > arch/xtensa/kernel/syscalls/syscalltbl.sh | 32 --------------------------- > 3 files changed, 9 insertions(+), 70 deletions(-) > delete mode 100644 arch/xtensa/kernel/syscalls/syscallhdr.sh > delete mode 100644 arch/xtensa/kernel/syscalls/syscalltbl.sh > > diff --git a/arch/xtensa/kernel/syscalls/Makefile b/arch/xtensa/kernel/syscalls/Makefile > index 659faef..75c7421 100644 > --- a/arch/xtensa/kernel/syscalls/Makefile > +++ b/arch/xtensa/kernel/syscalls/Makefile > @@ -6,8 +6,9 @@ _dummy := $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') \ > $(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)') > > syscall := $(srctree)/$(src)/syscall.tbl > -syshdr := $(srctree)/$(src)/syscallhdr.sh > -systbl := $(srctree)/$(src)/syscalltbl.sh > +syshdr := $(srctree)/scripts/syscallhdr.sh > +sysnr := $(srctree)/scripts/syscallnr.sh > +systbl := $(srctree)/scripts/syscalltbl.sh > > quiet_cmd_syshdr = SYSHDR $@ > cmd_syshdr = $(CONFIG_SHELL) '$(syshdr)' '$<' '$@' \ > @@ -15,6 +16,12 @@ quiet_cmd_syshdr = SYSHDR $@ > '$(syshdr_pfx_$(basetarget))' \ > '$(syshdr_offset_$(basetarget))' > > +quiet_cmd_sysnr = SYSNR $@ > + cmd_sysnr = $(CONFIG_SHELL) '$(sysnr)' '$<' '$@' \ > + '$(sysnr_abis_$(basetarget))' \ > + '$(sysnr_pfx_$(basetarget))' \ > + '$(sysnr_offset_$(basetarget))' > + This patch seems to do more than it says in the description. Perhaps adding cmd_sysnr needs a separate patch with its own description? -- Thanks. -- Max