failed to compile under new kernel 5.6 (fedora 5.6.0-300.fc32.x86_64)
Below is the error output:
CC [M] /home/a/q.32/hw/aukey.wf-r12.wifi/200202.coolshou/os_dep/linux/rtw_proc.o /home/a/q.32/hw/aukey.wf-r12.wifi/200202.coolshou/os_dep/linux/rtw_proc.c: In function ‘rtw_proc_create_entry’: /home/a/q.32/hw/aukey.wf-r12.wifi/200202.coolshou/os_dep/linux/rtw_proc.c:89:71: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types] 89 | roc_create_data(name, S_IFREG | S_IRUGO | S_IWUGO, parent, fops, data); | ^~~~ | | | const struct file_operations *
In file included from /home/a/q.32/hw/aukey.wf-r12.wifi/200202.coolshou/include/../os_dep/linux/rtw_proc.h:18, from /home/a/q.32/hw/aukey.wf-r12.wifi/200202.coolshou/include/osdep_intf.h:102, from /home/a/q.32/hw/aukey.wf-r12.wifi/200202.coolshou/include/drv_types.h:101, from /home/a/q.32/hw/aukey.wf-r12.wifi/200202.coolshou/os_dep/linux/rtw_proc.c:17: ./include/linux/proc_fs.h:61:13: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’ 61 | const struct proc_ops *, | ^~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:268: /home/a/q.32/hw/aukey.wf-r12.wifi/200202.coolshou/os_dep/linux/rtw_proc.o] Error 1 make[1]: *** [Makefile:1683: /home/a/q.32/hw/aukey.wf-r12.wifi/200202.coolshou] Error 2 make[1]: Leaving directory '/usr/src/kernels/5.6.0-300.fc32.x86_64' make: *** [Makefile:2327: modules] Error 2
try 81f771ce331e28b4d41895c75627798f998dd3c3