Closed GustavoARSilva closed 1 year ago
Fix the following warnings (a total of 158) in drivers/staging/ks7010/ :
85003:drivers/staging/ks7010/ks_wlan_net.c:2434:2: warning: cast from 'int (*)(struct net_device *, struct iw_request_info *, __u32 *, char *)' (aka 'int (*)(struct net_device *, struct iw_request_info *, unsigned int *, char *)') to 'iw_handler' (aka 'int (*)(struct net_device *, struct iw_request_info *, union iwreq_data *, char *)') converts to incompatible function type [-Wcast-function-type-strict] 85006:drivers/staging/ks7010/ks_wlan_net.c:2435:2: warning: cast from 'int (*)(struct net_device *, struct iw_request_info *, __u32 *, char *)' (aka 'int (*)(struct net_device *, struct iw_request_info *, unsigned int *, char *)') to 'iw_handler' (aka 'int (*)(struct net_device *, struct iw_request_info *, union iwreq_data *, char *)') converts to incompatible function type [-Wcast-function-type-strict] 85009:drivers/staging/ks7010/ks_wlan_net.c:2436:2: warning: cast from 'int (*)(struct net_device *, struct iw_request_info *, __u32 *, char *)' (aka 'int (*)(struct net_device *, struct iw_request_info *, unsigned int *, char *)') to 'iw_handler' (aka 'int (*)(struct net_device *, struct iw_request_info *, union iwreq_data *, char *)') converts to incompatible function type [-Wcast-function-type-strict] 85012:drivers/staging/ks7010/ks_wlan_net.c:2437:2: warning: cast from 'int (*)(struct net_device *, struct iw_request_info *, __u32 *, char *)' (aka 'int (*)(struct net_device *, struct iw_request_info *, unsigned int *, char *)') to 'iw_handler' (aka 'int (*)(struct net_device *, struct iw_request_info *, union iwreq_data *, char *)') converts to incompatible function type [-Wcast-function-type-strict] 85015:drivers/staging/ks7010/ks_wlan_net.c:2440:2: warning: cast from 'int (*)(struct net_device *, struct iw_request_info *, __u32 *, char *)' (aka 'int (*)(struct net_device *, struct iw_request_info *, unsigned int *, char *)') to 'iw_handler' (aka 'int (*)(struct net_device *, struct iw_request_info *, union iwreq_data *, char *)') converts to incompatible function type [-Wcast-function-type-strict] 85018:drivers/staging/ks7010/ks_wlan_net.c:2441:2: warning: cast from 'int (*)(struct net_device *, struct iw_request_info *, __u32 *, char *)' (aka 'int (*)(struct net_device *, struct iw_request_info *, unsigned int *, char *)') to 'iw_handler' (aka 'int (*)(struct net_device *, struct iw_request_info *, union iwreq_data *, char *)') converts to incompatible function type [-Wcast-function-type-strict]
https://lore.kernel.org/linux-hardening/8d2ceee1248b5a76e9b6c379f578e65482c91168.1667934775.git.gustavoars@kernel.org/
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8ce256540f41c84cb910a681c2cb84e8c80ab8db
Fix the following warnings (a total of 158) in drivers/staging/ks7010/ :