Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1627113
| From | Stefan Agner <stefan@agner.ch> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] nl80211: fix enumeration type |
| Date | 2017-04-20 09:00 +0200 |
| Message-ID | <tyeen-5AX-33@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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' Signed-off-by: Stefan Agner <stefan@agner.ch> --- net/wireless/nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 2312dc2ffdb9..9af21a21ea6b 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -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) -- 2.12.2
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] nl80211: fix enumeration type Stefan Agner <stefan@agner.ch> - 2017-04-20 09:00 +0200
Re: [PATCH] nl80211: fix enumeration type Johannes Berg <johannes@sipsolutions.net> - 2017-04-20 09:30 +0200
Re: [PATCH] nl80211: fix enumeration type Stefan Agner <stefan@agner.ch> - 2017-04-20 16:30 +0200
csiph-web