Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1883146ybl; Wed, 28 Aug 2019 23:48:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyg4q+rDxezta6PiesdIuKdHTuin8Us0m4CTMPYSRLXFAurXm405q152ec+iKKtt220qztf X-Received: by 2002:a63:6947:: with SMTP id e68mr6969568pgc.60.1567061280166; Wed, 28 Aug 2019 23:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567061280; cv=none; d=google.com; s=arc-20160816; b=VBuIvUmQwDED1ZK+qheGJZfI2ABu/HJIXDfOVc+TLwOgSZxjs0uKrI5cv17+eo6ari cl2cBxHDphWqao04X2XhVQ7tvwAhhAo7NDerKfjdZXfHd8/qPKk3BcT2mMchUplmtnOK wE8pLP3Mg/n7ey1gZKHwfr8mqIMhOJ6CzcNJpGNpu1S6alJj89SJ57i1Yrv45gfTzG8d cu65/LDBuvPmyZYmIp3eco59irSL9aWdK5kWpUuZ02S6YXyoHfe1h6sb+NVEx0hVvVAR jkyjZrsZxLIZ0YZeaAocljRZ2wRRsTORj2Hw6nhkHBSIvk6ICx1XOA/ZrX8D9jRU9Rkf RL+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XqP6KMHBCPelPBAfqvIaQqLm65eVmqW9YvWHKrHsia8=; b=JAkhoJO+NxY+V6RCC3pyqY9LGMLZas9+vLdIw40OfR3V7wcLlWQaUcq2wc7/ozXsvR LyeI+feaZcwFT/tOj6WFj6PSkt4+1LQ2b/6O9FhTgxh8bBcuNmesqGyO4xb9lITLYRWo Ieo0DB9Sc8aO0I33Bwks2ioXhRbucRkSwcxKvOzbf0hCwL9+Lg95WV0tbCTVzjyjGKEL /HMLRdHHB7UI+lTyMUOb91DPblyp5dGRFJGo/763V5t/9A2rlE1dDX39CGV335YWOV8R BuGGSHgVm/opriIjgwGt1Q5oH4Nwyq8VjoFNeQJtRjqG0+6+7XHkSgjQo6IdD57PUMDh stGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=bSq+njuL; 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 w6si1221859pge.395.2019.08.28.23.47.44; Wed, 28 Aug 2019 23:48:00 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=bSq+njuL; 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 S1727650AbfH2Gqs (ORCPT + 99 others); Thu, 29 Aug 2019 02:46:48 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:43508 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726889AbfH2Gqs (ORCPT ); Thu, 29 Aug 2019 02:46:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XqP6KMHBCPelPBAfqvIaQqLm65eVmqW9YvWHKrHsia8=; b=bSq+njuLMh/IWrVBbvVdjZxB1 1GcwUvx/GvMQouDj9rqBcbio1YAApe59HHPJlVQrjMEmEG53zV1kim0pX7me3YGSHHRmlK6XoC7os eLRbmH7iorT3BER7+Ijz9ltiG3nN38RlQ3emvE8lJDMYfRiKxkM6irbaaD6aTYoFOCA3zCz9O57aJ mt+KYeCu0Gpx6P3HlMoQAiKQKw2IBvTtWMfy6xRZZINxNsMwFAgRNBDljwJS1KcZqDtUCEomYt4/r GbJcz0Snih0atw5tAY7aH+dv5EcaDRcMP/tqpxjLlawyiEfPJSlD1P4b9H+felGrTqxZqYlej6w0N b4Vm0zGPQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1i3ECO-0001xf-6i; Thu, 29 Aug 2019 06:46:24 +0000 Date: Wed, 28 Aug 2019 23:46:24 -0700 From: Christoph Hellwig To: Michal Suchanek Cc: linuxppc-dev@lists.ozlabs.org, David Hildenbrand , Heiko Carstens , David Howells , Paul Mackerras , Breno Leitao , Michael Neuling , Nicolai Stange , Allison Randal , Geert Uytterhoeven , Joel Stanley , Firoz Khan , Arnd Bergmann , Nicholas Piggin , Thomas Gleixner , Christian Brauner , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, "Eric W. Biederman" , Andrew Donnellan , Hari Bathini Subject: Re: [PATCH v3 3/4] powerpc/64: make buildable without CONFIG_COMPAT Message-ID: <20190829064624.GA28508@infradead.org> References: <0ad51b41aebf65b3f3fcb9922f0f00b47932725d.1567007242.git.msuchanek@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0ad51b41aebf65b3f3fcb9922f0f00b47932725d.1567007242.git.msuchanek@suse.de> User-Agent: Mutt/1.11.4 (2019-03-13) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > /* 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. 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