lkml.org 
[lkml]   [2020]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] sparse: use identifiers to define address spaces
Hi Luc,

On Thu, Jun 18, 2020 at 12:02 AM Luc Van Oostenryck
<luc.vanoostenryck@gmail.com> wrote:
>
> diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h
> index 21aed0981edf..e368384445b6 100644
> --- a/include/linux/compiler_types.h
> +++ b/include/linux/compiler_types.h
> @@ -5,20 +5,20 @@
> #ifndef __ASSEMBLY__
>
> #ifdef __CHECKER__
> -# define __user __attribute__((noderef, address_space(1)))
> # define __kernel __attribute__((address_space(0)))
> +# define __user __attribute__((noderef, address_space(__user)))

I guess `__kernel` moves to the first place since it uses the first
address space?

Acked-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>

Cheers,
Miguel

\
 
 \ /
  Last update: 2020-06-18 04:07    [W:0.086 / U:1.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site