diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2023-12-21 12:02:46 +0300 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2024-02-02 21:21:25 +0300 |
commit | 398ec3e925eb1c4d5850ec60f7075e0c20199003 (patch) | |
tree | 2db7c646a2ec561d35d4ed43d849391b0cb3748e /include/linux/init.h | |
parent | 3559ad395bf02f3dee576dc9acab4ce330ce57b5 (diff) | |
download | linux-398ec3e925eb1c4d5850ec60f7075e0c20199003.tar.xz |
init: Declare rodata_enabled and mark_rodata_ro() at all time
Declaring rodata_enabled and mark_rodata_ro() at all time
helps removing related #ifdefery in C files.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'include/linux/init.h')
-rw-r--r-- | include/linux/init.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/init.h b/include/linux/init.h index 3fa3f6241350..58cef4c2e59a 100644 --- a/include/linux/init.h +++ b/include/linux/init.h @@ -168,12 +168,8 @@ extern initcall_entry_t __initcall_end[]; extern struct file_system_type rootfs_fs_type; -#if defined(CONFIG_STRICT_KERNEL_RWX) || defined(CONFIG_STRICT_MODULE_RWX) extern bool rodata_enabled; -#endif -#ifdef CONFIG_STRICT_KERNEL_RWX void mark_rodata_ro(void); -#endif extern void (*late_time_init)(void); |