Skip to content

Commit f92cedf

Browse files
committed
mm-make-pte_marker_swapin_error-more-general-fix
fix CONFIG_MMU=n build Cc: Axel Rasmussen <[email protected]> Cc: Peter Xu <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent af19487 commit f92cedf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/mm_inline.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ static inline bool mm_tlb_flush_nested(struct mm_struct *mm)
523523
return atomic_read(&mm->tlb_flush_pending) > 1;
524524
}
525525

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

542543
return dstm;
543544
}
545+
#endif
544546

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

0 commit comments

Comments
 (0)