• Arnd Bergmann's avatar
    module: fix DEBUG_SET_MODULE_RONX typo · dfdf8be7
    Arnd Bergmann authored
    [ Upstream commit 4d217a5a ]
    
    The newly added 'rodata_enabled' global variable is protected by
    the wrong #ifdef, leading to a link error when CONFIG_DEBUG_SET_MODULE_RONX
    is turned on:
    
    kernel/module.o: In function `disable_ro_nx':
    module.c:(.text.unlikely.disable_ro_nx+0x88): undefined reference to `rodata_enabled'
    kernel/module.o: In function `module_disable_ro':
    module.c:(.text.module_disable_ro+0x8c): undefined reference to `rodata_enabled'
    kernel/module.o: In function `module_enable_ro':
    module.c:(.text.module_enable_ro+0xb0): undefined reference to `rodata_enabled'
    
    CONFIG_SET_MODULE_RONX does not exist, so use the correct one instead.
    
    Fixes: 39290b38 ("module: extend 'rodata=off' boot cmdline parameter to module mappings")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarJessica Yu <jeyu@redhat.com>
    Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
    dfdf8be7
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
calibrate.c Loading commit data...
do_mounts.c Loading commit data...
do_mounts.h Loading commit data...
do_mounts_initrd.c Loading commit data...
do_mounts_md.c Loading commit data...
do_mounts_rd.c Loading commit data...
init_task.c Loading commit data...
initramfs.c Loading commit data...
main.c Loading commit data...
noinitramfs.c Loading commit data...
version.c Loading commit data...