mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] riscv: Remove duplicate definition in pagtable.h
@ 2021-01-12  2:35 guoren
  2021-01-12  8:17 ` Atish Patra
  0 siblings, 1 reply; 3+ messages in thread
From: guoren @ 2021-01-12  2:35 UTC (permalink / raw)
  To: palmerdabbelt
  Cc: linux-riscv, linux-kernel, Guo Ren, Palmer Dabbelt, Pekka Enberg

From: Guo Ren <guoren@linux.alibaba.com>

PAGE_KERNEL_EXEC has been defined above.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Pekka Enberg <penberg@kernel.org>
---
 arch/riscv/include/asm/pgtable.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h
index 41a72861987c..dff51a84e52e 100644
--- a/arch/riscv/include/asm/pgtable.h
+++ b/arch/riscv/include/asm/pgtable.h
@@ -101,7 +101,6 @@
 #define PAGE_KERNEL		__pgprot(_PAGE_KERNEL)
 #define PAGE_KERNEL_EXEC	__pgprot(_PAGE_KERNEL | _PAGE_EXEC)
 #define PAGE_KERNEL_READ	__pgprot(_PAGE_KERNEL & ~_PAGE_WRITE)
-#define PAGE_KERNEL_EXEC	__pgprot(_PAGE_KERNEL | _PAGE_EXEC)
 #define PAGE_KERNEL_READ_EXEC	__pgprot((_PAGE_KERNEL & ~_PAGE_WRITE) \
 					 | _PAGE_EXEC)
 
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-13  2:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12  2:35 [PATCH] riscv: Remove duplicate definition in pagtable.h guoren
2021-01-12  8:17 ` Atish Patra
2021-01-13  2:57   ` Guo Ren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®