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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
diff -puN include/linux/module.h~fix-get_ksymbol_mod-calls-module_get_kallsym include/linux/module.h
--- lxc/include/linux/module.h~fix-get_ksymbol_mod-calls-module_get_kallsym	2006-07-12 12:22:05.000000000 -0700
+++ lxc-dave/include/linux/module.h	2006-07-12 12:22:22.000000000 -0700
@@ -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;
 }
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux