diff options
Diffstat (limited to 'include/linux/init.h')
-rw-r--r-- | include/linux/init.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/init.h b/include/linux/init.h index e30104ceb86d..79af0962fd52 100644 --- a/include/linux/init.h +++ b/include/linux/init.h @@ -126,7 +126,10 @@ void prepare_namespace(void); void __init load_default_modules(void); int __init init_rootfs(void); -#ifdef CONFIG_DEBUG_RODATA +#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 |