linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: Fix warning in minstrel rate control
@ 2008-10-22 23:18 Larry Finger
  0 siblings, 0 replies; only message in thread
From: Larry Finger @ 2008-10-22 23:18 UTC (permalink / raw)
  To: John Linville, Johannes Berg; +Cc: wireless

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@lwfinger.net>
---

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;




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-22 23:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-22 23:18 [PATCH] mac80211: Fix warning in minstrel rate control Larry Finger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).