Skip to content

Commit db449b1

Browse files
hcahcaAlexander Gordeev
authored andcommitted
s390/mm: Remove unused PAGE_KERNEL_EXEC and friends
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>
1 parent 62b87e0 commit db449b1

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

arch/s390/include/asm/pgtable.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,6 @@ static inline int is_module_addr(void *addr)
458458
_PAGE_YOUNG | _PAGE_DIRTY | _PAGE_NOEXEC)
459459
#define PAGE_KERNEL_RO __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_YOUNG | \
460460
_PAGE_PROTECT | _PAGE_NOEXEC)
461-
#define PAGE_KERNEL_EXEC __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
462-
_PAGE_YOUNG | _PAGE_DIRTY)
463461

464462
/*
465463
* Segment entry (large page) protection definitions.
@@ -494,12 +492,6 @@ static inline int is_module_addr(void *addr)
494492
_SEGMENT_ENTRY_YOUNG | \
495493
_SEGMENT_ENTRY_PROTECT | \
496494
_SEGMENT_ENTRY_NOEXEC)
497-
#define SEGMENT_KERNEL_EXEC __pgprot(_SEGMENT_ENTRY | \
498-
_SEGMENT_ENTRY_LARGE | \
499-
_SEGMENT_ENTRY_READ | \
500-
_SEGMENT_ENTRY_WRITE | \
501-
_SEGMENT_ENTRY_YOUNG | \
502-
_SEGMENT_ENTRY_DIRTY)
503495

504496
/*
505497
* Region3 entry (large page) protection definitions.
@@ -520,13 +512,6 @@ static inline int is_module_addr(void *addr)
520512
_REGION3_ENTRY_YOUNG | \
521513
_REGION_ENTRY_PROTECT | \
522514
_REGION_ENTRY_NOEXEC)
523-
#define REGION3_KERNEL_EXEC __pgprot(_REGION_ENTRY_TYPE_R3 | \
524-
_REGION3_ENTRY_PRESENT | \
525-
_REGION3_ENTRY_LARGE | \
526-
_REGION3_ENTRY_READ | \
527-
_REGION3_ENTRY_WRITE | \
528-
_REGION3_ENTRY_YOUNG | \
529-
_REGION3_ENTRY_DIRTY)
530515

531516
static inline bool mm_p4d_folded(struct mm_struct *mm)
532517
{

0 commit comments

Comments
 (0)