lkml.org 
[lkml]   [2022]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH RFC 05/13] mm/rmap: remove do_page_add_anon_rmap()
On Thu, Feb 24, 2022 at 9:41 AM David Hildenbrand <david@redhat.com> wrote:
>
> Actually, I thought about doing it similarly to what I did in
> page_alloc.c with fpi_t:
>
> typedef int __bitwise fpi_t;
>
> #define FPI_NONE ((__force fpi_t)0)
>
> I can do something similar here.

Yeah, that looks good. And then the relevant function declarations and
definitions also have that explicit type there instead of 'int', which
adds a bit more documentation for people grepping for use.

Thanks,
Linus

\
 
 \ /
  Last update: 2022-02-24 18:54    [W:0.070 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site