From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Lameter Subject: Re: [PATCH] fix __percpu annotation in asm-generic Date: Mon, 2 Dec 2019 19:42:21 +0000 (UTC) Message-ID: References: <20191126200619.63348-1-luc.vanoostenryck@gmail.com> <20191127175350.GA52308@dennisz-mbp.dhcp.thefacebook.com> <20191127225432.ttwxm3hxtg5utfaz@ltop.local> <20191130000037.zsendu5pk7p75xqf@ltop.local> <20191202190718.GA18019@dennisz-mbp> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20191202190718.GA18019@dennisz-mbp> Sender: linux-kernel-owner@vger.kernel.org To: Dennis Zhou Cc: Luc Van Oostenryck , Ben Dooks , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Tejun Heo , Nicholas Piggin , Arnd Bergmann List-Id: linux-arch.vger.kernel.org On Mon, 2 Dec 2019, Dennis Zhou wrote: > I think typeof_cast_kernel() or typeof_force_kernel() are reasonable > names. I kind of like the idea of cast/force over strip because we're > really still moving address spaces even if it is moving it back. I vote for typeof_cast_kernel()... percpu addresses are more like an alias.... or more precisely an offset to a base pointer (that already belongs to a certain "address space") and we use the notion of a distinctly different "address space" in the linker to categorize these references. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gentwo.org ([3.19.106.255]:46878 "EHLO gentwo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727927AbfLBTmW (ORCPT ); Mon, 2 Dec 2019 14:42:22 -0500 Date: Mon, 2 Dec 2019 19:42:21 +0000 (UTC) From: Christopher Lameter Subject: Re: [PATCH] fix __percpu annotation in asm-generic In-Reply-To: <20191202190718.GA18019@dennisz-mbp> Message-ID: References: <20191126200619.63348-1-luc.vanoostenryck@gmail.com> <20191127175350.GA52308@dennisz-mbp.dhcp.thefacebook.com> <20191127225432.ttwxm3hxtg5utfaz@ltop.local> <20191130000037.zsendu5pk7p75xqf@ltop.local> <20191202190718.GA18019@dennisz-mbp> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-arch-owner@vger.kernel.org List-ID: To: Dennis Zhou Cc: Luc Van Oostenryck , Ben Dooks , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Tejun Heo , Nicholas Piggin , Arnd Bergmann Message-ID: <20191202194221.DUfMHEYTmiXWJRPpHB5wY0ul01N5he6AEukGdGdheys@z> On Mon, 2 Dec 2019, Dennis Zhou wrote: > I think typeof_cast_kernel() or typeof_force_kernel() are reasonable > names. I kind of like the idea of cast/force over strip because we're > really still moving address spaces even if it is moving it back. I vote for typeof_cast_kernel()... percpu addresses are more like an alias.... or more precisely an offset to a base pointer (that already belongs to a certain "address space") and we use the notion of a distinctly different "address space" in the linker to categorize these references.