Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wireless: fix a few sparse warnings

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Johannes Berg and committed by
John W. Linville
2df78167 1239cd58

+2 -3
+1 -1
net/mac80211/rc80211_minstrel.c
··· 225 225 return sample_ndx; 226 226 } 227 227 228 - void 228 + static void 229 229 minstrel_get_rate(void *priv, struct ieee80211_sta *sta, 230 230 void *priv_sta, struct ieee80211_tx_rate_control *txrc) 231 231 {
-1
net/mac80211/tx.c
··· 698 698 left = payload_len - per_fragm; 699 699 for (i = 0; i < num_fragm - 1; i++) { 700 700 struct ieee80211_hdr *fhdr; 701 - struct ieee80211_tx_info *info; 702 701 size_t copylen; 703 702 704 703 if (left <= 0)
+1 -1
net/wireless/reg.c
··· 638 638 print_rd_rules(rd); 639 639 } 640 640 641 - void print_regdomain_info(const struct ieee80211_regdomain *rd) 641 + static void print_regdomain_info(const struct ieee80211_regdomain *rd) 642 642 { 643 643 printk(KERN_INFO "cfg80211: Regulatory domain: %c%c\n", 644 644 rd->alpha2[0], rd->alpha2[1]);