[lkml]   [2019]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [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?


> 2) while I find the current solution:
> typeof(T) __kernel __force *ptr = ...;

It would be

typeof_cast_kernel(&T) *xx = xxx

or so?

 \ /
  Last update: 2019-11-29 19:12    [W:0.093 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site