summaryrefslogtreecommitdiff
path: root/Documentation/livepatch
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2022-06-12 18:33:20 +0300
committerLuis Chamberlain <mcgrof@kernel.org>2022-07-02 00:45:24 +0300
commitf963ef123900ac534aeb6141642e5351989ac14c (patch)
tree7c4a61237a80d5dd1c727b96eed3ddb8e2f538bd /Documentation/livepatch
parentcfa94c538be621a0ba645adfa9ead005b5fa02f6 (diff)
downloadlinux-f963ef123900ac534aeb6141642e5351989ac14c.tar.xz
module: Fix "warning: variable 'exit' set but not used"
When CONFIG_MODULE_UNLOAD is not selected, 'exit' is set but never used. It is not possible to replace the #ifdef CONFIG_MODULE_UNLOAD by IS_ENABLED(CONFIG_MODULE_UNLOAD) because mod->exit doesn't exist when CONFIG_MODULE_UNLOAD is not selected. And because of the rcu_read_lock_sched() section it is not easy to regroup everything in a single #ifdef. Let's regroup partially and add missing #ifdef to completely opt out the use of 'exit' when CONFIG_MODULE_UNLOAD is not selected. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'Documentation/livepatch')
0 files changed, 0 insertions, 0 deletions