summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-04-01 18:52:17 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-04-01 18:52:17 -0800
commit797886bf130a8721934bb4464464797e759da52b (patch)
tree0b29077d5db7fe6bcd3a2b85c648ea5fb06a7b39 /include/linux
parente193be86afc8c6c1614d0781b8f5ac448f9ac7d5 (diff)
Fix naming confusion: number of symbol kallsyms is "num_kallsyms",
while number of symbols is "num_syms". It used to be "num_syms" and "num_ksyms" respectively (ie the "k" was the wrong way around). The previous naming was not just confusing, it had caused one actual bug (ie the normal symbol code had used "num_syms", which was wrong in the old confusing naming scheme).
Diffstat (limited to 'include/linux')
-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..6e01f8a3d77f 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_kallsyms;
char *strtab;
#endif