projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af19487
)
mm-make-pte_marker_swapin_error-more-general-fix
author
Andrew Morton
<akpm@linux-foundation.org>
Sun, 9 Jul 2023 01:03:23 +0000
(18:03 -0700)
committer
Andrew Morton
<akpm@linux-foundation.org>
Fri, 18 Aug 2023 17:12:16 +0000
(10:12 -0700)
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>
include/linux/mm_inline.h
patch
|
blob
|
history
diff --git
a/include/linux/mm_inline.h
b/include/linux/mm_inline.h
index a86c84600787763359e3e588009a1b29ef44f91a..8148b30a9df10874967fc461948fbc08b1c2f629 100644
(file)
--- 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