Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21711985ybl; Mon, 6 Jan 2020 09:42:40 -0800 (PST) X-Google-Smtp-Source: APXvYqxzxk0kCYN15AgAXrlnKJd4mKT6jn22qs5VuIqbRzloBxfRVyjqRZr6Covcs1kR7LfzJZEw X-Received: by 2002:aca:36c1:: with SMTP id d184mr6118909oia.70.1578332560389; Mon, 06 Jan 2020 09:42:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578332560; cv=none; d=google.com; s=arc-20160816; b=Lb+2PZUqNVNYVbDYMnrbLF/NTHcg/5Bb/7fw3G3MlRgdHkzegcVMKIEE/hUa7Vequ0 Ksi7ssTyOOvsny50DkehSXRzRTgrVyh+wuw6jZkTb8dXzwbkLtTGn8LHkul5iiWldg3J 5JkZAu1oJ+PqsY0H1z8r84O5n0R1n0rVUXVbCfMjAqlNBU62iGxKVJ8XznZYUg9D/HFy TbIwQGS+Io/QY7oGXxiz2unIw0sD151V3JgmL+Z9ditVa8pvVhMNyw3u5w56oDMazFj0 6+RxdTIX+Y+pGFzKlhAveUHDc3CkbFzOKlha/Z+3VWrrWggtxtoSA4sLhAEosX+ScX3a 22mg== 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=xolrUFuFo0veWVzAhMA1xOuRB530jYpYhGCXctZ36sE=; b=wMoA6kOFpj/JMp22WsgV7jSBTTcy7G0l6oDfY/PNu4gzOMwC99tNiL9RJWXOOVItHN PWR52XsfSMIluafnj4pxBSTlchLItuWnLZSD3fX6Lfhhy/VIIja2iNMUuneQ1Nfxd/oj 5EqjxN4EbR1URvZBP/d6yu5LyqWEP2xAChUh9XbKRfMcBp4aaNKJ/ERK6vOpbA/4gMlA w+nz1Hk7sRmUjltIZeJIcy/ZMlyfg8CkIN3biB764zHyLPlB5h5WnsEpzflBLO6e4j6c xNiirrobEqfbXKAtV5TjuOA34uORr8emSVuGAyK+seOfCCHZug1eySbajwV/fdcPT5IQ 9bCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZdvlhiL4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si32526186oih.141.2020.01.06.09.42.28; Mon, 06 Jan 2020 09:42:40 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ZdvlhiL4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726722AbgAFRkg (ORCPT + 99 others); Mon, 6 Jan 2020 12:40:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:58872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbgAFRkg (ORCPT ); Mon, 6 Jan 2020 12:40:36 -0500 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 249F42072A; Mon, 6 Jan 2020 17:40:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578332435; bh=2O0W/tynC6b80YiiQJpFk+G/MQLdNHQcIH7GT7Csbyc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZdvlhiL42A1vrTkEu8EuJM3kwhLOD5LAtOJZ2dMMQ+Trc98AtvLqwbzxFuJAY3qGu AR9tbjzyxO35jsrOCkr4krGu09W0XFU5HVDpoh1Voqju+MowENLQR9vGskyNASKx+3 by7d90gv3cMm9dd0JtCc6D+hev+8ErOYAiM2/FCs= Date: Mon, 6 Jan 2020 17:40:28 +0000 From: Will Deacon To: Arnd Bergmann Cc: "James E.J. Bottomley" , "Martin K. Petersen" , Catalin Marinas , Ralf Baechle , Paul Burton , James Hogan , "James E.J. Bottomley" , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Robert Richter , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , "David S. Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, oprofile-list@lists.sf.net, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org Subject: Re: [PATCH v3 02/22] compat: provide compat_ptr() on all architectures Message-ID: <20200106174027.GC9676@willie-the-truck> References: <20200102145552.1853992-1-arnd@arndb.de> <20200102145552.1853992-3-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200102145552.1853992-3-arnd@arndb.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 02, 2020 at 03:55:20PM +0100, Arnd Bergmann wrote: > In order to avoid needless #ifdef CONFIG_COMPAT checks, > move the compat_ptr() definition to linux/compat.h > where it can be seen by any file regardless of the > architecture. > > Only s390 needs a special definition, this can use the > self-#define trick we have elsewhere. > > Signed-off-by: Arnd Bergmann > --- > arch/arm64/include/asm/compat.h | 17 ----------------- > arch/mips/include/asm/compat.h | 18 ------------------ > arch/parisc/include/asm/compat.h | 17 ----------------- > arch/powerpc/include/asm/compat.h | 17 ----------------- > arch/powerpc/oprofile/backtrace.c | 2 +- > arch/s390/include/asm/compat.h | 6 +----- > arch/sparc/include/asm/compat.h | 17 ----------------- > arch/x86/include/asm/compat.h | 17 ----------------- > include/linux/compat.h | 18 ++++++++++++++++++ > 9 files changed, 20 insertions(+), 109 deletions(-) For arm64: Acked-by: Will Deacon Will