Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1394711imu; Mon, 5 Nov 2018 20:22:00 -0800 (PST) X-Google-Smtp-Source: AJdET5eZjh5mm1IO4A3UfZQjZuKtOI1DNBIcTX6KtvJ3Omv1qQ8DgD656PakcA5/Uvaxo8mAJLft X-Received: by 2002:a17:902:4324:: with SMTP id i33-v6mr25193545pld.253.1541478120827; Mon, 05 Nov 2018 20:22:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541478120; cv=none; d=google.com; s=arc-20160816; b=uEYzUc2DWYF0CN/+qaj+s/hu5D4fkfDzzEC4CsVZD8vSHTwmI2c/pBCv16br27Cr7h FCnhClqN+BYTXm/q9bDfu1V/B49HngvguxprfZyPUxeXYul8gExtOyk+IVnqQ6U9ruV6 smzJS9OyYq9ghDz826Pbl4jMQqXpTd57WkjKn0DsNidxptLgLpEq2RZ4BVd45mnXtALv lnINHnoNk2VzZOjvpaLsbm7nrQF4e9qSiYkctZvWllc3R0/lEL+X4QeT2DLf3AXTt2WY RdhSs1fPinjopN6t0NGO10pdZnKCYy3DI4LiuPbyyPsBOHNEtZL1vZdFrsPpaJlEidrj 7Yiw== 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=p1Ju3WnpAGSkq5nj5+rrfGeGgDJ9/WIEnjPGnU+mlrc=; b=Sxl7xGPd9UJ7Bdeq2TsfdQjuMj/7IgnetE4kCntlbWhPQWoDiv1smsA7BeMQhrtOWq iB7G5Mz16HHLRYFGAw52bXtkgoHNPqM72IWCYQvSyb88vdMob+KXekKD3Ek4Zx0hZ50q 65JbtEAKBUdORGSlYaHHsp6rpoSWqRyLJHq7d5J1FwG7KasJYqKLcKpWDmHsC46SMwOj mD2XBYlgUQFcPWv3rSiICIUWnYUVueE8dgsT49ONY9ReY+QSv6Ns3svPdfmwKJ+14+Lb L0LzW649FJ4GUGsvRQBnFvDHSseVbQqsRCUrdiYpp95Vs5cgH1hEaKwW49PkmNisZQUT Sc9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dTjpEyPG; 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 b137si12741784pga.394.2018.11.05.20.21.44; Mon, 05 Nov 2018 20:22:00 -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=dTjpEyPG; 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 S1729416AbeKFNoi (ORCPT + 99 others); Tue, 6 Nov 2018 08:44:38 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:38402 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726419AbeKFNoh (ORCPT ); Tue, 6 Nov 2018 08:44:37 -0500 Received: by mail-it1-f194.google.com with SMTP id k141-v6so14137018itk.3 for ; Mon, 05 Nov 2018 20:21:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=p1Ju3WnpAGSkq5nj5+rrfGeGgDJ9/WIEnjPGnU+mlrc=; b=dTjpEyPGJ5FaXu6CHkRhoCMIMBJ76xRDhpEUTix0KXCwPFSK3DaQ7gJlxES3LA8cmW 2TtKyENb30bBXdOBs591VJmR/emIcunQjqmfmRipeilLUVst3rPzcgY9vISDVFd/pBD0 itGWrEesXbAJhpgoCMkF5WcJ4pjt46Z3TAiK4= 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=p1Ju3WnpAGSkq5nj5+rrfGeGgDJ9/WIEnjPGnU+mlrc=; b=qGr4fW2YiNW0zEULLCPoYiQyK1Mj+m32kWh8SCUUNLv/qBMjlnrsUabRBPV0KIKnjQ aBRhECJw/9NV6LQICKVmNilCjynCZ6OpKDsb+FM6o4KmCTRr2GEN3QSgL3zqtyuc15HK iBWAjpd/SFn5aWSPFIN1CcyRYajoTgU//3L4tohJSm9C1BdDkXEswgakI2u7XysOtnTo jPTyGtl9lZeO6X57hes5ZQLEqTV1W77nQ51BO//vyfQ+OJkLYe8gb/YbPSftsHgcfnzi 1TXZfLRmcXa7o2cWNyg+65gyBDanIDS1U5CroLTJCKUgzmFn9IfuikkyY1wEh5jTTnhB uCnw== X-Gm-Message-State: AGRZ1gIAAbP8xnMRDa3JnHzUV/8CBGFNyXY5l9qJys/PVAUcWnE7mVyb z0PQO2pRkvP7Ylw/w+L6oY5N/5FyGB9pjBzEx+7Elw== X-Received: by 2002:a02:966e:: with SMTP id c101-v6mr10818274jai.58.1541478082931; Mon, 05 Nov 2018 20:21:22 -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: From: Firoz Khan Date: Tue, 6 Nov 2018 09:51:11 +0530 Message-ID: Subject: Re: [PATCH v1 4/4] xtensa: generate uapi header and syscall table header files To: Max Filippov Cc: Chris Zankel , linux-xtensa@linux-xtensa.org, Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart , y2038 Mailman List , Linux Kernel Mailing List , Linux-Arch , Arnd Bergmann , Deepa Dinamani , Marcin Juszkiewicz 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 Max, On Tue, 6 Nov 2018 at 03:14, Max Filippov wrote: > > 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. If I remove Kbuild entries, the generated file get removed in build time. SYSTBL arch/xtensa/include/generated/asm/syscall_table.h SYSHDR arch/xtensa/include/generated/uapi/asm/unistd_32.h REMOVE arch/xtensa/include/generated/uapi/asm/unistd_32.h REMOVE arch/xtensa/include/generated/asm/syscall_table.h Firoz > > > 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