Skip to content

Commit 0877ad1

Browse files
Nikolay Borisovbp3tk0v
authored andcommitted
x86/mm: Remove duplicated __PAGE_KERNEL(_EXEC) definitions
__PAGE_KERNEL(_EXEC) is defined twice, just remove the superfluous set. No functional changes. Signed-off-by: Nikolay Borisov <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/[email protected]
1 parent 347e9f5 commit 0877ad1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/x86/include/asm/pgtable_types.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,6 @@ enum page_cache_mode {
214214
#define PAGE_READONLY __pg(__PP| 0|_USR|___A|__NX| 0| 0| 0)
215215
#define PAGE_READONLY_EXEC __pg(__PP| 0|_USR|___A| 0| 0| 0| 0)
216216

217-
#define __PAGE_KERNEL (__PP|__RW| 0|___A|__NX|___D| 0|___G)
218-
#define __PAGE_KERNEL_EXEC (__PP|__RW| 0|___A| 0|___D| 0|___G)
219-
220217
/*
221218
* Page tables needs to have Write=1 in order for any lower PTEs to be
222219
* writable. This includes shadow stack memory (Write=0, Dirty=1)

0 commit comments

Comments
 (0)