内核 5.12 无法使用 find_module

kernel 5.12 can't use find_module

当我的内核升级到5.12时,我发现我无法使用find_module,请问有什么办法吗? 错误:modpost:“find_module”[/root/sheldon/test.ko] 未定义

我重写了新的find_insert_module函数,可以实现find_module

的功能
static struct module *find_insert_module(const char *name)
    {
         struct module *list_mod = NULL;
         /* traverse the module list and find corresponding module*/
         list_for_each_entry(list_mod, THIS_MODULE->list.prev, list)
         {
             if (strcmp(list_mod->name, name) == 0)
             {
                return list_mod;
             }
         }
         printk("[%s] module %s not found\n", THIS_MODULE->name, name);
        //printk("[%s] module %s not found\n", THIS_MODULE->name, name);
         return NULL;
     }