Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8736377imu; Tue, 4 Dec 2018 13:18:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/VUqhktVZw7AP64DhrokT7J21PeEUXbUsFW8sE9Mspta7YBbfmC2sI/dzPLIp9VTjxF/k+9 X-Received: by 2002:a17:902:43e4:: with SMTP id j91mr21024346pld.147.1543958308325; Tue, 04 Dec 2018 13:18:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543958308; cv=none; d=google.com; s=arc-20160816; b=jp6XF4+cOa5tMrumEf/b6MsMiBbgvyhRyxiNiuWk8vgJuXKAUk7CHQ5wnvYoTT72MB Fyk2tzKV3ezxYQZASUkBeGxgCmYXfAy/fxF2M0RK79mmYP5Jtbp/OjZA64hbHhqxyo8T DTxiBjxH6EeTGiw3yxUi14mcRArxR0hsmVAkQ4aIWJzPFEJMoqLyHKs3DIuepcjuDdR0 Oc3V0Kd8e2TSlTGffG5yJM2CkWqeHnE7cVvIFFfhpNjlz2pP5WbWERglc06QKi7FWxrk mZO4/GSqWSg4gD+o2Ov3m0dWXvK9ohA8Xa4TiJnD2Qugkpy6RpgK6uJ6dTTUDUeTgmPe /PwA== 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; bh=oNLZdxPA/1JMTOenX3BXjqrafMgfKLzwoze6zSjaYjs=; b=YbmNfjSd7zy5vmyblr1679Ds0jUrrH7qTsj+sFoDkEBiC7b0GeLoUonRVXL83DcKIz 8fxadT0U9xTzEpfeeO8zNhjaq/UrzYSCd+UTKrUiyqiCkR96EgkRAT4+lATXtYIEgqf0 czoynO4ItAxAIg4ykpJgbXe++N0LUdKEPgSxx8ekBCLd9IlYbiPPt2B0M6YVB4xNxVHT /SGFSTWVqcf/vRmEEHkBf+iAN2P6cMtMGLyoyA2YAL9JFzf+5JEeO3aELS3GJ2nqGBCT PI9ELEe5KI1Zm5MNXvADinOtPN2krNjPwEQyisEz50vHJSRqVWdvcL7hEqnXxpGzTzxi h4vA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w5si20049677pfl.279.2018.12.04.13.18.13; Tue, 04 Dec 2018 13:18:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726134AbeLDVRf (ORCPT + 99 others); Tue, 4 Dec 2018 16:17:35 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:43547 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725880AbeLDVRf (ORCPT ); Tue, 4 Dec 2018 16:17:35 -0500 Received: by mail-qk1-f193.google.com with SMTP id r71so10572001qkr.10; Tue, 04 Dec 2018 13:17:34 -0800 (PST) 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=oNLZdxPA/1JMTOenX3BXjqrafMgfKLzwoze6zSjaYjs=; b=FRV6mMBE7By9T7uj2xTjiptYoVShkJiOQ/lDHTFS5jWFhS06tGhOvQ4br3KxvCo0u8 scypYY4QigNzk3XcHyxcHgJpm5ip8/EGGg7BRNr6Hotjcua3Vpy7DV+qbWVfOfIpDItu ejwqSWXkHtLaRrCVzDLtsXh4ju1i/zdIfbOK1hoC03vNmNIXkSAVl3dIz+jNJS7TEM65 jpnR1WsOXpRSkg5zqvxpQVrvQkLQLCAXFjyOuJprd4nOb/gtldtw81X1aVhPaucPDn20 IK6KR0QdTP2iEPkKBNOcNV7G2oQDMJNLda/JGIh2iEq0I3yhyJEP6dz6hSIPSQ8tsqNK fgFA== X-Gm-Message-State: AA+aEWYWEqRSFsbHipfMv603hAMTy6NywYmkm5ZNxLH4oxkJoE5VJcM8 xDE4h4RyGj5TXSPdZCtQYfWGQ9FcQYZHBV3asgE= X-Received: by 2002:ae9:e102:: with SMTP id g2mr19045176qkm.343.1543958254395; Tue, 04 Dec 2018 13:17:34 -0800 (PST) MIME-Version: 1.0 References: <1543465611-17122-1-git-send-email-firoz.khan@linaro.org> <1543465611-17122-5-git-send-email-firoz.khan@linaro.org> In-Reply-To: <1543465611-17122-5-git-send-email-firoz.khan@linaro.org> From: Arnd Bergmann Date: Tue, 4 Dec 2018 22:17:18 +0100 Message-ID: Subject: Re: [PATCH v3 4/4] powerpc: generate uapi header and system call table files To: Firoz Khan Cc: linuxppc-dev , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Geert Uytterhoeven , linuxram@us.ibm.com, Mathieu Desnoyers , leitao@debian.org, Boqun Feng , gregkh , Philippe Ombredanne , Thomas Gleixner , Kate Stewart , y2038 Mailman List , Linux Kernel Mailing List , linux-arch , 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 > diff --git a/arch/powerpc/kernel/systbl.S b/arch/powerpc/kernel/systbl.S > index 9ff1913..d756348 100644 > --- a/arch/powerpc/kernel/systbl.S > +++ b/arch/powerpc/kernel/systbl.S > #ifdef CONFIG_PPC64 > @@ -47,5 +25,17 @@ > .globl sys_call_table > sys_call_table: > > +#if defined CONFIG_PPC64 && defined(CONFIG_COMPAT) > +#define __SYSCALL(nr, entry, nargs) .8byte entry > #define compat_sys_sigsuspend sys_sigsuspend > -#include > +#include > +#undef __SYSCALL > +#elif defined CONFIG_PPC64 && !defined(CONFIG_COMPAT) > +#define __SYSCALL(nr, entry, nargs) .8byte entry > +#include > +#undef __SYSCALL This part looks wrong: where the old sys_call_table contained both the native and compat calls side by side, the new table contains only the compat versions (note that CONFIG_COMPAT is always set on PPC64). I think you copy-pasted this incorrectly from one of the other architectures that uses a different layout for the compat calls. The way I think this could work best is if you add a preparation patch that splits out the 64-bit table into two separate ones (and make sure that works). After that, you can add your existing patch, rebased to use the two generated tables instead of the old-style tables. I'll follow up with an untested patch for illustration. Arnd