Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp584962lqz; Sat, 30 Mar 2024 09:21:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+wPUag+4GDd1lK3tsONj/V/9CpunVXTRGubIEEnBLa73wf/D4O9iZxPPRHSSSPcV30SL8LWhbAqSR59owgZccTxiiDeSVDSsmNg660w== X-Google-Smtp-Source: AGHT+IGjsqeqcmdE5TZtKUumZunAJx/4AUSxz9rViz3v9jS1Hk+0auEkBeHVtbvWI5YgopZmxQ0b X-Received: by 2002:a17:907:da7:b0:a4e:3777:db0 with SMTP id go39-20020a1709070da700b00a4e37770db0mr3133183ejc.57.1711815690805; Sat, 30 Mar 2024 09:21:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711815690; cv=pass; d=google.com; s=arc-20160816; b=h18Zcge8/sYF+EyjkNeHyhnBWXWrZDIabuwYqbnJEF2S9uF58BUP7ijUGU6n3X9KcG 72csUxRu5FL/hn291yxKx8ndDSYduaVIOhe+bdVFvchSmg8mHTRMdANBMKVMeOUDCIMs 9OcCEC9SBGjLaElywWRkTwZw+jN4g71FRGcMeNtGmEgsSZoS6VKLXhD4Lph1B7ZG1uU1 suu+I3ZuJezVoYgGFGmTd4jbNoPsE/ssb9UGdupz2GMvYXT/KShvSR/cBEXF2TFrI6Kk z+hTv434DQSkJa8OmpbobqEOgbeQI7D1pX+9iLg8eDLhcaMCH6NChC7ffwlsHDCdGnbT B5/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=9j1DIWRaxBbCDyZd26BiEylt/k3NJ0jHmIbzDeNJBTU=; fh=tFFoyQ7ZmJraq/Ux4upoy2AuikL7+Zt8XZwVaRDvGmI=; b=hZOlRFFNqlduiOh7TyAldjZNouKIZOMSQY6zVM2KRaozt2svZa0IGY55HXLtyTgh4Y 4KklUM77NPEMw86C2y+Ji8ocU58dH9SE6cnSobsDacQSqfAZ0hsztpRsIp1aRaKQICa+ lwzdagSCVkqrQWwLQfvjMlHM9Tm5VuY/PmtBCpPZ+bopZYuW9AtPg1E6GAcm6vZQ8sQI f8+62IkQM9a6EI3c252DLKDqQA9LbmWmxz1hlmGtQlHFIBTZjrZqJW0RtvpZ2Shkev6t LdwdSntVmYPjog9J16yjVPEyUPhN8PRyQ/mMlI+JI2fxyxa1NV9LomvCc9SEiTw7VBJ6 0XOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=MBnkvFVO; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-wireless+bounces-5638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5638-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n18-20020a1709062bd200b00a4a342223d3si2788089ejg.287.2024.03.30.09.21.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 09:21:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=MBnkvFVO; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-wireless+bounces-5638-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5638-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4CA941F2290E for ; Sat, 30 Mar 2024 16:21:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70A373BB35; Sat, 30 Mar 2024 16:21:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="MBnkvFVO" X-Original-To: linux-wireless@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99AB62030B; Sat, 30 Mar 2024 16:21:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711815685; cv=none; b=F2Vw7b2iLqM3n128NeQvEckbwjEihlp64yLdaMD/N4tvyMwpbltZ6I/6s3vUVOjmQatvylwvse8pabq/Jl6KrAbyInkhL8R4Lp6P+4NlpHxjOxWFB8Ru16hy+3rhSq8zA9/SkhOeV6dF01wyX1LsjS5OvZt9YD2VXej22+zYY0U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711815685; c=relaxed/simple; bh=S8+0R8Wzgncrsj4aVwsIfmzFytuLRDi84n0w/4rbXDs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WxJEjTCOsRjU2upf1FHBoDgF6BVCirf82PjrSjQ0+4Xx7Ec4s3PHwPGQMCGeKG+AaGbcJdUOmtKWAIujF43NvleZty/ZklWnmZ7DWJGxglwP32J5qkPSC20j63tdPcKkZLhbMaMxnUpEt+HD8RL9El97awvC4IPq9qKXasfTGc8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=MBnkvFVO; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=9j1DIWRaxBbCDyZd26BiEylt/k3NJ0jHmIbzDeNJBTU=; b=MBnkvFVOH7dfsJCVrxrPFnGQ9B bUItCE2FaVDGCYcEpSjbPZMC6Oymnk2Gyc59lZYxfuL7mr74fM9dfJxccef+GUqDnBTmPWvwb+vp9 a0k8qXDttGov5PiEdin7uj+AfntBudBcYWPlr3Igrvh3TfSXdodWlinskmFJgTnEuX2UHkiAxrJHs a1oleU7OkQelWh5yz16YkRXP7vJRDCRkAISq6dKwwFh0MufmpmRi1VeOnPmQndMvfKqgxwdiEELLh 0Zt8Lbepa4k83EWPFVU3aYdg2QmdSQxx9/jkcbf3nTWhNchzEhbgyUZTue7hYlxo//CrheE/Ej3Vy CnI9XU/A==; Received: from [50.53.2.121] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rqbSG-00000003mZz-27oi; Sat, 30 Mar 2024 16:21:16 +0000 Message-ID: Date: Sat, 30 Mar 2024 09:21:16 -0700 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] wifi: mac80211: Add missing return value documentation Content-Language: en-US To: Jeff Johnson , Johannes Berg , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240329-mac80211-kdoc-retval-v1-0-5e4d1ad6c250@quicinc.com> <20240329-mac80211-kdoc-retval-v1-2-5e4d1ad6c250@quicinc.com> From: Randy Dunlap In-Reply-To: <20240329-mac80211-kdoc-retval-v1-2-5e4d1ad6c250@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 3/29/24 13:27, Jeff Johnson wrote: > kernel-doc is reporting some warnings, so fix them: > > % scripts/kernel-doc -Wall -Werror -none include/net/mac80211.h > include/net/mac80211.h:2056: warning: No description found for return value of 'wdev_to_ieee80211_vif' > include/net/mac80211.h:2066: warning: No description found for return value of 'ieee80211_vif_to_wdev' > include/net/mac80211.h:5603: warning: No description found for return value of 'ieee80211_beacon_cntdwn_is_complete' > include/net/mac80211.h:5968: warning: No description found for return value of 'ieee80211_gtk_rekey_add' > include/net/mac80211.h:6350: warning: No description found for return value of 'ieee80211_find_sta_by_link_addrs' > include/net/mac80211.h:6478: warning: No description found for return value of 'ieee80211_txq_airtime_check' > include/net/mac80211.h:6981: warning: No description found for return value of 'rate_control_set_rates' > include/net/mac80211.h:7142: warning: No description found for return value of 'ieee80211_tx_prepare_skb' > include/net/mac80211.h:7156: warning: No description found for return value of 'ieee80211_parse_tx_radiotap' > include/net/mac80211.h:7277: warning: No description found for return value of 'ieee80211_tx_dequeue' > include/net/mac80211.h:7292: warning: No description found for return value of 'ieee80211_tx_dequeue_ni' > include/net/mac80211.h:7324: warning: No description found for return value of 'ieee80211_next_txq' > include/net/mac80211.h:7405: warning: No description found for return value of 'ieee80211_txq_may_transmit' > include/net/mac80211.h:7466: warning: No description found for return value of 'ieee80211_calc_rx_airtime' > include/net/mac80211.h:7480: warning: No description found for return value of 'ieee80211_calc_tx_airtime' > include/net/mac80211.h:7528: warning: No description found for return value of 'ieee80211_is_tx_data' > include/net/mac80211.h:7562: warning: No description found for return value of 'ieee80211_set_active_links' > 17 warnings as Errors > > Signed-off-by: Jeff Johnson Acked-by: Randy Dunlap Tested-by: Randy Dunlap Thanks. > --- > include/net/mac80211.h | 38 ++++++++++++++++++++++++++++++-------- > 1 file changed, 30 insertions(+), 8 deletions(-) > > diff --git a/include/net/mac80211.h b/include/net/mac80211.h > index e6a11a982ca8..8984ac4359b8 100644 > --- a/include/net/mac80211.h > +++ b/include/net/mac80211.h > @@ -2049,7 +2049,7 @@ static inline bool ieee80211_vif_is_mesh(struct ieee80211_vif *vif) > * This can be used by mac80211 drivers with direct cfg80211 APIs > * (like the vendor commands) that get a wdev. > * > - * Note that this function may return %NULL if the given wdev isn't > + * Return: pointer to the wdev, or %NULL if the given wdev isn't > * associated with a vif that the driver knows about (e.g. monitor > * or AP_VLAN interfaces.) > */ > @@ -2062,6 +2062,8 @@ struct ieee80211_vif *wdev_to_ieee80211_vif(struct wireless_dev *wdev); > * This can be used by mac80211 drivers with direct cfg80211 APIs > * (like the vendor commands) that needs to get the wdev for a vif. > * This can also be useful to get the netdev associated to a vif. > + * > + * Return: pointer to the wdev > */ > struct wireless_dev *ieee80211_vif_to_wdev(struct ieee80211_vif *vif); > > @@ -5597,7 +5599,7 @@ void ieee80211_csa_finish(struct ieee80211_vif *vif, unsigned int link_id); > * @vif: &struct ieee80211_vif pointer from the add_interface callback. > * @link_id: valid link_id during MLO or 0 for non-MLO > * > - * This function returns whether the countdown reached zero. > + * Return: %true if the countdown reached 1, %false otherwise > */ > bool ieee80211_beacon_cntdwn_is_complete(struct ieee80211_vif *vif, > unsigned int link_id); > @@ -5942,8 +5944,8 @@ void ieee80211_remove_key(struct ieee80211_key_conf *keyconf); > * key(s) will be available. These will be needed by mac80211 for proper > * RX processing, so this function allows setting them. > * > - * The function returns the newly allocated key structure, which will > - * have similar contents to the passed key configuration but point to > + * Return: the newly allocated key structure, which will have > + * similar contents to the passed key configuration but point to > * mac80211-owned memory. In case of errors, the function returns an > * ERR_PTR(), use IS_ERR() etc. > * > @@ -6342,6 +6344,8 @@ struct ieee80211_sta *ieee80211_find_sta_by_ifaddr(struct ieee80211_hw *hw, > * may be %NULL if the link ID is not needed > * > * Obtain the STA by link address, must use RCU protection. > + * > + * Return: pointer to STA if found, otherwise %NULL. > */ > struct ieee80211_sta * > ieee80211_find_sta_by_link_addrs(struct ieee80211_hw *hw, > @@ -6471,8 +6475,8 @@ void ieee80211_sta_register_airtime(struct ieee80211_sta *pubsta, u8 tid, > * @hw: pointer obtained from ieee80211_alloc_hw() > * @txq: pointer obtained from station or virtual interface > * > - * Return true if the AQL's airtime limit has not been reached and the txq can > - * continue to send more packets to the device. Otherwise return false. > + * Return: %true if the AQL's airtime limit has not been reached and the txq can > + * continue to send more packets to the device. Otherwise return %false. > */ > bool > ieee80211_txq_airtime_check(struct ieee80211_hw *hw, struct ieee80211_txq *txq); > @@ -6975,6 +6979,8 @@ bool rate_usable_index_exists(struct ieee80211_supported_band *sband, > * @hw: pointer as obtained from ieee80211_alloc_hw() > * @pubsta: &struct ieee80211_sta pointer to the target destination. > * @rates: new tx rate set to be used for this station. > + * > + * Return: 0 on success. An error code otherwise. > */ > int rate_control_set_rates(struct ieee80211_hw *hw, > struct ieee80211_sta *pubsta, > @@ -7135,6 +7141,8 @@ void ieee80211_report_wowlan_wakeup(struct ieee80211_vif *vif, > * @band: the band to transmit on > * @sta: optional pointer to get the station to send the frame to > * > + * Return: %true if the skb was prepared, %false otherwise > + * > * Note: must be called under RCU lock > */ > bool ieee80211_tx_prepare_skb(struct ieee80211_hw *hw, > @@ -7151,6 +7159,8 @@ bool ieee80211_tx_prepare_skb(struct ieee80211_hw *hw, > * > * @skb: packet injected by userspace > * @dev: the &struct device of this 802.11 device > + * > + * Return: %true if the radiotap header was parsed, %false otherwise > */ > bool ieee80211_parse_tx_radiotap(struct sk_buff *skb, > struct net_device *dev); > @@ -7260,7 +7270,7 @@ void ieee80211_unreserve_tid(struct ieee80211_sta *sta, u8 tid); > * @txq: pointer obtained from station or virtual interface, or from > * ieee80211_next_txq() > * > - * Returns the skb if successful, %NULL if no frame was available. > + * Return: the skb if successful, %NULL if no frame was available. > * > * Note that this must be called in an rcu_read_lock() critical section, > * which can only be released after the SKB was handled. Some pointers in > @@ -7286,6 +7296,8 @@ struct sk_buff *ieee80211_tx_dequeue(struct ieee80211_hw *hw, > * @hw: pointer as obtained from ieee80211_alloc_hw() > * @txq: pointer obtained from station or virtual interface, or from > * ieee80211_next_txq() > + * > + * Return: the skb if successful, %NULL if no frame was available. > */ > static inline struct sk_buff *ieee80211_tx_dequeue_ni(struct ieee80211_hw *hw, > struct ieee80211_txq *txq) > @@ -7317,7 +7329,7 @@ void ieee80211_handle_wake_tx_queue(struct ieee80211_hw *hw, > * @hw: pointer as obtained from ieee80211_alloc_hw() > * @ac: AC number to return packets from. > * > - * Returns the next txq if successful, %NULL if no queue is eligible. If a txq > + * Return: the next txq if successful, %NULL if no queue is eligible. If a txq > * is returned, it should be returned with ieee80211_return_txq() after the > * driver has finished scheduling it. > */ > @@ -7400,6 +7412,8 @@ ieee80211_return_txq(struct ieee80211_hw *hw, struct ieee80211_txq *txq, > * > * @hw: pointer as obtained from ieee80211_alloc_hw() > * @txq: pointer obtained from station or virtual interface > + * > + * Return: %true if transmission is allowed, %false otherwise > */ > bool ieee80211_txq_may_transmit(struct ieee80211_hw *hw, > struct ieee80211_txq *txq); > @@ -7460,6 +7474,8 @@ void ieee80211_nan_func_match(struct ieee80211_vif *vif, > * @status: &struct ieee80211_rx_status containing the transmission rate > * information. > * @len: frame length in bytes > + * > + * Return: the airtime estimate > */ > u32 ieee80211_calc_rx_airtime(struct ieee80211_hw *hw, > struct ieee80211_rx_status *status, > @@ -7474,6 +7490,8 @@ u32 ieee80211_calc_rx_airtime(struct ieee80211_hw *hw, > * @hw: pointer as obtained from ieee80211_alloc_hw() > * @info: &struct ieee80211_tx_info of the frame. > * @len: frame length in bytes > + * > + * Return: the airtime estimate > */ > u32 ieee80211_calc_tx_airtime(struct ieee80211_hw *hw, > struct ieee80211_tx_info *info, > @@ -7523,6 +7541,8 @@ ieee80211_obss_color_collision_notify(struct ieee80211_vif *vif, > * hardware encapsulation enabled are data frames. > * > * @skb: the frame to be transmitted. > + * > + * Return: %true if @skb is a data frame, %false otherwise > */ > static inline bool ieee80211_is_tx_data(struct sk_buff *skb) > { > @@ -7558,6 +7578,8 @@ static inline bool ieee80211_is_tx_data(struct sk_buff *skb) > * - change_sta_links(0x10) for each affected STA (the AP) > * - assign_vif_chanctx(link_id=4) > * - change_vif_links(0x10) > + * > + * Return: 0 on success. An error code otherwise. > */ > int ieee80211_set_active_links(struct ieee80211_vif *vif, u16 active_links); > > -- #Randy