Jeff Johnson <quic_jjohnson@xxxxxxxxxxx> writes: > On 9/26/2023 9:33 AM, Kalle Valo wrote: >> From: Kalle Valo <quic_kvalo@xxxxxxxxxxx> >> Commit e8c1841278a7 ("wifi: cfg80211: annotate iftype_data pointer >> with >> sparse") added sparse checks for struct ieee80211_sband_iftype_data handling >> which immediately found an issue in ath11k: >> drivers/net/wireless/ath/ath11k/mac.c:7952:22: warning: incorrect >> type in argument 1 (different address spaces) >> drivers/net/wireless/ath/ath11k/mac.c:7952:22: expected struct ieee80211_sta_he_cap const *he_cap >> drivers/net/wireless/ath/ath11k/mac.c:7952:22: got struct ieee80211_sta_he_cap const [noderef] __iftype_data * >> The problem here is that we are accessing sband->iftype_data >> directly even >> though we should use for_each_sband_iftype_data() or similar. Fortunately >> there's ieee80211_get_he_iftype_cap_vif() which is just we need here so use it > > nit: just *what* we need I'll add that, thanks. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches