mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
mm-make-pte_marker_swapin_error-more-general-fix
fix CONFIG_MMU=n build Cc: Axel Rasmussen <axelrasmussen@google.com> Cc: Peter Xu <peterx@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
@@ -523,6 +523,7 @@ static inline bool mm_tlb_flush_nested(struct mm_struct *mm)
|
|||||||
return atomic_read(&mm->tlb_flush_pending) > 1;
|
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.
|
* Computes the pte marker to copy from the given source entry into dst_vma.
|
||||||
* If no marker should be copied, returns 0.
|
* If no marker should be copied, returns 0.
|
||||||
@@ -541,6 +542,7 @@ static inline pte_marker copy_pte_marker(
|
|||||||
|
|
||||||
return dstm;
|
return dstm;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If this pte is wr-protected by uffd-wp in any form, arm the special pte to
|
* If this pte is wr-protected by uffd-wp in any form, arm the special pte to
|
||||||
|
|||||||
Reference in New Issue
Block a user