Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2457547imm; Thu, 11 Oct 2018 10:31:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV61lC91W87FoEqyk3gVPoBod50XfNlxdVCpIvdWFSGsL1h+emcOTb2adLFNOrJul7wjBY6J1 X-Received: by 2002:a17:902:24e7:: with SMTP id l36-v6mr2414232plg.234.1539279097083; Thu, 11 Oct 2018 10:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539279097; cv=none; d=google.com; s=arc-20160816; b=sq5skCb8FCW6wB/WssBlHiTfU8O5EbrOPdhxtiWq0YINOzlpy34AXjo6k0rTEoRDM4 63v4R9BP5O6dRP5mrb2lxMnSb5m4wHwmtMfIyqnYTGAIoLFvNkafiDNbbH5Th2BFza01 bkBFzaaPxgC0cpgLTfkl/Txvpn7kzvBGPThVJJrYexaN7vPLL0aUQ3d3b6RwN67BGG5H kjVOn8//w/M5V95Ki4t9kG9ibqyuwtklQQ60J8m36ZrfNmJEi274Q9kI1JcBubVBLPN3 akYjTsTnIfS3xJ2YTbyJ16YVgizpgcLUMsVQgJIRBUn9UT0x1YzHgokBrCEPBE+NanLr d4Yw== 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=IiqNcpJ2+G664thjjDl4FWs3wHrgj8avYs27Rm3w5hw=; b=oh5e34vF6wkiYmFmfwLradFc7Pl1aHgAW17ePrlGLy5PSyiYNbwuAt/CVQOntoteSi l/Qkrop1aMxliGWq7Ix9S+pm37F/jQjLIlF9TCrmQBPlBcDRhf7ysf0Rxaa9OqJMjHBS QmWHAsZfYhUrAC1P58u8XNG5FaPkZi/lS2Qwb7Kd6R+OrrcJQhlCRQBvE2TdYYLi4nx1 NaEMPOAqsIdda3Co8HH0UpTgbc6CvmumtAV3dMMryEdR9ZF580yHIxez+vYADovunMmP eXQlAmyu5Xvh4VfmiT7rZ9Lu8rOR3Ncpjhz8ixniXXPK0/0XJwQTh0TFKCubOs23JNqV S1pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GNS46bm1; 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 u5-v6si27181914pgm.268.2018.10.11.10.31.21; Thu, 11 Oct 2018 10:31:37 -0700 (PDT) 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=GNS46bm1; 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 S1727714AbeJKW2o (ORCPT + 99 others); Thu, 11 Oct 2018 18:28:44 -0400 Received: from mail-yb1-f193.google.com ([209.85.219.193]:46721 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727628AbeJKW2o (ORCPT ); Thu, 11 Oct 2018 18:28:44 -0400 Received: by mail-yb1-f193.google.com with SMTP id o8-v6so3707733ybk.13 for ; Thu, 11 Oct 2018 08:01:11 -0700 (PDT) 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=IiqNcpJ2+G664thjjDl4FWs3wHrgj8avYs27Rm3w5hw=; b=GNS46bm13FldqNUFpNPRDalMCh1dhaJ26yCQdo5+pBWmyEiGIcGIrEjX3tNLnO8yxq 8ZZx4kKlw4jiv/y7S6kDGfPIizXqrgm6sLn5Q1YuMr+H3Kg2dsk0mlP0PWqg8c+zp9Cg rQHqUPNwhukSH5ATQ8SGYLySwsf+MDy6nD6P8= 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=IiqNcpJ2+G664thjjDl4FWs3wHrgj8avYs27Rm3w5hw=; b=ICfTANq4oMeFovvMQaMW8Nn5pf66cu/21bLy5hl5LRR+ChTH7t+VHFYY+uzx1q7CYL WiOnqhzkh7s5XGPkrmDpXsuo3qer6uS0cQvj8I3i/w0y1TevOUKBDNEjx8hjo4Q/azZa bMu+wx1wgrVjqE5cbKrJv7/XqjM0KeeOrh0AUdpzunPkrc31ZstTQOhG4YtbTiQ4APvE gq24f5wTkvLgGWuQpdELOJtC7ezxv7LUbLlebiM6ZoxytzwotLDZkXYLxY89UJdnd6yH vp2x2kpNWxKIldmpOM10YA7GITfGQrxrggoLKYRkHqLXrG0MzWIOxReTJaQAvLebtF0E hHZw== X-Gm-Message-State: ABuFfogZRKVQIGHOaBXOhgWCdXiXQRFrzoxgfkgJkbWVSPRPisKxjQ18 p1X0pJlTubzMybzOvvuszn2AUIivmfpMruqdeAFtYw== X-Received: by 2002:a25:9709:: with SMTP id d9-v6mr1017315ybo.77.1539270071335; Thu, 11 Oct 2018 08:01:11 -0700 (PDT) MIME-Version: 1.0 References: <1538975801-13735-1-git-send-email-firoz.khan@linaro.org> <1538975801-13735-5-git-send-email-firoz.khan@linaro.org> <20181009201321.GA28911@ls3530.fritz.box> <4c659c11-85a3-68da-b7c9-60042d611a72@gmx.de> In-Reply-To: <4c659c11-85a3-68da-b7c9-60042d611a72@gmx.de> From: Firoz Khan Date: Thu, 11 Oct 2018 20:31:00 +0530 Message-ID: Subject: Re: [PATCH v3 4/6] parisc: uapi header and system call table file generation To: Helge Deller Cc: linux-parisc@vger.kernel.org, "James E . J . Bottomley" , Thomas Gleixner , Greg Kroah-Hartman , Philippe Ombredanne , 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 Helge, On Thu, 11 Oct 2018 at 15:57, Helge Deller wrote: > > On 11.10.2018 08:48, Firoz Khan wrote: > > Hi Helge, > > > > On Thu, 11 Oct 2018 at 11:40, Firoz Khan wrote: > >> > >> Hi Helge, > >> > >> On Wed, 10 Oct 2018 at 01:48, Helge Deller wrote: > >>> > >>> * Firoz Khan : > >>>> System call table generation script must be run to generate > >>>> unistd_32/64.h and syscall_table_32/64/c32.h files. This patch > >>>> will have changes which will invokes the script. > >>>> > >>>> This patch will generate unistd_32/64.h and syscall_table_ > >>>> 32/64/c32.h files by the syscall table generation script > >>>> invoked by arch/parisc/Makefile and the generated files against > >>>> the removed files will be identical. > >>>> > >>>> The generated uapi header file will be included in uapi/asm/ > >>>> unistd_32/64.h and generated system call table support file will > >>>> be included by arch/sparc/kernel/syscall_table_32/64.S file. > >>>> > >>>> Signed-off-by: Firoz Khan > >>>> --- > >>>> arch/parisc/Makefile | 4 + > >>>> arch/parisc/include/asm/Kbuild | 3 + > >>>> arch/parisc/include/uapi/asm/Kbuild | 2 + > >>>> arch/parisc/include/uapi/asm/unistd.h | 373 +-------------------------- > >>>> arch/parisc/kernel/syscall.S | 12 +- > >>>> arch/parisc/kernel/syscall_table.S | 459 ---------------------------------- > >>> > >>> > >>> Can we please get rid of those two new files: > >> > >> Yes, we don't need those files some of the architecture and other > >> architecture does have same/similar files. That's why I added below > >> files, so every architecture implementation looks same. > >> > >> I feel it is better to remove these files. > >> Arnd, Do u have any comment on this? > >> > >> Thanks > >> Firoz > >> > >>> > >>>> arch/parisc/kernel/syscall_table_32.S | 13 + > >>>> arch/parisc/kernel/syscall_table_64.S | 20 ++ > >>> > >>> Both are not needed (at least on parisc) if you apply the following > >>> patch on top of your patch series. > >>> This patch finally fixes the 64-bit kernel on parisc (tested on real > >>> hardware). > >>> > >>> Helge > >>> > >>> diff --git a/arch/parisc/kernel/syscall.S b/arch/parisc/kernel/syscall.S > >>> index 2523b83b88d8..45cddeeb968f 100644 > >>> --- a/arch/parisc/kernel/syscall.S > >>> +++ b/arch/parisc/kernel/syscall.S > >>> @@ -923,10 +923,20 @@ ENTRY(lws_table) > >>> END(lws_table) > >>> /* End of lws table */ > >>> > >>> -#include "syscall_table_32.S" > >>> +#define __SYSCALL(nr, entry, nargs) ASM_ULONG_INSN entry > >>> + > >>> +ENTRY(sys_call_table) > >>> +#if defined(CONFIG_64BIT) > >>> +#include /* compat syscalls */ > >>> +#else > >>> +#include /* 32-bit native syscalls */ > >>> +#endif > >>> +END(sys_call_table) > >>> + > >>> #ifdef CONFIG_64BIT > >>> -#define SYSCALL_TABLE_64BIT > >>> -#include "syscall_table_64.S" > >>> +ENTRY(sys_call_table64) > >>> +#include /* 64-bit native syscalls */ > >>> +END(sys_call_table64) > >>> #endif > >>> > >>> /* > > > > I could see a patch (commit 47514da3ac20150cdf764466fbc2010c0fca0163) > > which will perform a compile-check when adding a new syscall. My patches > > will remove this feature. Is that fine? > > Yes, removing that feature is OK. > Since everything is then autogenerated I don't expect such bugs. Sure, thanks for your reply. Firoz > > Helge