Skip to contentSkip to conversation

cfg80211/mac80211: Fix warning on make xmldocs caused by cfg80211.h

PATCH New Masanari Iida 3 participants 4 messages May 2, 2014 – May 7, 2014 2 messages not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cfg80211/mac80211: Fix warning on make xmldocs caused by cfg80211.h

This patch fix a warning on make xmldocs.
The symptom happened on linux-next as of 0502. Not on Linus's tree.
Because a pach 2beb6dab2d799ee8934cb0801845e551ad8c70f2 which causes this symptom exist only on linux-next.

Masanari Iida (1):
cfg80211/mac80211: Fix warning on make xmldocs caused by cfg80211.h

 include/net/cfg80211.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.0.0.rc1.15.g7e76a2f

A message that is not in the archive (sent off-list or not yet received): 1399041597-27409-1-git-send-email-standby24x7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#2 lore raw

PATCH 1/1 cfg80211/mac80211: Fix warning on make xmldocs caused by cfg80211.h

Following error messages caused by wrong description.

Warning(include/net/cfg80211.h:461): No description found for parameter 'nl80211_iftype'

Change "iftype" to "nl80211_iftype" fix the errors.

---
 include/net/cfg80211.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/cfg80211.h +1 -1
index 7eae46c..695c562 100644
@@ -452,7 +452,7 @@ bool cfg80211_chandef_usable(struct wiphy *wiphy,
  * cfg80211_chandef_dfs_required - checks if radar detection is required
  * @wiphy: the wiphy to validate against
  * @chandef: the channel definition to check
- * @iftype: the interface type as specified in &enum nl80211_iftype
+ * @nl80211_iftype: the interface type as specified in &enum nl80211_iftype
  * Returns:
  *	1 if radar detection is required, 0 if it is not, < 0 on error
  */
Signature · 6 lines
2.0.0.rc1.15.g7e76a2f

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 1399041597-27409-2-git-send-email-standby24x7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#4 lore raw

Hi,

Quoted 17 lines · Masanari Iida

Following error messages caused by wrong description.

Warning(include/net/cfg80211.h:461): No description found for parameter 'nl80211_iftype'

Change "iftype" to "nl80211_iftype" fix the errors.

---
 include/net/cfg80211.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/cfg80211.h +0 -0
index 7eae46c..695c562 100644

include/net/cfg80211.h bool cfg80211_chandef_usable(struct wiphy *wiphy, · line 458

Quoted 8 lines
include/net/cfg80211.h +1 -1
@@ -452,7 +452,7 @@ bool cfg80211_chandef_usable(struct wiphy *wiphy,
  * cfg80211_chandef_dfs_required - checks if radar detection is required
  * @wiphy: the wiphy to validate against
  * @chandef: the channel definition to check
- * @iftype: the interface type as specified in &enum nl80211_iftype
+ * @nl80211_iftype: the interface type as specified in &enum nl80211_iftype
  * Returns:
  *	1 if radar detection is required, 0 if it is not, < 0 on error
  */

A better way to fix this would be to add "iftype" to the function prototype, since we don't usually use nameless arguments:

include/net/cfg80211.h +1 -1
index 43c674e..f9e7373 100644
@@ -458,7 +458,7 @@ bool cfg80211_chandef_usable(struct wiphy *wiphy,
  */
 int cfg80211_chandef_dfs_required(struct wiphy *wiphy,
                                  const struct cfg80211_chan_def *chandef,
-                                 enum nl80211_iftype);
+                                 enum nl80211_iftype iftype);
 
 /**
  * ieee80211_chandef_rate_flags - returns rate flags for a channel

--
Cheers,
Luca.

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Tested-by
#5 lore raw

Hi,
Your patch fixed the symptom.
I have tested it on linux-next as of 7th/May.
Thank you.

Regards,
Masanari

Quoted 20 lines · Luciano Coelho

Hi,

A better way to fix this would be to add "iftype" to the function prototype, since we don't usually use nameless arguments:

include/net/cfg80211.h +1 -2
index 43c674e..f9e7373 100644
@@ -458,7 +458,7 @@ bool cfg80211_chandef_usable(struct wiphy *wiphy,
  */
 int cfg80211_chandef_dfs_required(struct wiphy *wiphy,
                                  const struct cfg80211_chan_def *chandef,
-                                 enum nl80211_iftype);
+                                 enum nl80211_iftype iftype);
 
 /**
  * ieee80211_chandef_rate_flags - returns rate flags for a channel
 
--
Quoted 3 lines

Cheers,
Luca.

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html