Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2062718ybl; Thu, 29 Aug 2019 03:03:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwr8LAAsa9AVjKGjmnMqCiTBKEm2zBOmRNqUDzwVN0K0vpEK7jF6AOYiYcb96flJZd09PsH X-Received: by 2002:aa7:8a83:: with SMTP id a3mr10235451pfc.115.1567073025523; Thu, 29 Aug 2019 03:03:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567073025; cv=none; d=google.com; s=arc-20160816; b=HB+3ACaT6GmNRmOvCZhPhXxpxfGjhLS6cXL0HlO7HmRzoCPXg8HRJaCAuOfp+qtdFf 4J2TpwJPZowYqffth2AvzQZV68KHch1MNElQYdCe15P7qqshXXbaeYEMqXz+o2scYhZI 63VHYtnOwp8bgWKxZQU9ccbj51gjBtLDceawfVcA60oaMdHCFVPkLurVvBAj/6Y8fecB j2bJa8MkyhaXLvnMrHbZzNOGJUbGgcMAhiWNbzzRk5XfUBKkKHB9RYGALzH+SPEGFzUX z0ICKDd+IJqa9Ytx6dI3cfPtQ6QiD/0QB0lnMFr/VyTT8Tj9uZg+kctr2MlKjdXneH7L Jlww== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=KkCJNEPlBdHBfwTQMCFXJRQ2k8YNB5VPm3P+ExzBdho=; b=K60gI2H1i2dCSbE9pJG0CSJgoE4IAuVMkMBg3tD6NFFS22xPEyxHBNZnJaNfxWGafw NGG+mXFmXb8hZmV8IkbvqM6x/F7kYNUmTw+9Z056MKPz9tSwjPTQfWkH4HGNyUcyG74O 0Sz8dCxPbV9dMovOhcyG2H0mqyMtymNo6PAiSwnvmcaaIbgbQK/uY3SaLfUE9xl4Yd7g HJyi9awwsR3M1s1CLZ4ZlD5z0kcwpoxXOFnHFr6zXf8nH5zkMz+S+gCwJ2tXblY122/G +HaSe3Jo7tO1G6A0P/4j74LKfLlW6w9FgmyCppTGxLPgQGaEldRVTvAmEEiyLhOtYCWU wxFw== 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 f96si1769429pjg.20.2019.08.29.03.03.28; Thu, 29 Aug 2019 03:03:45 -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 S1726926AbfH2KCI (ORCPT + 99 others); Thu, 29 Aug 2019 06:02:08 -0400 Received: from mx2.suse.de ([195.135.220.15]:47882 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725990AbfH2KCH (ORCPT ); Thu, 29 Aug 2019 06:02:07 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id A15BDB654; Thu, 29 Aug 2019 10:02:05 +0000 (UTC) Date: Thu, 29 Aug 2019 12:01:45 +0200 From: Michal =?UTF-8?B?U3VjaMOhbmVr?= To: Christoph Hellwig Cc: Michael Neuling , Arnd Bergmann , Nicolai Stange , David Hildenbrand , Greg Kroah-Hartman , Andrew Donnellan , Heiko Carstens , linux-kernel@vger.kernel.org, Nicholas Piggin , David Howells , Hari Bathini , Paul Mackerras , Joel Stanley , Christian Brauner , Firoz Khan , Breno Leitao , Geert Uytterhoeven , Thomas Gleixner , linuxppc-dev@lists.ozlabs.org, Allison Randal , "Eric W. Biederman" Subject: Re: [PATCH v3 3/4] powerpc/64: make buildable without CONFIG_COMPAT Message-ID: <20190829120145.5201174f@naga> In-Reply-To: <20190829064624.GA28508@infradead.org> References: <0ad51b41aebf65b3f3fcb9922f0f00b47932725d.1567007242.git.msuchanek@suse.de> <20190829064624.GA28508@infradead.org> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 28 Aug 2019 23:46:24 -0700 Christoph Hellwig wrote: > On Wed, Aug 28, 2019 at 06:43:50PM +0200, Michal Suchanek wrote: > > +ifdef CONFIG_COMPAT > > +obj-y += sys_ppc32.o ptrace32.o signal_32.o > > +endif > > This should be: > > obj-$(CONFIG_COMPAT) += sys_ppc32.o ptrace32.o signal_32.o Yes, looks better. > > > /* This value is used to mark exception frames on the stack. */ > > exception_marker: > > diff --git a/arch/powerpc/kernel/signal.c b/arch/powerpc/kernel/signal.c > > index 60436432399f..73d0f53ffc1a 100644 > > --- a/arch/powerpc/kernel/signal.c > > +++ b/arch/powerpc/kernel/signal.c > > @@ -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. Yes, that makes sense. Thanks Michal