diff options
| author | Petr Pavlu <petr.pavlu@suse.com> | 2026-06-04 13:04:46 +0200 |
|---|---|---|
| committer | Petr Pavlu <petr.pavlu@suse.com> | 2026-08-06 13:29:03 +0200 |
| commit | 6b722d1ec0384d2479ae453c994c6546c6093687 (patch) | |
| tree | 8453ed81af12127fab66c8acd2cd6e8ddec310bf /include/linux | |
| parent | 391ef7a88e8fef92ec472db14422468be477f0bb (diff) | |
| download | linux-next-6b722d1ec0384d2479ae453c994c6546c6093687.tar.gz linux-next-6b722d1ec0384d2479ae453c994c6546c6093687.zip | |
module: Remove unnecessary module::args
Historically, various parameter-handling code kept pointers into
module::args, most notably the charp support. However, in 2009,
commit e180a6b7759a ("param: fix charp parameters set via sysfs") changed
charp parameters to kstrdup() the input string as well. As a result,
module::args now mostly wastes memory.
The last users that still pointed into module::args have now been cleaned
up, so remove this data.
Reviewed-by: Aaron Tomlin <atomlin@atomlin.com>
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/module.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 7566815fabbe..96cc98568eea 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -477,10 +477,6 @@ struct module { struct module_notes_attrs *notes_attrs; #endif - /* The command line arguments (may be mangled). People like - keeping pointers to this stuff */ - char *args; - #ifdef CONFIG_SMP /* Per-cpu data. */ void __percpu *percpu; |
