Message ID | 20240130151556.2315951-2-kvalo@kernel.org |
---|---|
State | New |
Headers | show |
Series | wifi: drivers: fix some sparse warnings | expand |
Kalle Valo <kvalo@kernel.org> wrote: > Sparse warns: > > drivers/net/wireless/zydas/zd1211rw/zd_usb.c:383:24: warning: implicit cast from nocast type > drivers/net/wireless/zydas/zd1211rw/zd_usb.c:419:24: warning: implicit cast from nocast type > > This is an ancient driver which has not have any meaningfuli changes for a long > time and hopefully removed soon. So just remove the __nocast to get rid of the > sparse warnings. > > Compile tested only. > > Signed-off-by: Kalle Valo <kvalo@kernel.org> 3 patches applied to wireless-next.git, thanks. 2b59c9c30b9c wifi: zd1211rw: remove __nocast from zd_addr_t 0583e5acaf43 wifi: rsi: fix restricted __le32 degrades to integer sparse warnings 7ceade653429 wifi: cw1200: fix __le16 sparse warnings
diff --git a/drivers/net/wireless/zydas/zd1211rw/zd_def.h b/drivers/net/wireless/zydas/zd1211rw/zd_def.h index 8ca2d0aab170..2f55e8deee82 100644 --- a/drivers/net/wireless/zydas/zd1211rw/zd_def.h +++ b/drivers/net/wireless/zydas/zd1211rw/zd_def.h @@ -12,7 +12,7 @@ #include <linux/stringify.h> #include <linux/device.h> -typedef u16 __nocast zd_addr_t; +typedef u16 zd_addr_t; #define dev_printk_f(level, dev, fmt, args...) \ dev_printk(level, dev, "%s() " fmt, __func__, ##args)
Sparse warns: drivers/net/wireless/zydas/zd1211rw/zd_usb.c:383:24: warning: implicit cast from nocast type drivers/net/wireless/zydas/zd1211rw/zd_usb.c:419:24: warning: implicit cast from nocast type This is an ancient driver which has not have any meaningfuli changes for a long time and hopefully removed soon. So just remove the __nocast to get rid of the sparse warnings. Compile tested only. Signed-off-by: Kalle Valo <kvalo@kernel.org> --- drivers/net/wireless/zydas/zd1211rw/zd_def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)