CC [M] /tmp/tl-wn722/core/rtw_cmd.o
In file included from /tmp/tl-wn722/include/osdep_service.h:41:0,
from /tmp/tl-wn722/include/drv_types.h:32,
from /tmp/tl-wn722/core/rtw_cmd.c:22:
/tmp/tl-wn722/include/osdep_service_linux.h: In function ‘_init_timer’:
/tmp/tl-wn722/include/osdep_service_linux.h:265:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’
ptimer->data = (unsigned long)cntx;
^
/tmp/tl-wn722/include/osdep_service_linux.h:266:2: error: implicit declaration of function ‘init_timer’ [-Werror=implicit-function-declaration]
init_timer(ptimer);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/tmp/tl-wn722/core/rtw_cmd.o' failed
make[2]: [/tmp/tl-wn722/core/rtw_cmd.o] Error 1
Makefile:1552: recipe for target 'module/tmp/tl-wn722' failed
make[1]: [module/tmp/tl-wn722] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-22-generic'
Makefile:1369: recipe for target 'modules' failed
make: *** [modules] Error 2
CC [M] /tmp/tl-wn722/core/rtw_cmd.o In file included from /tmp/tl-wn722/include/osdep_service.h:41:0, from /tmp/tl-wn722/include/drv_types.h:32, from /tmp/tl-wn722/core/rtw_cmd.c:22: /tmp/tl-wn722/include/osdep_service_linux.h: In function ‘_init_timer’: /tmp/tl-wn722/include/osdep_service_linux.h:265:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’ ptimer->data = (unsigned long)cntx; ^ /tmp/tl-wn722/include/osdep_service_linux.h:266:2: error: implicit declaration of function ‘init_timer’ [-Werror=implicit-function-declaration] init_timer(ptimer); ^ cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/tmp/tl-wn722/core/rtw_cmd.o' failed make[2]: [/tmp/tl-wn722/core/rtw_cmd.o] Error 1 Makefile:1552: recipe for target 'module/tmp/tl-wn722' failed make[1]: [module/tmp/tl-wn722] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-22-generic' Makefile:1369: recipe for target 'modules' failed make: *** [modules] Error 2