Skip to contentSkip to conversation

riscv: Remove duplicate definition in pagtable.h

PATCH In review [email protected] 2 participants 3 messages Jan 12, 2021 – Jan 13, 2021 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: Remove duplicate definition in pagtable.h

From: Guo Ren <[email protected]>

PAGE_KERNEL_EXEC has been defined above.

Cc Palmer Dabbelt <[email protected]>
Cc Pekka Enberg <[email protected]>
---
 arch/riscv/include/asm/pgtable.h | 1 -
 1 file changed, 1 deletion(-)
arch/riscv/include/asm/pgtable.h +0 -1
index 41a72861987c..dff51a84e52e 100644
@@ -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)
 
Signature · 7 lines
2.17.1


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
#1 lore raw
Quoted 28 lines · On Mon, Jan 11, 2021 at 6:38 PM <[email protected]> wrote:

From: Guo Ren <[email protected]>

PAGE_KERNEL_EXEC has been defined above.

Cc Palmer Dabbelt <[email protected]>
Cc Pekka Enberg <[email protected]>
---
 arch/riscv/include/asm/pgtable.h | 1 -
 1 file changed, 1 deletion(-)
arch/riscv/include/asm/pgtable.h +0 -2
index 41a72861987c..dff51a84e52e 100644
@@ -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

Quoted 4 lines

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

It's already on the fixes.

http://lists.infradead.org/pipermail/linux-riscv/2021-January/004134.html

Signature · 7 lines
Regards,
Atish

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
author
#2 lore raw
Quoted 30 lines · Atish Patra
Quoted 28 lines · On Mon, Jan 11, 2021 at 6:38 PM <[email protected]> wrote:

From: Guo Ren <[email protected]>

PAGE_KERNEL_EXEC has been defined above.

Cc Palmer Dabbelt <[email protected]>
Cc Pekka Enberg <[email protected]>
---
 arch/riscv/include/asm/pgtable.h | 1 -
 1 file changed, 1 deletion(-)
arch/riscv/include/asm/pgtable.h +0 -2
index 41a72861987c..dff51a84e52e 100644
@@ -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

Quoted 8 lines
Quoted 4 lines

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

It's already on the fixes.

http://lists.infradead.org/pipermail/linux-riscv/2021-January/004134.html

Great, ignore mine :)

Signature · 9 lines
Best Regards
 Guo Ren

ML: https://lore.kernel.org/linux-csky/

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv