summaryrefslogtreecommitdiff
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorSiddharth Nayyar <sidnayyar@google.com>2026-03-27 00:25:06 +0300
committerSami Tolvanen <samitolvanen@google.com>2026-04-01 02:42:52 +0300
commitb4760ff2a5e4351c59d185967735f59c0b0bd7f6 (patch)
tree4519c0980078033b19eee5f8f0f55d9da1f2a85f /include/linux/module.h
parent55fcb926b6d8b5cfb40873e4840a69961db1bb69 (diff)
downloadlinux-b4760ff2a5e4351c59d185967735f59c0b0bd7f6.tar.xz
module: deprecate usage of *_gpl sections in module loader
The *_gpl section are not being used populated by modpost anymore. Hence the module loader doesn't need to find and process these sections in modules. This patch also simplifies symbol finding logic in module loader since *_gpl sections don't have to be searched anymore. Signed-off-by: Siddharth Nayyar <sidnayyar@google.com> Reviewed-by: Petr Pavlu <petr.pavlu@suse.com> Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 917b29332e15..7566815fabbe 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -435,9 +435,6 @@ struct module {
unsigned int num_kp;
/* GPL-only exported symbols. */
- unsigned int num_gpl_syms;
- const struct kernel_symbol *gpl_syms;
- const u32 *gpl_crcs;
bool using_gplonly_symbols;
#ifdef CONFIG_MODULE_SIG