Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1093010imu; Mon, 5 Nov 2018 13:46:55 -0800 (PST) X-Google-Smtp-Source: AJdET5eno1fJElbbbxj7gBufZDdUjTNVV+mmqojRYwaOSPgDsjIbRprey6x3z3myuN9P3+088jx9 X-Received: by 2002:a17:902:107:: with SMTP id 7-v6mr23934742plb.267.1541454415523; Mon, 05 Nov 2018 13:46:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541454415; cv=none; d=google.com; s=arc-20160816; b=G7Y8XFdt2VsrOjTZe7BZLAojUt+oEWdiQvV7dueqct8baC4oJvnWtgOYs/dl0WcbR1 zxmTxQ3qpC+Y2n9hWXp8BqA/GgjXgdgntPVVoWPoAI816Rz0fsRZ2OlWCGkEcJlGH+ri 6kPAyghBitwmmLegOxvxYUu77jFIj+lJ2NC6+f9ZK29vkcYG8yanvcJwPPqOC1zplBae Yi7eSeuC5V69mwgkj0j1f3Vi/EJcTmrItcNEg4RKyFCM5YuDW2kharDzNKUQ0CKE3pC8 Iu7hzx0mwPIHnKvo9/fbn98H3AP4M2CMIr5NaYzM1LWdkhTfXlm98khRNy3D5ihXxkRc ORUA== 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=Dg3CM5nHGrKAtCE4EJBmrcn+B3XQaQmBjEl2eL55lEI=; b=eSzeUcq8AL2BaB4OdH1wdEc1Qv3RuOnz3Dq+BVDPfr7PB7jUhzmy9M+7sOidFebRzk X3ItU59IrUx9w/cxhk97ruaC5n6At9+fFx7ATrN0mRH54O0x5LgQe1BqwJuRV28qXicG oa70lRU9XdxavCRrIziCoS4swpMN1kfwOs1wZoExJcdgzvoqV73SAi6RqzW+LhZF4HWk ooqpG8go/gtEH8/od/vgw391HoX0UtFOAUCnMHnxfxfnoxFecxIdPBUcwinBfWhQ84ta M4nMoO0wW52V35/qJwEnB82PUDQ+R4GbKN2vfpnKWuY7luiySZT23xwkbtWAtek4RyVO J0TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Xco74WU8; 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 y191si28968821pgd.4.2018.11.05.13.46.40; Mon, 05 Nov 2018 13:46:55 -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=Xco74WU8; 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 S2387891AbeKFHGg (ORCPT + 99 others); Tue, 6 Nov 2018 02:06:36 -0500 Received: from mail-yw1-f67.google.com ([209.85.161.67]:34475 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387580AbeKFHGg (ORCPT ); Tue, 6 Nov 2018 02:06:36 -0500 Received: by mail-yw1-f67.google.com with SMTP id v199-v6so4324806ywg.1; Mon, 05 Nov 2018 13:44:51 -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=Dg3CM5nHGrKAtCE4EJBmrcn+B3XQaQmBjEl2eL55lEI=; b=Xco74WU8IKx0ww44HGAdZiHsSHuSKM9kNlkRnB2NiyRwl+aNS77lnpaCCXZyz7m75L PEftyY86NR+XS8uvKNtr+dzBD5i/WdFK4iGe9HFne8/2a41FBWh6zQn6RbNiFjsef6kq 7RJdKFISxUBebefC4rzuK2bqBHIhlj73FjUgFuOYKL7uwHK6MRQPqRnrFoJu7unK0x+5 cYsZP9RKrqF8boWbuk/qWzUO48ATam3imCBXcpgEpjdbtADSsjpyc+ySHiopnsky7qkN ZLW/sxS8iHIjJ9aA6IBnl4MUVewE2i8AF9TIw7T+nXOLGQus68FkwQCxWiZwmXWasisa UHSQ== 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=Dg3CM5nHGrKAtCE4EJBmrcn+B3XQaQmBjEl2eL55lEI=; b=kL2bPg8yRp3PMGVpiwra+H+tm1zvqJ7Hcn3jiV3c2byDFm9UE4FMF0GhbUGn+IEQ4s vFySvNcf945ICyFc2ixg6jzx/+SXJ7IhhfMhmpSmzNvSu0UeRatXOjg2byqL5Ranplqx ve7tyUKLxhBVs/3NBIDSOQrpiBTZdHgsXoH2EWPH2hR5aWLtG8KLFy/W6zL4AQMhs0Ya 2T9pfAgDWE4ap+ZjJojlgnIxEx3uEe6vuha9lWTdSuBD7x5VpjTBxYGbp0OPOmmFTp7W yPBysPp1z0PxdfO+mm8XpARWIVpLMakbwHCBfAVAKIvI7n98L+DzdJiZgP5AlPcU4s6T n7+Q== X-Gm-Message-State: AGRZ1gJ29sgZdTdb6JfCM5KxbGED17NC3pLk9qV7yBowhBa7cqMesBJ0 TZj5pyY1p+SaZswd6JAiqK11UAWzooFO+y3W8dg= X-Received: by 2002:a81:5ec6:: with SMTP id s189-v6mr3818178ywb.126.1541454290853; Mon, 05 Nov 2018 13:44:50 -0800 (PST) MIME-Version: 1.0 References: <1541080581-4072-1-git-send-email-firoz.khan@linaro.org> <1541080581-4072-5-git-send-email-firoz.khan@linaro.org> In-Reply-To: <1541080581-4072-5-git-send-email-firoz.khan@linaro.org> From: Max Filippov Date: Mon, 5 Nov 2018 13:44:39 -0800 Message-ID: Subject: Re: [PATCH v1 4/4] xtensa: generate uapi header and syscall table header files To: firoz.khan@linaro.org Cc: Chris Zankel , linux-xtensa@linux-xtensa.org, Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart , y2038@lists.linaro.org, LKML , Linux-Arch , Arnd Bergmann , deepa.kernel@gmail.com, 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 On Thu, Nov 1, 2018 at 6:57 AM Firoz Khan wrote: > > System call table generation script must be run to gener- > ate 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/Makefile | 3 + > arch/xtensa/include/asm/Kbuild | 1 + > arch/xtensa/include/uapi/asm/Kbuild | 1 + > arch/xtensa/include/uapi/asm/unistd.h | 782 +--------------------------------- > arch/xtensa/kernel/syscall.c | 5 +- > 5 files changed, 10 insertions(+), 782 deletions(-) > > diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile > index d67e30fa..1e7b179 100644 > --- a/arch/xtensa/Makefile > +++ b/arch/xtensa/Makefile > @@ -99,6 +99,9 @@ all Image zImage uImage: vmlinux > dtbs: scripts > $(Q)$(MAKE) $(build)=$(boot)/dts > > +archheaders: > + $(Q)$(MAKE) $(build)=arch/xtensa/kernel/syscalls all > + > define archhelp > @echo '* Image - Kernel ELF image with reset vector' > @echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)' > diff --git a/arch/xtensa/include/asm/Kbuild b/arch/xtensa/include/asm/Kbuild > index 82c75643..b35d2e6 100644 > --- a/arch/xtensa/include/asm/Kbuild > +++ b/arch/xtensa/include/asm/Kbuild > @@ -28,3 +28,4 @@ generic-y += topology.h > generic-y += trace_clock.h > generic-y += word-at-a-time.h > generic-y += xor.h > +generic-y += syscall_table.h This doesn't look right: syscall_table.h is not asm-generic header. > diff --git a/arch/xtensa/include/uapi/asm/Kbuild b/arch/xtensa/include/uapi/asm/Kbuild > index 837d4dd..f826d52 100644 > --- a/arch/xtensa/include/uapi/asm/Kbuild > +++ b/arch/xtensa/include/uapi/asm/Kbuild > @@ -11,3 +11,4 @@ generic-y += resource.h > generic-y += siginfo.h > generic-y += statfs.h > generic-y += termios.h > +generic-y += unistd_32.h Ditto: unistd32_.h is not asm-generic header. -- Thanks. -- Max