aboutsummaryrefslogtreecommitdiff
path: root/arch/s390/mm/pageattr.c
diff options
context:
space:
mode:
authorSven Schnelle <[email protected]>2021-07-28 21:02:53 +0200
committerHeiko Carstens <[email protected]>2021-07-30 17:09:02 +0200
commite41ba1115a351dd037c21ac75660638219d51485 (patch)
tree11beecdfc9fa677a0e4cd1c1ad638d96532decda /arch/s390/mm/pageattr.c
parentf99e12b21b84feb1fd9d845a15096772f1659461 (diff)
s390: add support for KFENCE
Signed-off-by: Sven Schnelle <[email protected]> [[email protected]: simplify/rework code] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Carstens <[email protected]>
Diffstat (limited to 'arch/s390/mm/pageattr.c')
-rw-r--r--arch/s390/mm/pageattr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/mm/pageattr.c b/arch/s390/mm/pageattr.c
index 2ad95e5c79c1..dd45010f0e8d 100644
--- a/arch/s390/mm/pageattr.c
+++ b/arch/s390/mm/pageattr.c
@@ -8,6 +8,7 @@
#include <asm/cacheflush.h>
#include <asm/facility.h>
#include <asm/pgalloc.h>
+#include <asm/kfence.h>
#include <asm/page.h>
#include <asm/set_memory.h>
@@ -326,7 +327,7 @@ int __set_memory(unsigned long addr, int numpages, unsigned long flags)
return change_page_attr(addr, addr + numpages * PAGE_SIZE, flags);
}
-#ifdef CONFIG_DEBUG_PAGEALLOC
+#if defined(CONFIG_DEBUG_PAGEALLOC) || defined(CONFIG_KFENCE)
static void ipte_range(pte_t *pte, unsigned long address, int nr)
{