diff options
| author | Andrew Morton <[email protected]> | 2023-07-08 18:03:23 -0700 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-08-18 10:12:16 -0700 |
| commit | f92cedfa39ef208c9685d2fdd8215bb58178571b (patch) | |
| tree | eedeab84cf9e780e450476317a9a2e9a9d4add78 /include/linux | |
| parent | af19487f00f34ff8643921d7909dbb3fedc7e329 (diff) | |
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]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mm_inline.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mm_inline.h b/include/linux/mm_inline.h index a86c84600787..8148b30a9df1 100644 --- a/include/linux/mm_inline.h +++ b/include/linux/mm_inline.h @@ -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. @@ -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 |