Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2933804imu; Mon, 19 Nov 2018 08:15:53 -0800 (PST) X-Google-Smtp-Source: AJdET5eXTplRB0k5Inql6jlCxqWAvyciAa2W2sL1eAADDclSBPDWr4VoNfVx5kpwpQhD8G3CeV9V X-Received: by 2002:a17:902:9004:: with SMTP id a4-v6mr22719650plp.334.1542644153309; Mon, 19 Nov 2018 08:15:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542644153; cv=none; d=google.com; s=arc-20160816; b=SXJZcFrZtZImBFR7cbk/hz46Rp1dr3ltWeTkEPn+nwj4JcZV7G2MdtX/jXlEwjhKAL l8njqOQDm0RxKayUSHHIuc4V6eNOq5IaC5G7Pm5edvzFPdQzxdj5OgNin3SHrg4oHEDc KbbF3KXlDEecEIh4V/JZ4ELf1h02i8cOhzM4YzFHc01aOr9LXg8LklswxDWJLWDiGcRk 8UdVxXawUoYHhAB3vTvpRvGo5DF6u9YcVf2gMvFZpUMOhSLhupHbMdBAgGHqXikZaj5D GxLiPwK8FDPteeczpZ+W3mxZfBXhICsHRgLLjZa3Cj/ObbleCDfQX41uUryXPEVSQhET t9cQ== 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=v/CljHlhtduQLF35Irouy1QmlECeaT79XOoHMWeQgcA=; b=XgxH9ulOxdKtUDguXmrKOXvFjc6ZQT14PeLImDRRpjKjzAwG444lbbuFLCjCPJL467 gNqufssuqUFzv7q/OHwlxx+g8qaN0n2pT7ouHAbhNKlPA/vCOmHFeKtGlVrOCXj8iJRC z0msqznsDudu6s4KAtKPARdYIr8u6SCtqujWDs9o936UvbtOqoqhrnrmmzeJfHfXky+k Xsmiul3GuYNATgO6qO4rPjq9Nd9WALziNrVhw5DU3Qnd6dLJ2r0fOkRPVAmmIC+IruRk HI8mvistrHo8/iyz76wvsHSpiCO1MHxAVPpRx2CPXbWQrZCcQ+sfafTWPCk0VeKfS8Qy ZnzQ== 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 91-v6si41902172plc.409.2018.11.19.08.15.37; Mon, 19 Nov 2018 08:15:53 -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 S1730115AbeKTCgT (ORCPT + 99 others); Mon, 19 Nov 2018 21:36:19 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:46525 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729895AbeKTCgR (ORCPT ); Mon, 19 Nov 2018 21:36:17 -0500 Received: by mail-qk1-f195.google.com with SMTP id q1so49406209qkf.13; Mon, 19 Nov 2018 08:12:15 -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=v/CljHlhtduQLF35Irouy1QmlECeaT79XOoHMWeQgcA=; b=ehEUbEVap9kAzguKCOaJ00DFWaA9+ZRD6Q0T0Z3X8KoOYvsmFpzmIR/wiLqGt0MCRi GR991T+ip6ABoxD92Rwv+yjgOTxepiWmxzg7F6lNZz7iAttJPic37dxFKpe/9ZqTi4t/ XshXw7G+xp40McHj/Qj6RjH+Lk68+1CwlGqt5+bSnlYAIQKhoLePkHnN6XNDZkrh2p5v KVZYM/tTuLOOFtJzLPUVD02s+2tVXisbaVmowz+f9SU1OvUhsfs8jQH9rhokgrRWWfis nxiO6KVENcY9gzVmZcCbK8CCmZUE1N2Q7vbjbxXFwM8zpGfF/gjJPGyW1XyZHaR/HVa/ 8lVQ== X-Gm-Message-State: AGRZ1gJbUVUS/3k+j3rGtitpKs/ajga41syKuUAPfzoyyX7GP8M4DtPA 050Gog65guAVTDZ/R3Yb6E4/4bnfE14Z6v0J+5w= X-Received: by 2002:a37:a3c6:: with SMTP id m189mr21184819qke.173.1542643934914; Mon, 19 Nov 2018 08:12:14 -0800 (PST) MIME-Version: 1.0 References: <1542189798-27713-1-git-send-email-firoz.khan@linaro.org> <1542189798-27713-3-git-send-email-firoz.khan@linaro.org> In-Reply-To: <1542189798-27713-3-git-send-email-firoz.khan@linaro.org> From: Arnd Bergmann Date: Mon, 19 Nov 2018 17:11:58 +0100 Message-ID: Subject: Re: [PATCH v2 2/4] powerpc: move macro definition from asm/systbl.h To: Firoz Khan Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxram@us.ibm.com, Geert Uytterhoeven , leitao@debian.org, Boqun Feng , linuxppc-dev , Thomas Gleixner , gregkh , Philippe Ombredanne , 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 On Wed, Nov 14, 2018 at 11:04 AM Firoz Khan wrote: > diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h > index 01b5171..c4321b9 100644 > --- a/arch/powerpc/include/asm/systbl.h > +++ b/arch/powerpc/include/asm/systbl.h > @@ -76,7 +76,6 @@ > SYSCALL_SPU(ssetmask) > SYSCALL_SPU(setreuid) > SYSCALL_SPU(setregid) > -#define compat_sys_sigsuspend sys_sigsuspend > SYS32ONLY(sigsuspend) I think the macro here is just a workaround for the fact that SYS32ONLY() always prepends the name with 'compat_' for the compat version, and there is no other macro to do this. After the conversion, this can easily be done using the regular table, as you need separate names for the 32-bit entries anyway. > SYSX(sys_ni_syscall,compat_sys_s > diff --git a/arch/powerpc/platforms/cell/spu_callbacks.c b/arch/powerpc/platforms/cell/spu_callbacks.c > index 8ae8620..7517a43 100644 > --- a/arch/powerpc/platforms/cell/spu_callbacks.c > +++ b/arch/powerpc/platforms/cell/spu_callbacks.c > @@ -47,6 +47,7 @@ > #define COMPAT_SPU_NEW(func) sys_##func, > #define SYSX_SPU(f, f3264, f32) f, > > +#define compat_sys_sigsuspend sys_sigsuspend > #include > }; The spu_callbacks.c and systbl_chk.c files don't need this macro, but that doesn't matter once you drop this patch. Arnd