Search Linux Wireless

[PATCH] mac80211: Fix warning in minstrel rate control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When compiling the minstrel rate-control code on x86_64 architecture, the
following warning is issued:

  CC [M]  net/mac80211/rc80211_minstrel_debugfs.o
net/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 <Larry.Finger@xxxxxxxxxxxx>
---

John,

This warning also prints in mainline - this belongs in 2.6.28.

Larry
---

Index: linux-2.6/net/mac80211/rc80211_minstrel_debugfs.c
===================================================================
--- linux-2.6.orig/net/mac80211/rc80211_minstrel_debugfs.c
+++ linux-2.6/net/mac80211/rc80211_minstrel_debugfs.c
@@ -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;



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

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux