Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1823101imm; Wed, 10 Oct 2018 23:51:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV62rbBT6DYhQGvQnfeCWmt2ntIA2rb0jpcZultVTIAogoMWP96HgHstc+07c1UuNQNOOfNy1 X-Received: by 2002:a65:47cb:: with SMTP id f11-v6mr329611pgs.166.1539240670191; Wed, 10 Oct 2018 23:51:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539240670; cv=none; d=google.com; s=arc-20160816; b=MzRuWURU95oreFyi6lcqLcByw6MpwPuLSGIGCzbe9iJIc8suesUt+ALLUTVQQicGmX LmUxBDD+0canBW3LzdkgDuA7TGdXZ1ZlnjhxT85fxkoiXZM9oL9Dc3QqOjFxVoT22SGK gIuHfU3i6NSy3fECH8tc5fkMUkp/VAwuKboAQj2boLU+jGWepkyGUrCDJGMgegQDMAgl ghDak2+agMvb/Kd8Hn0dNtrbc9VqSs13X/xHqfjOVTmKMsY6zukryjdcKZeDdAVQ0BUz p7NvwFs44HFGFYU6fM1aSBfZT8NFjIaX5P6PjWdAxSRDE1YMRnHKk2Xn7xOFp4kGdlTU 7yng== 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=7CTJJugyo1ro7MN6SU8cXgLshPlXyKVBZHyuWcw4JN0=; b=zmYiAuRi9sVVBV8ENemoBLP5x3jhMHfKMWnauICMc3Nxq3+yYgXUCja0L07PlimJ0i VHX2xfvSgWwwkOEzzUcZLjaCNvj//t8DMEPhCyHT7Y59/Hikf3H14Gu2JFq/op0awzKC lOt6WoeoHjxYTa6xPiu1SPNcvMIs+1m14AJpVFSW0ZHUVnWa9LcElcbI9HsietH7I+fN KR9+uhhmr1bRauFST2dVix0t++GRt1Y/1UZlQE/EWcUgoIts0F9O9u8XaNV9Xf5YRMCG mWIsOZVb7U8wQdtK47Cws/oGO2FuN11GQg6/xBAAkKeDLVpZoTgbg9+sSPl+BWd9LHS3 QqRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BztreXOe; 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 h4-v6si28922291plr.343.2018.10.10.23.50.55; Wed, 10 Oct 2018 23:51:10 -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=BztreXOe; 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 S1727429AbeJKOOZ (ORCPT + 99 others); Thu, 11 Oct 2018 10:14:25 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:37752 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726135AbeJKOOZ (ORCPT ); Thu, 11 Oct 2018 10:14:25 -0400 Received: by mail-yw1-f66.google.com with SMTP id y14-v6so3184222ywa.4 for ; Wed, 10 Oct 2018 23:48:33 -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=7CTJJugyo1ro7MN6SU8cXgLshPlXyKVBZHyuWcw4JN0=; b=BztreXOesfYWkaaHboa8dXF6y3B7ANAKZx7lEPPCIk5v+0794M2RsGNiJDXKJZa3Vk meFPZ7VMT/c2OSlLjV0Hihcpb8ZQRRvJ3dzMm6x3+8IvMDLqzsjLczohICDkOCT1hv1b f8itwDNhLIw3sjT5ao+wyDyu+kPX2g+kzrD58= 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=7CTJJugyo1ro7MN6SU8cXgLshPlXyKVBZHyuWcw4JN0=; b=CMpnX8rtyOmX9FVX7GDlCvb0bYDz9jSrh2HQnZPrDmQ0WRz8RkAvdzTaqg7XSAINmm y3QKWG2q7nxXiUELgZzlZZu87eXH0wMMqO4Ngkt8P53SUf511Zd8Lc9ivN5JBEJZd0mt JoK+V7khKuwNulOrb4PjiLYN9gWJWSDzgnYOjycOz7uqffq/UGbFbwo9Q8mGHD5ynv4s 1JVMY2kEeO68aLNe+ndQsEUKtPCpnHbADv4JzB5olbUJAnZhzjOPWzQG46XMDaBahFIw O1QGDrlDd3mlSt5R4StAfk2n2ZmQ1fH7++K0o+Oyqm2FPtql6vvoPy84SNlaT+3Q2JkV R31w== X-Gm-Message-State: ABuFfog4i/jiz1xB1WEMqb53wk7gbFmh5r7Bw3QmQAZ/MZUuB/SIeVy0 gg7SuasqLB895BUenwkhsyspGKpAfml5lKc+emgJrQ== X-Received: by 2002:a81:1b85:: with SMTP id b127-v6mr142321ywb.381.1539240513180; Wed, 10 Oct 2018 23:48:33 -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> In-Reply-To: From: Firoz Khan Date: Thu, 11 Oct 2018 12:18:21 +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 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? Firoz