mac80211: Fix warning in minstrel rate control
PATCH 1/1 mac80211: Fix warning in minstrel rate control
When compiling the minstrel rate-control code on x86_64 architecture, the following warning is issued:
CC [M] net/mac80211/rc80211_minstrel_debugfs.onet/mac80211/rc80211_minstrel_debugfs.c:145: warning: initialization from incompatible pointer type
The fix requires changing the type of minstrel_stats_read().
Signed-off-by Larry Finger <[email protected]>
---
John,
This warning also prints in mainline - this belongs in 2.6.28.
Larry
---
net/mac80211/rc80211_minstrel_debugfs.c +1 -1
@@ -106,7 +106,7 @@ minstrel_stats_open(struct inode *inode,return 0 ; } -static int +static ssize_t minstrel_stats_read (struct file *file,char __user *buf,size_t len,loff_t *o) {struct minstrel_stats_info *ms;