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
..
2019-06-17 10:34:03 -07:00
2021-01-14 15:09:11 -08:00
2019-11-17 15:17:39 -08:00
2020-03-31 11:28:30 -07:00
2021-04-26 08:25:23 -07:00
2020-10-02 14:31:03 -07:00
2020-10-02 14:31:03 -07:00
2021-03-09 20:46:00 -08:00
2021-02-22 18:44:53 -08:00
2020-05-18 11:38:10 -07:00
2021-04-26 08:25:23 -07:00
2021-01-14 15:09:06 -08:00
2021-02-18 23:18:06 -08:00
2021-02-18 23:18:06 -08:00
2021-05-01 08:53:41 -07:00
2021-01-14 15:09:06 -08:00
2020-06-03 20:09:50 -07:00
2021-04-26 08:25:10 -07:00
2021-01-07 19:00:50 -08:00
2021-03-09 18:18:31 -08:00
2021-04-26 08:25:09 -07:00
2021-01-14 15:09:08 -08:00
2021-01-14 15:09:08 -08:00