diff --git a/src/stack_check.h b/src/stack_check.h index 3823fe4e4da67bdf87147c7dfeb392fc33c8146c..d2294a2cd0160c3697b37cd36cfe7d1900b1a76c 100644 --- a/src/stack_check.h +++ b/src/stack_check.h @@ -28,12 +28,12 @@ static void stack_check_init(void) addr_sort(vm_func_addr, vm_func_size, NR_INTERFACE_FN); #define PLUGSCHED_FN_PTR(fn, ...) \ - get_ksymbol(THIS_MODULE,(unsigned long)__mod_##fn, \ + kallsyms_lookup_size_offset((unsigned long)__mod_##fn, \ &mod_##fn##_size, NULL); \ mod_func_size[NR_##fn] = mod_##fn##_size; #define EXPORT_PLUGSCHED(fn, ...) \ - get_ksymbol(THIS_MODULE,(unsigned long)fn, \ + kallsyms_lookup_size_offset((unsigned long)fn, \ &mod_##fn##_size, NULL); \ mod_func_size[NR_##fn] = mod_##fn##_size;