summaryrefslogtreecommitdiff
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-04-02 02:10:23 -0600
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-04-02 02:10:23 -0600
commit494c779a0cd1f63eeca35eaaa4a4038eca0b4b84 (patch)
tree2d60ae5984da9e650ced26be54fba0e0b33be414 /include/linux/module.h
parentb35e3015ec7ab817f731ce9a275825484d579abd (diff)
modules: Fix exporting symbols from modules
This patch fixes two issues: o The CONFIG_MODVERSIONING=y case broke at compile time since some functions were not updated with the latest module changes o Exporting symbols from modules stopped working due to confusion of mod->num_syms and mod->num_ksyms. Rename mod->num_ksyms to mod->num_syms, which is more logical since the associated array is called ->syms, and for the kallsyms member use "num_symtab", since the associated array is ->symtab.
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 57918bfaba25..30892e436401 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -183,7 +183,7 @@ struct module
/* Exported symbols */
const struct kernel_symbol *syms;
- unsigned int num_ksyms;
+ unsigned int num_syms;
const unsigned long *crcs;
/* GPL-only exported symbols. */
@@ -233,7 +233,7 @@ struct module
#ifdef CONFIG_KALLSYMS
/* We keep the symbol and string tables for kallsyms. */
Elf_Sym *symtab;
- unsigned long num_syms;
+ unsigned long num_symtab;
char *strtab;
#endif