nl80211: fix enumeration type
Subsystems (3)
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
@@ -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
Johannes Berg
maintainerQuoted 5 lines · Stefan Agner
Use type enum
nl80211_rate_infofor bitrate information. This fixes a warning when compiling with clang:
warning: implicit conversion from enumeration type 'enumnl80211_rate_info'
to different enumeration type 'enumnl80211_attrs'
I'm pretty sure I just applied exactly these two patches very recently.
What made *two* people suddenly see this?
johannes
Quoted 10 lines · Johannes Berg
Quoted 5 lines · Stefan Agner
Use type enum
nl80211_rate_infofor bitrate information. This fixes a warning when compiling with clang:
warning: implicit conversion from enumeration type 'enumnl80211_rate_info'
to different enumeration type 'enumnl80211_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