Closed MaxG87 closed 5 years ago
Hi,
what about merging this? It would be cool as it would resolve some lurking problems.
Thanks.
gcc 8.2:
In function ‘strncpy’,
inlined from ‘rtw_wx_set_enc_ext’ at /var/lib/dkms/rtl88x2bu/5.2.4.4/build/os_dep/linux/ioctl_linux.c:3556:2:
./include/linux/string.h:246:9: error: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Werror=stringop-truncation]
return __builtin_strncpy(p, q, size);
^~~~~~~~~
and: /var/lib/dkms/rtl88x2bu/5.2.4.4/build/hal/hal_hci/hal_usb.c: In function ‘usb_init_recv_priv’: /var/lib/dkms/rtl88x2bu/5.2.4.4/build/hal/hal_hci/hal_usb.c:28:8: error: cast between incompatible function types from ‘void ()(void )’ to ‘void ()(long unsigned int)’ [-Werror=cast-function-type] (void()(unsigned long))usb_recv_tasklet,
I hope that the commit messages are self explanatory. These are minor cleanup commits. Some bugs are fixed by them.