Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] wireless: fix a few sparse warnings
@ 2008-10-28 15:49 Johannes Berg
  2008-10-28 18:48 ` Harvey Harrison
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2008-10-28 15:49 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
 net/mac80211/rc80211_minstrel.c |    2 +-
 net/mac80211/tx.c               |    1 -
 net/wireless/reg.c              |    2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)

--- everything.orig/net/mac80211/rc80211_minstrel.c	2008-10-28 16:42:59.000000000 +0100
+++ everything/net/mac80211/rc80211_minstrel.c	2008-10-28 16:43:08.000000000 +0100
@@ -225,7 +225,7 @@ minstrel_get_next_sample(struct minstrel
 	return sample_ndx;
 }
 
-void
+static void
 minstrel_get_rate(void *priv, struct ieee80211_sta *sta,
 		  void *priv_sta, struct ieee80211_tx_rate_control *txrc)
 {
--- everything.orig/net/mac80211/tx.c	2008-10-28 16:43:18.000000000 +0100
+++ everything/net/mac80211/tx.c	2008-10-28 16:43:44.000000000 +0100
@@ -700,7 +700,6 @@ ieee80211_tx_h_fragment(struct ieee80211
 	left = payload_len - per_fragm;
 	for (i = 0; i < num_fragm - 1; i++) {
 		struct ieee80211_hdr *fhdr;
-		struct ieee80211_tx_info *info;
 		size_t copylen;
 
 		if (left <= 0)
--- everything.orig/net/wireless/reg.c	2008-10-28 16:45:29.000000000 +0100
+++ everything/net/wireless/reg.c	2008-10-28 16:45:33.000000000 +0100
@@ -638,7 +638,7 @@ static void print_regdomain(const struct
 	print_rd_rules(rd);
 }
 
-void print_regdomain_info(const struct ieee80211_regdomain *rd)
+static void print_regdomain_info(const struct ieee80211_regdomain *rd)
 {
 	printk(KERN_INFO "cfg80211: Regulatory domain: %c%c\n",
 		rd->alpha2[0], rd->alpha2[1]);



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-28 18:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-28 15:49 [PATCH] wireless: fix a few sparse warnings Johannes Berg
2008-10-28 18:48 ` Harvey Harrison
2008-10-28 18:50   ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox