Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1812909imm; Wed, 10 Oct 2018 23:36:51 -0700 (PDT) X-Google-Smtp-Source: ACcGV60FKTXV0vmc627snY4x67I8xZS+3X0TSpYDpQLwDS2I58BCfeUvYc9HUz69gkFGmOMdEJQW X-Received: by 2002:a17:902:158b:: with SMTP id m11-v6mr315921pla.102.1539239811211; Wed, 10 Oct 2018 23:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539239811; cv=none; d=google.com; s=arc-20160816; b=Eob43k9VL6sL0F4Gc1NXp/QSrGXuDqr7deL47X3Arjh8+DebMgUS7G+n8jz9tIk+Gp ySCXm44HUgp+o4gVtN3P8n4B+tWl2XTUy55B+HDKzyfhMLVHSZlmkgUpCqaomoIWEpxH 6vzs3yVoY+XLViIf+ykT38+i3WWpU0XufJmDzH6A8QDSX5ZOHyIVkKc0+1kgep3t6gYo 0dO2EK7F981IknaMRP0BX5SgGMzItSRIbP78wabvhQCAtuIZPuxNaUSNIdDYy4ZpRJq6 psZtvoxi8QFiZ38KeBbdTDKwKcO6aw6zqZT6A7/XFztDZq9OtHgTQj0KTcAhyX54uTnY Wb9Q== 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=7IAGnemiCYDs+EjrC0YpT7FA/BVh+qvrJekxWsHwIaQ=; b=Zhd/pRODmYKlfsY2+UKUWsdNuOOAAPuu1sgerxgc9oyPexkK9SlcYj/tkxosBXn8a5 aU0Kuy9lBrzrvASy2I3y6wlnk8+/F/mLysN3lToc4dwRCZrLk/IzH1xRImFlWWgoA4gP p2ETfgdGBabW11Gz1Zs6vfm2PpgAo9zXcC4eTfw9oFV14QldjRmR6T1v0T2Z58HzvTCC rDQujc6dzVN1sbqjl1wJ5ABFjbfBkKryL2MG4JoCO1OI/KeOrJb9+rpFEiA3QgXG11DU csPK5e4NKcxoF+aNLI2p1n4tOH8YqdtNyUcLWDDVdg9nCMj6VF15B7jAv3F9urfuSWZ4 Yj3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RP3Wf0Te; 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 b2-v6si24601777pgw.310.2018.10.10.23.36.22; Wed, 10 Oct 2018 23:36:51 -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=RP3Wf0Te; 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 S1728069AbeJKNkK (ORCPT + 99 others); Thu, 11 Oct 2018 09:40:10 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:41684 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727353AbeJKNkK (ORCPT ); Thu, 11 Oct 2018 09:40:10 -0400 Received: by mail-yw1-f67.google.com with SMTP id 135-v6so3149773ywo.8 for ; Wed, 10 Oct 2018 23:14:25 -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=7IAGnemiCYDs+EjrC0YpT7FA/BVh+qvrJekxWsHwIaQ=; b=RP3Wf0TeIWRjOSZJfT0cvxky3R9FS4WTtPSPmyQBTrM0/XpFl2wEk1ka5RXs6fuv4y KrQbEk3545xxw7xu0ngBtUfIZNq9A/PF1U90PQxS+4i8sYWKB424OP4QtwaqrrrcmAJt 14B78AOw95miiiZksGezdM03DixhRTNOPniEs= 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=7IAGnemiCYDs+EjrC0YpT7FA/BVh+qvrJekxWsHwIaQ=; b=MDcsHiVCNQaXhOx5IRwsJgZZblieVoomXpWE+k2ZZg+Z1CxcexHWYgTLEJFWQjUyME ky7IyCAhC4X/0SwFCgH/KuD5FdxWy4EcDPhCXBfe8CDXhE87SrldSdEW44OwibPhu3Av LPS3RlqXbb11YRbOKkpz4VUJUWkOfEHh9vQR0OCUrK8uCP5KscYmEwSqzYiYuhPvxink VJ+SHaAS6/a8NyonR3LfOC5V7jr2p3dV1kr8HhKswFaJq0h/daMj25RwO8yN+6p+6ZBk PSoqa+i/PunHj4K0diyNk0EXVsZrsOZdNc6enDhi5llbI6vSVFY4VYlxvVloR0PAuw/6 HTlQ== X-Gm-Message-State: ABuFfoiXDC9KGQJpAsXwVuJCZfKJJGg5W35jaYFPz2F5ustQXDduTedS dQT7yMzJH9OdwvUAaIJMvCSWMOs+mXClpuyo3R6sHw== X-Received: by 2002:a81:9849:: with SMTP id p70-v6mr103220ywg.175.1539238464979; Wed, 10 Oct 2018 23:14:24 -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 11:44:13 +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 Typo fixed! 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 Yes, we don't need those files some of the architecture does have ... > 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 > > > > /*