Skip to contentSkip to conversation

nl80211: fix enumeration type

PATCH In review Stefan Agner 2 participants 3 messages Apr 20, 2017

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

PATCH 1/1 nl80211: fix enumeration type

Use type enum nl80211_rate_info for bitrate information. This fixes a warning when compiling with clang:
warning: implicit conversion from enumeration type 'enum nl80211_rate_info' to different enumeration type 'enum nl80211_attrs'

---
 net/wireless/nl80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/wireless/nl80211.c +1 -1
index 2312dc2ffdb9..9af21a21ea6b 100644
@@ -4151,7 +4151,7 @@ static bool nl80211_put_sta_rate(struct sk_buff *msg, struct rate_info *info,
 	struct nlattr *rate;
 	u32 bitrate;
 	u16 bitrate_compat;
-	enum nl80211_attrs rate_flg;
+	enum nl80211_rate_info rate_flg;
 
 	rate = nla_nest_start(msg, attr);
 	if (!rate)
Signature · 1 line
2.12.2
maintainer
#1 lore raw
Quoted 5 lines · Stefan Agner

Use type enum nl80211_rate_info for bitrate information. This fixes a warning when compiling with clang:
  warning: implicit conversion from enumeration type 'enum nl80211_rate_info'
  to different enumeration type 'enum nl80211_attrs'

I'm pretty sure I just applied exactly these two patches very recently.

What made *two* people suddenly see this?

johannes

#2 lore raw
Quoted 10 lines · Johannes Berg
Quoted 5 lines · Stefan Agner

Use type enum nl80211_rate_info for bitrate information. This fixes a warning when compiling with clang:
  warning: implicit conversion from enumeration type 'enum nl80211_rate_info'
  to different enumeration type 'enum nl80211_attrs'

I'm pretty sure I just applied exactly these two patches very recently.

What made *two* people suddenly see this?

There has been renewed work on compiling Linux using clang... Sorry for the clash.

--
Stefan