From: Johannes Berg <johannes@sipsolutions.net>
To: John Linville <linville@tuxdriver.com>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: [PATCH] wireless: fix a few sparse warnings
Date: Tue, 28 Oct 2008 16:49:41 +0100 [thread overview]
Message-ID: <1225208981.3598.10.camel@johannes.berg> (raw)
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]);
next reply other threads:[~2008-10-28 18:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-28 15:49 Johannes Berg [this message]
2008-10-28 18:48 ` [PATCH] wireless: fix a few sparse warnings Harvey Harrison
2008-10-28 18:50 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1225208981.3598.10.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox