root@poise:~/rtlwifi-next# make
make -C /lib/modules/4.15.0-kali2-amd64/build M=/root/rtlwifi-next modules
make[1]: 进入目录“/usr/src/linux-headers-4.15.0-kali2-amd64”
CC [M] /root/rtlwifi-next/base.o
/root/rtlwifi-next/base.c: In function ‘_rtl_init_deferred_work’:
/root/rtlwifi-next/base.c:460:2: error: implicit declaration of function ‘setup_timer’; did you mean ‘sk_stop_timer’? [-Werror=implicit-function-declaration]
setup_timer(&rtlpriv->works.watchdog_timer,
^~~
sk_stop_timer
cc1: some warnings being treated as errors
make[4]: [/usr/src/linux-headers-4.15.0-kali2-common/scripts/Makefile.build:330:/root/rtlwifi-next/base.o] error 1
make[3]: [/usr/src/linux-headers-4.15.0-kali2-common/Makefile:1528:module/root/rtlwifi-next] error 2
make[2]: [Makefile:146:sub-make] error 2
make[1]: [Makefile:8:all] error 2
make[1]: 离开目录“/usr/src/linux-headers-4.15.0-kali2-amd64”
make: *** [Makefile:100:all] error 2
root@poise:~/rtlwifi-next# make make -C /lib/modules/4.15.0-kali2-amd64/build M=/root/rtlwifi-next modules make[1]: 进入目录“/usr/src/linux-headers-4.15.0-kali2-amd64” CC [M] /root/rtlwifi-next/base.o /root/rtlwifi-next/base.c: In function ‘_rtl_init_deferred_work’: /root/rtlwifi-next/base.c:460:2: error: implicit declaration of function ‘setup_timer’; did you mean ‘sk_stop_timer’? [-Werror=implicit-function-declaration] setup_timer(&rtlpriv->works.watchdog_timer, ^
~~sk_stop_timer cc1: some warnings being treated as errors make[4]: [/usr/src/linux-headers-4.15.0-kali2-common/scripts/Makefile.build:330:/root/rtlwifi-next/base.o] error 1 make[3]: [/usr/src/linux-headers-4.15.0-kali2-common/Makefile:1528:module/root/rtlwifi-next] error 2 make[2]: [Makefile:146:sub-make] error 2 make[1]: [Makefile:8:all] error 2 make[1]: 离开目录“/usr/src/linux-headers-4.15.0-kali2-amd64” make: *** [Makefile:100:all] error 2