aboutsummaryrefslogtreecommitdiff
path: root/include/linux/mman.h
diff options
context:
space:
mode:
authorCatalin Marinas <[email protected]>2024-03-12 20:00:38 +0000
committerCatalin Marinas <[email protected]>2024-03-13 10:59:38 +0000
commit1ef21fcd6a50f011680dbbd678c1bea8e3f67ab9 (patch)
tree489e991dea81ec4f46e3c9404bd08034cc209760 /include/linux/mman.h
parent69ebc0182406541f0be0f086cdfff13ac56e7385 (diff)
Revert "mm: add arch hook to validate mmap() prot flags"
This reverts commit cb1a393c40eee2f1692c995ea0cc6e45bfccde4d. Since the arm64 WXN patch has been reverted, remove this hook as it would not have any users. Signed-off-by: Catalin Marinas <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/mman.h')
-rw-r--r--include/linux/mman.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/linux/mman.h b/include/linux/mman.h
index ec5e7f606e43..dc7048824be8 100644
--- a/include/linux/mman.h
+++ b/include/linux/mman.h
@@ -124,21 +124,6 @@ static inline bool arch_validate_flags(unsigned long flags)
#define arch_validate_flags arch_validate_flags
#endif
-#ifndef arch_validate_mmap_prot
-/*
- * This is called from mmap(), which ignores unknown prot bits so the default
- * is to accept anything.
- *
- * Returns true if the prot flags are valid
- */
-static inline bool arch_validate_mmap_prot(unsigned long prot,
- unsigned long addr)
-{
- return true;
-}
-#define arch_validate_mmap_prot arch_validate_mmap_prot
-#endif
-
/*
* Optimisation macro. It is equivalent to:
* (x & bit1) ? bit2 : 0