[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1911291808530.1365@www.lameter.com>
Date:   Fri, 29 Nov 2019 18:11:59 +0000 (UTC)
From:   Christopher Lameter <cl@...ux.com>
To:     Luc Van Oostenryck <luc.vanoostenryck@...il.com>
cc:     Dennis Zhou <dennis@...nel.org>,
        Ben Dooks <ben.dooks@...ethink.co.uk>,
        linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org,
        Tejun Heo <tj@...nel.org>, Nicholas Piggin <npiggin@...il.com>,
        Arnd Bergmann <arnd@...db.de>
Subject: Re: [PATCH] fix __percpu annotation in asm-generic
On Wed, 27 Nov 2019, Luc Van Oostenryck wrote:
> 1) it would strip any address space, not just __percpu, so:
>    it would need to be combined with __verify_pcpu_ptr() or,
>    * a better name should be used,
typeof_cast_kernel() to express the fact that it creates a kernel pointer
and ignored the attributes??
>    * it should be defined in a generic header, any idea where?
include/linux/compiler-types.h
> 2) while I find the current solution:
> 	typeof(T) __kernel __force *ptr = ...;
It would be
   typeof_cast_kernel(&T) *xx = xxx
or so?
Powered by blists - more mailing lists