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
..
2020-11-25 09:44:27 -08:00
2021-04-26 08:24:55 -07:00
2021-04-26 08:24:56 -07:00
2021-03-09 20:45:51 -08:00
2021-04-26 08:24:55 -07:00
2020-07-29 16:14:18 +02:00
2020-07-17 09:28:35 -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-06-08 11:05:58 -07:00
2020-09-15 18:46:08 -07:00
2020-09-19 13:21:11 -07:00
2020-06-10 19:47:16 -07:00
2020-06-12 12:07:58 -07:00
2020-03-31 11:28:30 -07:00
2021-04-26 08:24:55 -07:00
2020-03-03 10:28:13 -08:00
2019-06-05 17:36:37 +02:00
2020-12-09 08:37:27 +01:00
2021-04-26 08:25:23 -07:00
2021-04-26 08:24:58 -07:00
2018-04-02 19:59:43 -07:00
2020-10-02 14:31:03 -07:00
2021-04-26 08:25:01 -07:00
2020-03-27 23:58:51 -04:00
2020-07-09 20:12:28 -07:00
2020-06-03 20:09:46 -07:00
2020-05-04 14:08:59 -07:00
2019-12-19 09:32:45 -07:00
2020-10-02 14:31:03 -07:00
2020-07-30 11:37:33 -07:00
2021-03-09 20:46:00 -08:00
2019-11-05 09:20:42 -08:00
2020-07-30 11:37:43 -07:00
2021-02-22 18:44:53 -08:00
2020-12-29 15:36:49 -08:00
2020-05-18 11:38:10 -07:00
2021-04-26 08:25:23 -07:00
2020-07-09 20:12:28 -07:00
2021-01-14 15:09:06 -08:00
2019-06-05 17:36:37 +02:00
2020-07-30 11:37:46 -07:00
2020-05-13 17:11:46 -07:00
2021-02-18 23:18:06 -08:00
2021-02-18 23:18:06 -08:00
2021-01-14 15:08:58 -08:00
2020-04-23 10:50:26 +09:00
2020-09-25 00:36:41 +09:00
2021-01-14 15:08:58 -08:00
2021-05-01 08:53:31 -07:00
2020-05-18 11:38:12 -07:00
2020-05-18 11:38:13 -07:00
2021-01-14 15:08:58 -08:00
2020-05-12 16:21:46 -07:00
2020-08-07 11:33:26 -07:00
2020-11-16 16:57:18 +01:00
2020-06-09 09:39:14 -07:00
2019-06-05 17:36:37 +02:00
2021-05-01 08:53:41 -07:00
2021-01-14 15:09:06 -08:00
2021-03-09 20:46:07 -08:00
2020-06-03 20:09:50 -07:00
2021-03-09 20:46:02 -08:00
2021-05-06 09:24:18 -07:00
2020-11-20 11:16:35 -08:00
2021-04-26 08:24:55 -07:00
2021-05-06 09:40:15 -07:00
2021-04-26 08:25:10 -07:00
2021-01-07 19:00:50 -08:00
2019-11-12 12:04:52 -08:00
2019-11-12 12:04:52 -08:00
2019-06-05 17:36:37 +02:00
2021-01-14 15:09:10 -08:00
2021-01-14 15:09:11 -08:00
2021-03-09 18:18:31 -08:00
2019-11-05 09:20:42 -08:00
2021-04-26 08:25:09 -07:00
2021-01-14 15:09:08 -08:00
2021-03-09 20:46:03 -08:00
2019-06-05 17:36:37 +02:00
2021-04-26 08:24:58 -07:00
2021-05-02 09:14:01 -07:00
2019-06-05 17:36:37 +02:00
2021-01-14 15:09:08 -08:00
2021-01-12 20:34:44 -08:00
2021-04-26 08:24:55 -07:00
2020-04-23 10:50:26 +09:00
2019-12-10 10:12:55 +01:00
2019-06-05 17:36:37 +02:00