Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1990339ybl; Thu, 29 Aug 2019 01:52:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhGud4dt6iTiHQUJr7dXhKcvdwtNtt2fxGHbx0VuPqpwyMIsQFer11eoi3dvPlLgCQRD2O X-Received: by 2002:a65:6448:: with SMTP id s8mr7282528pgv.223.1567068719951; Thu, 29 Aug 2019 01:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567068719; cv=none; d=google.com; s=arc-20160816; b=k1QBFS/30wHlm5tFZZfvCrFHvxyWphVCnMHCVUqllxg4b9dH/EohHgZeYHNWZzkN0x KubULuHX/yO/NhfJqbKwCSjx0Jz9wWzjN7aYvRr7y9KMoIukur1x7grqCuvIOxQHy/M7 UGon6eMkVw//ARkJHVd1tbwNWLTH7WuOa4EczLwEAOuNglVYr4yz/pI+hguooGwiA+j1 I7TErHyoQLJeNUidtPkd9qmqucz8DimX/HlkuJH27FriSa/rlRAoppJFFAhATJBtR54x 4VwrH8oj2nSUThT3klGnmtKBLkNZX2M0bJhQAr7+KXNLWBrPI0NA3ZEHtWOq2Ban33Fa wqjQ== 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=mV2mVNuTn0EuZL/opp1jH60OFvV+IrB6BZv8tdHKT2U=; b=yzbE8nzQoJuWXSa/4sSJcjet3CUwaICD0bpapNbZKRufJkStVaba/hd2Yw073gxHAc mkabBX3RcCvwxa2ah47M2hvK8Fn19O0yzcpuNXnuUf/AB8jw+FZJGp1yL/4vTzXsjHEC nynZSTbOZDDcMjBTNc48xNGArkW0z3dcjTWCDqEwLcs7p/d92ONKjHFt6J1JdqcVakXa D9vLs5s1Os4CxCUKno2LLjLuzCwml2B3b43DRNeq//l90vEm2tuT90MhFxygqymEVZUX 6Teb6bDRPg9bzNT9OAoZiIWe1fW0riIu2tKAelyE4Kx2Qc2wVXeSyY0VcHAdjurIlqsh EGaw== 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 j186si1898092pfb.250.2019.08.29.01.51.44; Thu, 29 Aug 2019 01:51:59 -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; 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 S1727099AbfH2IuB convert rfc822-to-8bit (ORCPT + 99 others); Thu, 29 Aug 2019 04:50:01 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:36857 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbfH2IuB (ORCPT ); Thu, 29 Aug 2019 04:50:01 -0400 Received: by mail-qk1-f196.google.com with SMTP id d23so2267623qko.3 for ; Thu, 29 Aug 2019 01:50:01 -0700 (PDT) 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:content-transfer-encoding; bh=hJnFjek23O2V38kY7EYOvwYgJYYzBTv0EJwKFbs3Z3k=; b=SIWMgzb2hj15Ufge6e+OlpGOJfHDr/cPzyqHteuHzBFjmSV2GG1C8TAxb17gqTMtLg v1zgLaCEP5ndCwyXC+IToLlVJmLnSXqRxoSvAbx65uMZ6vzdQ75IsiqMp+q9wA9duDeX JPIfI7NVnArcOjN2h3aUs4uOdGW795I7dAguDAmstibXviSAuFcXeNCUTF6wNKggJTuh bhFhD8mLAuquxJC8UUQTmtfj48tasQkDTZqanBZth9kexxv8rHsykSDrjthW4bY0lLJ7 62bZTUqw/ZPTcaAuj452IHi06fo+mZoFdmNsO9dQTabH1GMcw4H5XUGgqUKMcm2Dd9cd u4Qg== X-Gm-Message-State: APjAAAVm0IVxceubWQeREFJEcBDJmcKw6y9lZfZdvPWDz7G3aqw7z67Z D7Uwge6lcuxFGwOq3Yjr0d/rQdsGgYtwG/B1I20= X-Received: by 2002:a37:4051:: with SMTP id n78mr8064833qka.138.1567068600467; Thu, 29 Aug 2019 01:50:00 -0700 (PDT) MIME-Version: 1.0 References: <0ad51b41aebf65b3f3fcb9922f0f00b47932725d.1567007242.git.msuchanek@suse.de> <20190829064624.GA28508@infradead.org> In-Reply-To: From: Arnd Bergmann Date: Thu, 29 Aug 2019 10:49:43 +0200 Message-ID: Subject: Re: [PATCH v3 3/4] powerpc/64: make buildable without CONFIG_COMPAT To: Christophe Leroy Cc: Christoph Hellwig , Michael Neuling , Andrew Donnellan , Nicolai Stange , David Hildenbrand , Greg Kroah-Hartman , Heiko Carstens , Linux Kernel Mailing List , Nicholas Piggin , David Howells , Hari Bathini , Paul Mackerras , Joel Stanley , Christian Brauner , Firoz Khan , Breno Leitao , Geert Uytterhoeven , Thomas Gleixner , Michal Suchanek , linuxppc-dev , Allison Randal , "Eric W. Biederman" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 29, 2019 at 10:38 AM Christophe Leroy wrote: > Le 29/08/2019 à 10:01, Arnd Bergmann a écrit : > > On Thu, Aug 29, 2019 at 8:46 AM Christoph Hellwig wrote: > > > >>> @@ -277,7 +277,7 @@ static void do_signal(struct task_struct *tsk) > >>> > >>> rseq_signal_deliver(&ksig, tsk->thread.regs); > >>> > >>> - if (is32) { > >>> + if ((IS_ENABLED(CONFIG_PPC32) || IS_ENABLED(CONFIG_COMPAT)) && is32) { > >> > >> I think we should fix the is_32bit_task definitions instead so that > >> callers don't need this mess. I'd suggest something like: > >> > >> #ifdef CONFIG_COMPAT > >> #define is_32bit_task() test_thread_flag(TIF_32BIT) > >> #else > >> #define is_32bit_task() IS_ENABLED(CONFIG_PPC32) > >> #endif > > > > Are there actually any (correct) uses of is_32bit_task() outside of > > #ifdef CONFIG_PPC64? > > There is at least stack_maxrandom_size() > Also brk_rnd() and do_signal() Right, makes sense. Arnd