Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1798913imm; Wed, 10 Oct 2018 23:18:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV61grptVToZsuedtudEM3WSzgpzdldnbGkXOWLdWY3b26bU3gazt6siBGffjjK8NiLp0Pdek X-Received: by 2002:a65:42c2:: with SMTP id l2-v6mr215850pgp.139.1539238705081; Wed, 10 Oct 2018 23:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539238705; cv=none; d=google.com; s=arc-20160816; b=DdIj5dMq466Z2F2Uqie2dbyGVSNW6hGxntQlYlBu1LQnyamW8mUjtnTpzsleYoHHsh JIHznOs5fO8AKouYwHAQQmfJbSame7VywPC5xv81MkDXp1tAJX6zH9KAc84fMGKVbac2 N/ykIYW1zRF0bmGs72vBPE0Td7jHZcMYNUMd5nHMr4UPlBdm8Qh3MZuPL0WiQVIo+c1f 8/RSEj+4RMUQMGelkYAqmsy1zXR22HkHBPtjzErAS0cLqKNUevGFyR8y7vCjDzKL3REY of4/WyMb8k5aG2lfv3CGcAds/5j05YG0MMubZoN5KiN+AyF6CXVdQ87+AeaXe+eF6/ND MpAA== 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=5fIUb92OYF2wLqmfn4EGg5jS4BRcuqT2H3Q+tibUquc=; b=XU8BhJAga/Z1IT6V1t/+yycAKAw5QCT9k7XSRcRRzeWrrYdCqwUHYDHKl7g8Ub5+kZ uD6akauqffTxi1YWBB7hZSr+IUdAFkeR+aFWXr6mpnFylZPRfB5VwlNNYo5XpUB8WTtp 05Yh1oPOjrapKRX+aF2yuEYKgw89FpDAfOrDqoMgJIJ8penzzxels4nC3GVUDNqaDE0G 3NUvvb2copfzok2NI0BGsLZ6aq+Rc3dTms8bUNTMy8/X9gDuaXyg6hGKA2bnLsbPIvOM UHMLenJSwCzRqxTgbGbTPrd1qkOwxedNc74azxptVg7wDbMVpMZG/3pES1+Jgg5B70m7 DUUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KSPuOP0z; 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 p126-v6si28519301pfb.77.2018.10.10.23.18.10; Wed, 10 Oct 2018 23:18:25 -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=KSPuOP0z; 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 S1728162AbeJKNgn (ORCPT + 99 others); Thu, 11 Oct 2018 09:36:43 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:34157 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726846AbeJKNgm (ORCPT ); Thu, 11 Oct 2018 09:36:42 -0400 Received: by mail-yw1-f67.google.com with SMTP id m129-v6so3160571ywc.1 for ; Wed, 10 Oct 2018 23:10:58 -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=5fIUb92OYF2wLqmfn4EGg5jS4BRcuqT2H3Q+tibUquc=; b=KSPuOP0zZhdPBYPdUy57fJQdhT+yM4mtA8WKzPm3X9y0Vxu73nyl7gXHz4So9FyIyc 9MdaZVORLtAVNhF+JE4BrkEpi7lUziLLaaYa6qIVvldkYlHjO2VCovomCR5tOoJ1MfQp qZ4XvwMyhzFIvsuJhMPWafq047LFW+Kpt9i1U= 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=5fIUb92OYF2wLqmfn4EGg5jS4BRcuqT2H3Q+tibUquc=; b=ha+N+OrUep2/WCecs7rGO9UlRJ6/hXT5ydwXL0iJpKO5uQk6vhO/mZQUjuBhRs9aVy oq9S46efJHR8nnvtRalwASDRCSz4ST7oS3tfYbqc6t+FTXnTlqjmm9e1aIKzgRLTaaGr CKMlrrFWx78iHcQt/dj/MnS5Ivb6YQx/qXuQIlLGdYntRELgSG7uKU52Vdpw7GvGyIJS 97+ZDOah1IbVDG6eSeYiZZhDJzBq5mTmHZKIYtlNhWeqaRJNu6WGO08u7gEgbE4HUQyy YsEBYeQp9o3BEM8/oPqdpAL42U3EaDrEnT00iZWytkStffvwzThe3gHBM96LKUSABHWs /EXg== X-Gm-Message-State: ABuFfogoV4ovdJ/MiwWIdkf/EZuu3sqqlYXLoqXkCETpv4VZtISNfLFp T9UYMvddxbdn4GWbsgYV6qbkIQGki6LaMIpCFQPRdw== X-Received: by 2002:a0d:d801:: with SMTP id a1-v6mr94914ywe.399.1539238258071; Wed, 10 Oct 2018 23:10:58 -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: <20181009201321.GA28911@ls3530.fritz.box> From: Firoz Khan Date: Thu, 11 Oct 2018 11:40:46 +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 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 > > /*