Skip to content

Commit ab7965d

Browse files
Christoph Hellwigtorvalds
authored andcommitted
mm: fix the try_to_unmap prototype for !CONFIG_MMU
Adjust the nommu stub of try_to_unmap to match the changed protype for the full version. Turn it into an inline instead of a macro to generally improve the type checking. Link: https://lkml.kernel.org/r/[email protected] Fixes: 1fb08ac ("mm: rmap: make try_to_unmap() void function") Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Yang Shi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 0614784 commit ab7965d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/linux/rmap.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,9 @@ static inline int page_referenced(struct page *page, int is_locked,
291291
return 0;
292292
}
293293

294-
#define try_to_unmap(page, refs) false
294+
static inline void try_to_unmap(struct page *page, enum ttu_flags flags)
295+
{
296+
}
295297

296298
static inline int page_mkclean(struct page *page)
297299
{

0 commit comments

Comments
 (0)