diff options
author | Joel Granados <joel.granados@kernel.org> | 2025-04-29 14:30:00 +0200 |
---|---|---|
committer | Joel Granados <joel.granados@kernel.org> | 2025-07-23 11:52:47 +0200 |
commit | d0d05f602c1504fb868ed4a560d1465d88a3c5e5 (patch) | |
tree | bd82a25220da535e095953033d42a01e3a234d13 /kernel/module/internal.h | |
parent | 19272b37aa4f83ca52bdf9c16d5d81bdd1354494 (diff) |
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>
Diffstat (limited to 'kernel/module/internal.h')
-rw-r--r-- | kernel/module/internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/module/internal.h b/kernel/module/internal.h index 8d74b0a21c82..51ddd8866ef3 100644 --- a/kernel/module/internal.h +++ b/kernel/module/internal.h @@ -58,6 +58,9 @@ extern const struct kernel_symbol __stop___ksymtab_gpl[]; extern const u32 __start___kcrctab[]; extern const u32 __start___kcrctab_gpl[]; +#define KMOD_PATH_LEN 256 +extern char modprobe_path[]; + struct load_info { const char *name; /* pointer to module in temporary copy, freed at end of load_module() */ |