Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1947986ybl; Thu, 29 Aug 2019 01:03:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxExjL3jFDyCOUm6Es2NDfy9tvpE7KcwJHemckt9VG7irrz4lTTj2gY9SjDRCkAuCixkwak X-Received: by 2002:a62:76d5:: with SMTP id r204mr9532483pfc.252.1567065792560; Thu, 29 Aug 2019 01:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567065792; cv=none; d=google.com; s=arc-20160816; b=UCz5xW9PEJv43YD/6EskAqqmFcUsqbVAfXsEqI+l/bFwtfKMeuRC2wEKoAMRa7ITSF s0T8N1udKJ+fGJm7wddW909Ki/33HcBcqopCL3Nj0JAndR+jsp591HXtMNqGLio6V6+c t/yiUfQ4EBu/ee1Ia89M62Hm9vDa6H7vp2HOyWVvY5FA58Be3wFqnu5hGRTmgCoFQjoS 3kjgDHWVPrWD1/EzP/mb+5BgkrLzgOOpslK5XWJsIet3gqbz2XPhJ0ozfe66CfXl11pc +Xm1WQXtaZed/M/vEaTlTUm+dmL1G55VAIGhvUmklLZjywI3CotIW3zO+iS5vtR/ZK+a ucUg== 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=TrDRlo6tswkQiQ3OI2OWjkWb4KwruICZsEfI0GzK7Ww=; b=m/5NW7ou0F/lEm3DAbPEXuFA+xXqduqBiF6gJfhhi9SerKs/oUsjSM2q8Ue+lLgm6e M3kMc9RiiRxa6dDLmlzxOAKzuwVUJTXltlJ/13oGMmUjqmhXvLFyFOt9RBEzRUWKGcPp UsJhnHpgca8AbGK+FyO5mHGEtNGM4FJUHv2lwWSK4tOin6fkIpsvMs6y1NajbviybEhP J+c1jHBXImrIQRhX395G9VrHgXzYp31UA+iNQW9GbSyefZIPrHUh4giTzcFtiZ7y4xYI jwJkhIlYbq2Gb5MOWLtLJ7CV46eLzDUK99fvbjTRuh8vaKmkjJTUxgZI0DwC4+btoVwd T9bg== 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 t21si1262192pga.294.2019.08.29.01.02.54; Thu, 29 Aug 2019 01:03:12 -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 S1726081AbfH2IBe (ORCPT + 99 others); Thu, 29 Aug 2019 04:01:34 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:32966 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbfH2IBd (ORCPT ); Thu, 29 Aug 2019 04:01:33 -0400 Received: by mail-qt1-f195.google.com with SMTP id v38so2719048qtb.0 for ; Thu, 29 Aug 2019 01:01:33 -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; bh=TrDRlo6tswkQiQ3OI2OWjkWb4KwruICZsEfI0GzK7Ww=; b=BZ+TVMIWJyQNHNJs3arivMJfihq7Ax/RiteHqaSWQuHdBBw9R2NLi8m0uxjYhvvZVP Kgc5VwTCEG2jP7dhG2ihv+4/psbFgbazY8QXA9z1JXVAWMUFj5GgXMccEqd/iLBcYF8R OsHG3ah2HU95CeHtjhyd0id2plNIpeMH5kgg9tDDAHB3rdl0m9pTRdPWjMrMJFCJHvhl PxvTZuOeTeK1ds9rP1ROcu6mzu/l4yNVkXKIrLAsCcNy77GH2GZqf7z+f2QBfj5KTwXx GRxr2N18uQqpGuzsNj6F/uUI6UdVIU4sKxDh3UPr68uol/Q6dCGOobxhXs9aDkMFNABc v7eg== X-Gm-Message-State: APjAAAX1lyUB6gLOrBAER7aCbQaxdkS/UM9NoJHyPduPVqC3KomBUe2g X9GvwrMw3H6irIWGBmfJ4MHPvtLpoANI6a6IPTA= X-Received: by 2002:ac8:35bb:: with SMTP id k56mr6444401qtb.142.1567065692859; Thu, 29 Aug 2019 01:01:32 -0700 (PDT) MIME-Version: 1.0 References: <0ad51b41aebf65b3f3fcb9922f0f00b47932725d.1567007242.git.msuchanek@suse.de> <20190829064624.GA28508@infradead.org> In-Reply-To: <20190829064624.GA28508@infradead.org> From: Arnd Bergmann Date: Thu, 29 Aug 2019 10:01:16 +0200 Message-ID: Subject: Re: [PATCH v3 3/4] powerpc/64: make buildable without CONFIG_COMPAT To: Christoph Hellwig Cc: Michal Suchanek , linuxppc-dev , David Hildenbrand , Heiko Carstens , David Howells , Paul Mackerras , Breno Leitao , Michael Neuling , Nicolai Stange , Allison Randal , Geert Uytterhoeven , Joel Stanley , Firoz Khan , Nicholas Piggin , Thomas Gleixner , Christian Brauner , Greg Kroah-Hartman , Linux Kernel Mailing List , "Eric W. Biederman" , Andrew Donnellan , Hari Bathini 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 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? I suspect most if not all could be changed to the generic in_compat_syscall() that we use outside of architecture specific code. Arnd