muratdemirtas / MT7601u

Ubuntu and Embedded Linux(Raspberry Pi, Banana Pi etc.) drivers for MediaTek MT7601u Wireless Chipset. Support Access Point(AP) and Station Mode(STA). Tested on 32-64 Bit Ubuntu and Raspberry Pi 2 with all kernels since v4.0.0+. You can use this driver for internet sharing(hotspot), robotic, file transfer or ssh.
Other
93 stars 44 forks source link

error make #11

Open arx81 opened 5 years ago

arx81 commented 5 years ago

error make on armbian ubuntu bionic Linux orangepione 4.14.70-sunxi

`/root/MT7601u/src/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpDrvAllRFPrint’: /root/MT7601u/src/os/linux/../../os/linux/rt_linux.c:2179:32: error: passing argument 2 of ‘file_w->f_op->write’ from incompatible pointer type [-Werror=incompatible-pointer-types] file_w->f_op->write(file_w, pBuf, BufLen, &file_w->f_pos); ^~~~ /root/MT7601u/src/os/linux/../../os/linux/rt_linux.c:2179:32: note: expected ‘const char ’ but argument is of type ‘UINT32 {aka unsigned int }’ /root/MT7601u/src/os/linux/../../os/linux/rt_linux.c:2164:22: warning: unused variable ‘macValue’ [-Wunused-variable] UINT32 macAddr = 0, macValue = 0; ^~~~ /root/MT7601u/src/os/linux/../../os/linux/rt_linux.c:2164:9: warning: unused variable ‘macAddr’ [-Wunused-variable] UINT32 macAddr = 0, macValue = 0; ^~~ /root/MT7601u/src/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSIRQRelease’: /root/MT7601u/src/os/linux/../../os/linux/rt_linux.c:2300:21: warning: unused variable ‘net_dev’ [-Wunused-variable] struct net_device net_dev = (struct net_device )pNetDev; ^~~ /root/MT7601u/src/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsFreeSpinLock’: /root/MT7601u/src/os/linux/../../os/linux/rt_linux.c:4319:8: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types] pLock = (OS_NDIS_MINIPORT_TIMER ) (pLockOrg->pContent); ^ In file included from /root/MT7601u/src/include/rtmp_os.h:48:0, from /root/MT7601u/src/include/rtmp_comm.h:69, from /root/MT7601u/src/os/linux/../../os/linux/rt_linux.c:35: /root/MT7601u/src/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpThreadPidKill’: /root/MT7601u/src/include/os/rt_linux.h:532:37: error: implicit declaration of function ‘kill_pid’; did you mean ‘si_pid’? [-Werror=implicit-function-declaration]

define KILL_THREAD_PID(_A, _B, _C) kill_pid((_A), (_B), (_C))

                                 ^

/root/MT7601u/src/os/linux/../../os/linux/rt_linux.c:5311:9: note: in expansion of macro ‘KILL_THREAD_PID’ return KILL_THREAD_PID(PID, SIGTERM, 1); ^~~~~~~ cc1: some warnings being treated as errors scripts/Makefile.build:328: recipe for target '/root/MT7601u/src/os/linux/../../os/linux/rt_linux.o' failed make[3]: [/root/MT7601u/src/os/linux/../../os/linux/rt_linux.o] Error 1 Makefile:1527: recipe for target 'module/root/MT7601u/src/os/linux' failed make[2]: [module/root/MT7601u/src/os/linux] Error 2 make[2]: Leaving directory '/usr/src/linux-headers-4.14.70-sunxi' Makefile:510: recipe for target 'osutil' failed make[1]: [osutil] Error 2 make[1]: Leaving directory '/root/MT7601u/src' Makefile:2: recipe for target 'all' failed make: [all] Error 2 `