Open babtsoualiaksandr opened 1 year ago
According to my records, complete_and_exit() is present in kernels through version 5.16. It seems that your distro has changed the kernel API for this routine, and you will need to modify your source code. If I were to do it, I would break other users whose systems have the standard API.
If you modify line 1204 of file os_dep/osdep_service.c and change the 17 to a 13, your code should compile, unless there are other API changes.
CC [M] /root/build/rtl8188gu/os_dep/osdep_service.o /root/build/rtl8188gu/os_dep/osdep_service.c: В функции «thread_exit»: /root/build/rtl8188gu/os_dep/osdep_service.c:1205:9: ошибка: неявная декларация функции «complete_and_exit» [-Werror=implicit-function-declaration] 1205 | complete_and_exit(comp, 0); | ^
~~~~ cc1: некоторые предупреждения считаются ошибками make[2]: [scripts/Makefile.build:321: /root/build/rtl8188gu/os_dep/osdep_service.o] Ошибка 1 make[1]: [Makefile:1915: /root/build/rtl8188gu] Ошибка 2 make[1]: выход из каталога «/usr/src/kernels/5.14.0-210.el9.x86_64» make: *** [Makefile:1522: modules] Ошибка 2