chenhaiq / mt7610u_wifi_sta_v3002_dpo_20130916

Modified usb wifi driver for TP_link TL-WDN5200
MIT License
132 stars 116 forks source link

make error fix - __vfs_write #43

Open camelreef opened 6 years ago

camelreef commented 6 years ago

When you get

/root/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_linux.c:1100:9: error: implicit declaration of function ‘__vfs_write’ [-Werror=implicit-function-declaration] return __vfs_write(osfd, pDataPtr, (size_t) writeLen, &osfd->f_pos)

it's because __vfs_read and __vfs_write are deprecated.

Edit os/linux/rt_linux.c and swap __vfs_read with kernel_read and __vfs_write with kernel_write in all instances.