Skip to content

Commit

Permalink
mm-make-pte_marker_swapin_error-more-general-fix
Browse files Browse the repository at this point in the history
fix CONFIG_MMU=n build

Cc: Axel Rasmussen <[email protected]>
Cc: Peter Xu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
akpm00 committed Aug 18, 2023
1 parent af19487 commit f92cedf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/mm_inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ static inline bool mm_tlb_flush_nested(struct mm_struct *mm)
return atomic_read(&mm->tlb_flush_pending) > 1;
}

#ifdef CONFIG_MMU
/*
* Computes the pte marker to copy from the given source entry into dst_vma.
* If no marker should be copied, returns 0.
Expand All @@ -541,6 +542,7 @@ static inline pte_marker copy_pte_marker(

return dstm;
}
#endif

/*
* If this pte is wr-protected by uffd-wp in any form, arm the special pte to
Expand Down

0 comments on commit f92cedf

Please sign in to comment.