2.6.18-rc1-mm1: fix stub version of module_get_kallsym()
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
Signed-off-by Dave Hansen <[email protected]>
---
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
@@ -534,7 +534,8 @@ static inline const char *module_addressstatic 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 ; }
_