s390/mm: Remove unused PAGE_KERNEL_EXEC and friends
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 9 Dec 2024 09:45:17 +0000 (10:45 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 17 Dec 2024 11:46:13 +0000 (12:46 +0100)
Remove unused PAGE_KERNEL_EXEC, SEGMENT_KERNEL_EXEC,
and REGION3_KERNEL_EXEC.

Reviewed-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/pgtable.h

index 235360314f6732f5fc4db75331795fa1dbfc7518..889974fc9810687d2c4bf8c74c8b833217eb29bc 100644 (file)
@@ -458,8 +458,6 @@ static inline int is_module_addr(void *addr)
                                 _PAGE_YOUNG | _PAGE_DIRTY | _PAGE_NOEXEC)
 #define PAGE_KERNEL_RO __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_YOUNG | \
                                 _PAGE_PROTECT | _PAGE_NOEXEC)
-#define PAGE_KERNEL_EXEC __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
-                                 _PAGE_YOUNG | _PAGE_DIRTY)
 
 /*
  * Segment entry (large page) protection definitions.
@@ -494,12 +492,6 @@ static inline int is_module_addr(void *addr)
                                 _SEGMENT_ENTRY_YOUNG | \
                                 _SEGMENT_ENTRY_PROTECT | \
                                 _SEGMENT_ENTRY_NOEXEC)
-#define SEGMENT_KERNEL_EXEC __pgprot(_SEGMENT_ENTRY |  \
-                                _SEGMENT_ENTRY_LARGE | \
-                                _SEGMENT_ENTRY_READ |  \
-                                _SEGMENT_ENTRY_WRITE | \
-                                _SEGMENT_ENTRY_YOUNG | \
-                                _SEGMENT_ENTRY_DIRTY)
 
 /*
  * Region3 entry (large page) protection definitions.
@@ -520,13 +512,6 @@ static inline int is_module_addr(void *addr)
                                   _REGION3_ENTRY_YOUNG |  \
                                   _REGION_ENTRY_PROTECT | \
                                   _REGION_ENTRY_NOEXEC)
-#define REGION3_KERNEL_EXEC __pgprot(_REGION_ENTRY_TYPE_R3 | \
-                                _REGION3_ENTRY_PRESENT | \
-                                _REGION3_ENTRY_LARGE |  \
-                                _REGION3_ENTRY_READ |   \
-                                _REGION3_ENTRY_WRITE |  \
-                                _REGION3_ENTRY_YOUNG |  \
-                                _REGION3_ENTRY_DIRTY)
 
 static inline bool mm_p4d_folded(struct mm_struct *mm)
 {