[PATCH] riscv: Drop a duplicated PAGE_KERNEL_EXEC

Atish Patra atishp at atishpatra.org
Thu Nov 12 02:26:04 EST 2020


On Wed, Nov 11, 2020 at 3:47 AM Kefeng Wang <wangkefeng.wang at huawei.com> wrote:
>
> commit b91540d52a08 ("RISC-V: Add EFI runtime services") add
> a duplicated PAGE_KERNEL_EXEC, kill it.
>
> Signed-off-by: Kefeng Wang <wangkefeng.wang at huawei.com>
> ---
>  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 183f1f4b2ae6..73e8b5e5bb65 100644
> --- a/arch/riscv/include/asm/pgtable.h
> +++ b/arch/riscv/include/asm/pgtable.h
> @@ -99,7 +99,6 @@
>                                 | _PAGE_DIRTY)
>
>  #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) \
> --
> 2.26.2
>
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv

Apologies for the oversight. Thanks for the quick fix :).

Reviewed-by: Atish Patra <atish.patra at wdc.com>
-- 
Regards,
Atish



More information about the linux-riscv mailing list