Skip to contentSkip to conversation

2.6.18-rc1-mm1: fix stub version of module_get_kallsym()

PATCH New Dave Hansen 1 participant 1 message Jul 12, 2006 Module support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.6.18-rc1-mm1: fix stub version of module_get_kallsym()

Get this error when modules are compiled off:

kernel/kallsyms.c: In function `get_ksymbol_mod':
kernel/kallsyms.c:279: error: too many arguments to function `module_get_kallsym'

Seems to be from:

null-terminate-over-long-proc-kallsyms-symbols.patch

---

 lxc-dave/include/linux/module.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -puN kernel/kallsyms.c~fix-get_ksymbol_mod-calls-module_get_kallsym kernel/kallsyms.c diff -puN kernel/module.c~fix-get_ksymbol_mod-calls-module_get_kallsym kernel/module.c

include/linux/module.h renamed from include/linux/module.h~fix-get_ksymbol_mod-calls-module_get_kallsym +2 -1
diff -puN include/linux/module.h~fix-get_ksymbol_mod-calls-module_get_kallsym include/linux/module.h
@@ -534,7 +534,8 @@ static inline const char *module_address
 static inline struct module *module_get_kallsym(unsigned int symnum,
 						unsigned long *value,
 						char *type,
-						char namebuf[128])
+						char namebuf[128],
+						size_t namelen)
 {
 	return NULL;
 }

_