module: Move modprobe_path and modules_disabled ctl_tables into the module subsys
authorJoel Granados <joel.granados@kernel.org>
Tue, 29 Apr 2025 12:30:00 +0000 (14:30 +0200)
committerJoel Granados <joel.granados@kernel.org>
Wed, 23 Jul 2025 09:52:47 +0000 (11:52 +0200)
commitd0d05f602c1504fb868ed4a560d1465d88a3c5e5
treebd82a25220da535e095953033d42a01e3a234d13
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
module: Move modprobe_path and modules_disabled ctl_tables into the module subsys

Move module sysctl (modprobe_path and modules_disabled) out of sysctl.c
and into the modules subsystem. Make modules_disabled static as it no
longer needs to be exported. Remove module.h from the includes in sysctl
as it no longer uses any module exported variables.

This is part of a greater effort to move ctl tables into their
respective subsystems which will reduce the merge conflicts in
kernel/sysctl.c.

Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Signed-off-by: Joel Granados <joel.granados@kernel.org>
include/linux/kmod.h
include/linux/module.h
kernel/module/internal.h
kernel/module/main.c
kernel/sysctl.c