projects
/
linux
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hugetlb: introduce generic version of huge_pte_wrprotect
[linux]
/
include
/
asm-generic
/
hugetlb.h
diff --git
a/include/asm-generic/hugetlb.h
b/include/asm-generic/hugetlb.h
index
2fc3d68
..
cd96976
100644
(file)
--- a/
include/asm-generic/hugetlb.h
+++ b/
include/asm-generic/hugetlb.h
@@
-80,4
+80,11
@@
static inline int huge_pte_none(pte_t pte)
}
#endif
+#ifndef __HAVE_ARCH_HUGE_PTE_WRPROTECT
+static inline pte_t huge_pte_wrprotect(pte_t pte)
+{
+ return pte_wrprotect(pte);
+}
+#endif
+
#endif /* _ASM_GENERIC_HUGETLB_H */