From 66c2c709aea4f049513c02b5f7c6174f1b7a50e8 Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 31 Aug 2005 18:45:05 +0000 Subject: 2005-08-31 Martin Hunt * runtime.h (init_module): Include full prototype info in function cast to satisfy stap. --- runtime/runtime.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/runtime.h') diff --git a/runtime/runtime.h b/runtime/runtime.h index 6189a92c..b0fc5b5d 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -73,7 +73,8 @@ int probe_start(void); int init_module (void) { _stp_kta = (int (*)(unsigned long))kallsyms_lookup_name("__kernel_text_address"); - _stp_kallsyms_lookup = (const char * (*)())kallsyms_lookup_name("kallsyms_lookup"); + _stp_kallsyms_lookup = (const char * (*)(unsigned long,unsigned long *,unsigned long *,char **,char *)) + kallsyms_lookup_name("kallsyms_lookup"); return _stp_transport_init(); } -- cgit