wifi: cfg80211: use __counted_by where appropriate
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 17 May 2024 15:33:31 +0000 (18:33 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 23 May 2024 09:32:05 +0000 (11:32 +0200)
commitaa4ec06c455d0200eea0a4361cc58eb5b8bf68c4
treee327b9ee02cd7de4c18cbffb154ad271397b441f
parentf9a0757a4b2f5df4376963c25a3d7d7aeba78444
wifi: cfg80211: use __counted_by where appropriate

Annotate 'sub_specs' of 'struct cfg80211_sar_specs', 'channels'
of 'struct cfg80211_sched_scan_request', 'channels' of 'struct
cfg80211_wowlan_nd_match', and 'matches' of 'struct
cfg80211_wowlan_nd_info' with '__counted_by' attribute. Briefly
tested with clang 18.1.1 and CONFIG_UBSAN_BOUNDS running iwlwifi.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Link: https://msgid.link/20240517153332.18271-1-dmantipov@yandex.ru
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h