Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1649256ybc; Wed, 13 Nov 2019 02:06:48 -0800 (PST) X-Google-Smtp-Source: APXvYqwxaF7+gfi3RmmObULSxoeefsY7HujaTOthE0kxtC+e34hhKLBd/rvC1EbA+zuBmEA8BOeh X-Received: by 2002:a17:906:6006:: with SMTP id o6mr1868555ejj.51.1573639608035; Wed, 13 Nov 2019 02:06:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573639608; cv=none; d=google.com; s=arc-20160816; b=p52G954S1JUNsdYwm6IIECQFXp9ACWKLyI4IEozEw+7k18cNp03hWp0a3ZPpCr/Xwg br08n0gKCrdUg1FkMkS4iwlB8RGbpVNKkOqBfAB6fnRBt/wsbLDZ2uzRzbRJOiN5ywbW RiPkMOVVgWGITUthU+s1YPKJ++K1KPZiKxIe8oNAbr1RXV4Nu+DmSI9TuLVd4d1tDogt 5Q/w/GVsGnKWYhy5oUAysetUanCV7LYrHWZjaxaSJwQJ6Uu4EXJjl72PuKudeSPpJ7Vw LxiBVIEPcfNzzkCuOl3I8nohrUdCOm05THPKSlsQrRPjevSUnrTwAoS9FMcdlx0PtYwL MRyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=29hnM03sQs+0O3Mcppdgh0OtEsVHCeaeqvkQJz+8cvA=; b=Z9GC0knaZViaIOgg1RMuAu5U4lqSHkuIMlJOz3p//LkaT5wFridanPPeFtncD0pV3O XryjlaZDleW+KGOUSmWTHb6jzOWVl3Cz/vvREL8wfIvKcRvQm/ozAdl240cftFbAxHjh W/HQqAu0OjmBCLXjR+HxmpHXSJV0cN01iEiwFFdY7jJegdHKHZFVkM1gF69jBv8FZ9ex r9J38k0K8mNgCaEn02J9o1LSTBY0dmLywqNxivwpfGpPaY3x5jjxss4G0J/EsEp9aovu QEuyi28DEL9KF1oFCVsAsot8EDT5VhSHenylANkKcpkFbQiU9MIAXvdxFryLgjA6v7j6 nVsw== 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 l27si1099455edc.358.2019.11.13.02.06.22; Wed, 13 Nov 2019 02:06:48 -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 S1727511AbfKMKEX convert rfc822-to-8bit (ORCPT + 99 others); Wed, 13 Nov 2019 05:04:23 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:57741 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727183AbfKMKEW (ORCPT ); Wed, 13 Nov 2019 05:04:22 -0500 Received: from mail-qk1-f172.google.com ([209.85.222.172]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPSA (Nemesis) id 1N2Dgk-1hl1B43mog-013brR for ; Wed, 13 Nov 2019 11:04:21 +0100 Received: by mail-qk1-f172.google.com with SMTP id d13so1192274qko.3 for ; Wed, 13 Nov 2019 02:04:20 -0800 (PST) X-Gm-Message-State: APjAAAUfzO/wFJIKb3n1NLDE0fQRnBuhAagispHGOADGPpRO8JrJSrZt I1OP80a61+JQ2zEMORp+189FiNOeJOAmDckM+Vk= X-Received: by 2002:a37:9d8c:: with SMTP id g134mr1708504qke.352.1573639459115; Wed, 13 Nov 2019 02:04:19 -0800 (PST) MIME-Version: 1.0 References: <13fa324dc879a7f325290bf2e131b87eb491cd7b.1573576649.git.msuchanek@suse.de> <1573613683.ylw9dz9mlc.astroid@bobo.none> <20191113084137.GI2770@kitsune.suse.cz> In-Reply-To: <20191113084137.GI2770@kitsune.suse.cz> From: Arnd Bergmann Date: Wed, 13 Nov 2019 11:04:03 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 31/33] powerpc/64: make buildable without CONFIG_COMPAT To: =?UTF-8?Q?Michal_Such=C3=A1nek?= Cc: Nicholas Piggin , linuxppc-dev , Andrew Morton , Allison Randal , Andrew Donnellan , Benjamin Herrenschmidt , Brajeswar Ghosh , Claudio Carvalho , Christian Brauner , Christophe Leroy , David Hildenbrand , David Howells , Diana Craciun , Daniel Axtens , Dmitry Vyukov , "Eric W. Biederman" , Firoz Khan , Geert Uytterhoeven , Greg Kroah-Hartman , Gustavo Romero , Hari Bathini , Heiko Carstens , Jagadeesh Pagadala , Breno Leitao , "linux-kernel@vger.kernel.org" , Madhavan Srinivasan , Mahesh Salgaonkar , Mathieu Malaterre , Michael Neuling , Michael Ellerman , "Naveen N. Rao" , Nicolai Stange , Oleg Nesterov , Paul Mackerras , Steven Rostedt , Russell Currey , Thomas Gleixner , Valentin Schneider , Alexander Viro , Masahiro Yamada Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K1:4s974YwDo2C/+5Nc/d22dJtU7F6ZPc3QTSvbH3bPlopUb1svGk/ et7GO2Z64BFzau48FF67vq7FtUnAk+z8EqlCfnIDi43ygQ9enW86OUe4pdTBENQnJFSOFsz Aomx6PUjq9PKP9CGE1fo8jrUd2td1sXo1a93bhwXkcfccpFYfmFMCJ+b/x4DHRnzVUHH477 XML0woKM6wUldNEbXxwZg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:S3saXF5IiUA=:DN1TaMLVO2XgKJMRJ6BheO +H+I9NqLJSYLgoPkmSSFUJy1+a/bLm8paJQ5QeOUADvAdv8VDgef2SpZ5sDTqPMj+03kmLbUX DbLpW3c1Li0rt+IicaaVDuo5jNsKOBDcqAmyqxg80/6ewhGN1i5EzVlrmVEyxQTRCnYWEx5hc z3ZpZ0X5SB6uga0pOAdUiYVMWsv1ofsJMZPpxQdcFqTWcivToR4prskpDAaw3ywcl+1MaOOpo AoKnkzQZP+Qn0TaJfdEzdTm93cnzLEg3yDmkZXSdb6HcMaAYj3mc7AsnxchMsZECO7IzzeBDB gqD7Dch8nMrGIeecibb+ADWOlsm3kM+w6nOqugVtOyBE+UjsUXfxlgMq3Fqnw06r540ufPTca yVszseWpFBzZI1wMbKMhD5PJtguAbuFeCqtT4rxb808NnFg+Y+WRJjllwTMfhwN03YVA3sJTi jjf9po76EmrlbG5SCJCRirZgOyQQrBSgd0EZS8cJmQbshKfGrGrCaLZYH166s1sn+irHbYsNt 74M8OKgSZkslRKy2fj58Z/yLUF2IL3ws7g/nyLlJpLX4gRdkWA48O89bFwXrDG669SEHacDsa 4Ao1s6sIQ6XJHp6rYPf4PlVRRHhmy9cGK1o1rnTJQdLFqNLLDwNWKoGDzTmRjKc976iVTRffC LdUyBzNa8hoxqivwZAPfLQ7sqk8CNkSSW4KkwFnjxf12TvlcQGpHJDLbTHBPGCFv/5g0Xp/PI bBj6yhoTz8MpyH+p0+t2r2YcLl+Rozu4e5qU7U+/xK55prbFrvPDsEJzdgYNg0PzSgJNJ7zCX hxcnlE/L+KdhgfpBcLh0XJC9CuOLhb+02uMzLVcmu7O+HNMPv0SPtVWJ6jgLuOdbtpAKKHXK4 Xn5haKUjBz71T99CGpUA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 13, 2019 at 9:41 AM Michal Suchánek wrote: > > On Wed, Nov 13, 2019 at 01:02:34PM +1000, Nicholas Piggin wrote: > > > > > > @@ -277,7 +276,7 @@ static void do_signal(struct task_struct *tsk) > > > > > > rseq_signal_deliver(&ksig, tsk->thread.regs); > > > > > > - if (is32) { > > > + if (is_32bit_task()) { > > > if (ksig.ka.sa.sa_flags & SA_SIGINFO) > > > ret = handle_rt_signal32(&ksig, oldset, tsk); > > > else > > > > This is just a clean up I guess. > > It also expands directly to if(0) or if(1) for the !COMPAT cases. I am > not sure how it would work with the intermediate variable. > > There was more complex change initially but after some additional > cleanups removing the variable is the only part left. I would be surprised if that made any difference to a modern compiler, but the new version is definitely clearer to human readers. Arnd