abperiasamy / rtl8812AU_8821AU_linux

rtl8812AU_8821AU linux kernel driver for AC1200 (801.11ac) Wireless Dual-Band USB Adapter
GNU General Public License v2.0
1.23k stars 434 forks source link

Incompatatible pointer type Error after make command in kali linux "Linux 5.7.0-kali1-amd64 x86_64" #341

Open Gau7ham opened 4 years ago

Gau7ham commented 4 years ago
`make make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.7.0-kali1-amd64/build M=/tmp/t4u/rtl8812AU_8821AU_linux-master modules make[1]: Entering directory '/usr/src/linux-headers-5.7.0-kali1-amd64' CC [M] /tmp/t4u/rtl8812AU_8821AU_linux-master/os_dep/linux/rtw_proc.o /tmp/t4u/rtl8812AU_8821AU_linux-master/os_dep/linux/rtw_proc.c: In function ‘rtw_proc_create_entry’: /tmp/t4u/rtl8812AU_8821AU_linux-master/os_dep/linux/rtw_proc.c:73:67: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types] 73 ry = proc_create_data(name, S_IFREG S_IRUGO S_IWUGO, parent, fops, data); ^~~~
const struct file_operations *

In file included from /tmp/t4u/rtl8812AU_8821AU_linux-master/include/../os_dep/linux/rtw_proc.h:23, from /tmp/t4u/rtl8812AU_8821AU_linux-master/include/osdep_intf.h:123, from /tmp/t4u/rtl8812AU_8821AU_linux-master/include/drv_types.h:107, from /tmp/t4u/rtl8812AU_8821AU_linux-master/os_dep/linux/rtw_proc.c:21: /usr/src/linux-headers-5.7.0-kali1-common/include/linux/proc_fs.h:74:31: note: expected ‘const struct proc_ops ’ but argument is of type ‘const struct file_operations ’ 74 | extern struct proc_dir_entry proc_create_data(const char , umode_t, | ^~~~ /tmp/t4u/rtl8812AU_8821AU_linux-master/os_dep/linux/rtw_proc.c: At top level: /tmp/t4u/rtl8812AU_8821AU_linux-master/os_dep/linux/rtw_proc.c:1194:1: fatal error: opening dependency file /tmp/t4u/rtl8812AU_8821AU_linux-master/os_dep/linux/.rtw_proc.o.d: Permission denied 1194 | } | ^ cc1: all warnings being treated as errors compilation terminated. make[3]: [/usr/src/linux-headers-5.7.0-kali1-common/scripts/Makefile.build:272: /tmp/t4u/rtl8812AU_8821AU_linux-master/os_dep/linux/rtw_proc.o] Error 1 make[2]: [/usr/src/linux-headers-5.7.0-kali1-common/Makefile:1745: /tmp/t4u/rtl8812AU_8821AU_linux-master] Error 2 make[1]: [/usr/src/linux-headers-5.7.0-kali1-common/Makefile:180: sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.7.0-kali1-amd64' make: [Makefile:1622: modules] Error 2 ` Very Grateful for any help