linux/arch
Geert Uytterhoeven 8d91b09733
riscv: Consistify protect_kernel_linear_mapping_text_rodata() use
The various uses of protect_kernel_linear_mapping_text_rodata() are
not consistent:
  - Its definition depends on "64BIT && !XIP_KERNEL",
  - Its forward declaration depends on MMU,
  - Its single caller depends on "STRICT_KERNEL_RWX && 64BIT && MMU &&
    !XIP_KERNEL".

Fix this by settling on the dependencies of the caller, which can be
simplified as STRICT_KERNEL_RWX depends on "MMU && !XIP_KERNEL".
Provide a dummy definition, as the caller is protected by
"IS_ENABLED(CONFIG_STRICT_KERNEL_RWX)" instead of "#ifdef
CONFIG_STRICT_KERNEL_RWX".

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
2021-05-06 09:40:15 -07:00
..
alpha Add Landlock, a new LSM from Mickaël Salaün <mic@linux.microsoft.com> 2021-05-01 18:50:44 -07:00
arc mm: drop redundant HAVE_ARCH_TRANSPARENT_HUGEPAGE 2021-05-05 11:27:25 -07:00
arm Merge branch 'akpm' (patches from Andrew) 2021-05-05 13:50:15 -07:00
arm64 Merge branch 'akpm' (patches from Andrew) 2021-05-05 13:50:15 -07:00
csky arch/csky patches for 5.13-rc1 2021-05-03 12:58:31 -07:00
h8300 mm: move mem_init_print_info() into mm_init() 2021-04-30 11:20:42 -07:00
hexagon Hexagon: add target builtins to kernel 2021-05-03 11:04:22 -05:00
ia64 Merge branch 'akpm' (patches from Andrew) 2021-05-05 13:50:15 -07:00
m68k M68knommu fixes include: 2021-05-04 10:48:05 -07:00
microblaze tracing updates for 5.13 2021-05-03 11:19:54 -07:00
mips Merge branch 'akpm' (patches from Andrew) 2021-05-05 13:50:15 -07:00
nds32 tracing updates for 5.13 2021-05-03 11:19:54 -07:00
nios2 Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2021-05-02 09:14:01 -07:00
openrisc mm: move mem_init_print_info() into mm_init() 2021-04-30 11:20:42 -07:00
parisc Merge branch 'akpm' (patches from Andrew) 2021-05-05 13:50:15 -07:00
powerpc Merge branch 'akpm' (patches from Andrew) 2021-05-05 13:50:15 -07:00
riscv riscv: Consistify protect_kernel_linear_mapping_text_rodata() use 2021-05-06 09:40:15 -07:00
s390 Merge branch 'akpm' (patches from Andrew) 2021-05-05 13:50:15 -07:00
sh Merge branch 'akpm' (patches from Andrew) 2021-05-05 13:50:15 -07:00
sparc Merge branch 'akpm' (patches from Andrew) 2021-05-05 13:50:15 -07:00
um This pull request contains the following changes for UML: 2021-05-04 18:15:10 -07:00
x86 Merge branch 'akpm' (patches from Andrew) 2021-05-05 13:50:15 -07:00
xtensa Add Landlock, a new LSM from Mickaël Salaün <mic@linux.microsoft.com> 2021-05-01 18:50:44 -07:00
.gitignore
Kconfig Add Landlock, a new LSM from Mickaël Salaün <mic@linux.microsoft.com> 2021-05-01 18:50:44 -07:00