Search Linux Wireless

Re: [PATCH v2 08/10] wifi: mac80211: Simplify AMPDU handling

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

 



Hi Alexander,

kernel test robot noticed the following build warnings:

[auto build test WARNING on wireless-next/main]
[also build test WARNING on wireless/main ath/ath-next linus/master v6.14-rc3 next-20250217]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Alexander-Wetzel/wifi-mac80211-move-rate-control-setup/20250217-162046
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main
patch link:    https://lore.kernel.org/r/20250217081721.45110-9-Alexander%40wetzel-home.de
patch subject: [PATCH v2 08/10] wifi: mac80211: Simplify AMPDU handling
config: i386-buildonly-randconfig-004-20250217 (https://download.01.org/0day-ci/archive/20250218/202502180007.MFwMk2L7-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250218/202502180007.MFwMk2L7-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502180007.MFwMk2L7-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   net/mac80211/tx.c: In function 'ieee80211_tx_prepare':
>> net/mac80211/tx.c:1140:14: warning: variable 'aggr_check' set but not used [-Wunused-but-set-variable]
    1140 |         bool aggr_check = false;
         |              ^~~~~~~~~~
--
   net/mac80211/rx.c: In function 'ieee80211_rx_mesh_fast_forward':
>> net/mac80211/rx.c:2778:30: warning: variable 'tid_tx' set but not used [-Wunused-but-set-variable]
    2778 |         struct tid_ampdu_tx *tid_tx;
         |                              ^~~~~~


vim +/aggr_check +1140 net/mac80211/tx.c

1a7915501ca94a Felix Fietkau    2021-06-29  1126  
58d4185e36913d Johannes Berg    2007-09-26  1127  /*
58d4185e36913d Johannes Berg    2007-09-26  1128   * initialises @tx
7c10770f995820 Johannes Berg    2015-03-20  1129   * pass %NULL for the station if unknown, a valid pointer if known
7c10770f995820 Johannes Berg    2015-03-20  1130   * or an ERR_PTR() if the station is known not to exist
58d4185e36913d Johannes Berg    2007-09-26  1131   */
9ae54c8463691b Johannes Berg    2008-01-31  1132  static ieee80211_tx_result
3b8d81e020f77c Johannes Berg    2009-06-17  1133  ieee80211_tx_prepare(struct ieee80211_sub_if_data *sdata,
3b8d81e020f77c Johannes Berg    2009-06-17  1134  		     struct ieee80211_tx_data *tx,
7c10770f995820 Johannes Berg    2015-03-20  1135  		     struct sta_info *sta, struct sk_buff *skb)
e2ebc74d7e3d71 Johannes Berg    2007-07-27  1136  {
3b8d81e020f77c Johannes Berg    2009-06-17  1137  	struct ieee80211_local *local = sdata->local;
58d4185e36913d Johannes Berg    2007-09-26  1138  	struct ieee80211_hdr *hdr;
e039fa4a4195ac Johannes Berg    2008-05-15  1139  	struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
1a7915501ca94a Felix Fietkau    2021-06-29 @1140  	bool aggr_check = false;
e2ebc74d7e3d71 Johannes Berg    2007-07-27  1141  
e2ebc74d7e3d71 Johannes Berg    2007-07-27  1142  	memset(tx, 0, sizeof(*tx));
e2ebc74d7e3d71 Johannes Berg    2007-07-27  1143  	tx->skb = skb;
e2ebc74d7e3d71 Johannes Berg    2007-07-27  1144  	tx->local = local;
3b8d81e020f77c Johannes Berg    2009-06-17  1145  	tx->sdata = sdata;
252b86c43225d0 Johannes Berg    2011-11-16  1146  	__skb_queue_head_init(&tx->skbs);
e2ebc74d7e3d71 Johannes Berg    2007-07-27  1147  
cd8ffc800ce18e Johannes Berg    2009-03-23  1148  	/*
cd8ffc800ce18e Johannes Berg    2009-03-23  1149  	 * If this flag is set to true anywhere, and we get here,
cd8ffc800ce18e Johannes Berg    2009-03-23  1150  	 * we are doing the needed processing, so remove the flag
cd8ffc800ce18e Johannes Berg    2009-03-23  1151  	 * now.
cd8ffc800ce18e Johannes Berg    2009-03-23  1152  	 */
cc20ff2c6b5d3e Felix Fietkau    2020-09-08  1153  	info->control.flags &= ~IEEE80211_TX_INTCFL_NEED_TXPROCESSING;
cd8ffc800ce18e Johannes Berg    2009-03-23  1154  
58d4185e36913d Johannes Berg    2007-09-26  1155  	hdr = (struct ieee80211_hdr *) skb->data;
58d4185e36913d Johannes Berg    2007-09-26  1156  
7c10770f995820 Johannes Berg    2015-03-20  1157  	if (likely(sta)) {
7c10770f995820 Johannes Berg    2015-03-20  1158  		if (!IS_ERR(sta))
7c10770f995820 Johannes Berg    2015-03-20  1159  			tx->sta = sta;
7c10770f995820 Johannes Berg    2015-03-20  1160  	} else {
3f0e0b220f8007 Felix Fietkau    2010-01-08  1161  		if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN) {
f14543ee4d0681 Felix Fietkau    2009-11-10  1162  			tx->sta = rcu_dereference(sdata->u.vlan.sta);
7c10770f995820 Johannes Berg    2015-03-20  1163  			if (!tx->sta && sdata->wdev.use_4addr)
3f0e0b220f8007 Felix Fietkau    2010-01-08  1164  				return TX_DROP;
10cb8e617560fc Markus Theil     2021-02-06  1165  		} else if (tx->sdata->control_port_protocol == tx->skb->protocol) {
b4d57adb727ec7 Felix Fietkau    2010-01-31  1166  			tx->sta = sta_info_get_bss(sdata, hdr->addr1);
3f0e0b220f8007 Felix Fietkau    2010-01-08  1167  		}
1a7915501ca94a Felix Fietkau    2021-06-29  1168  		if (!tx->sta && !is_multicast_ether_addr(hdr->addr1)) {
abe60632f311d5 Johannes Berg    2009-11-25  1169  			tx->sta = sta_info_get(sdata, hdr->addr1);
1a7915501ca94a Felix Fietkau    2021-06-29  1170  			aggr_check = true;
1a7915501ca94a Felix Fietkau    2021-06-29  1171  		}
7c10770f995820 Johannes Berg    2015-03-20  1172  	}
58d4185e36913d Johannes Berg    2007-09-26  1173  
badffb725c86cc Jiri Slaby       2007-08-28  1174  	if (is_multicast_ether_addr(hdr->addr1)) {
5cf121c3cdb955 Johannes Berg    2008-02-25  1175  		tx->flags &= ~IEEE80211_TX_UNICAST;
e039fa4a4195ac Johannes Berg    2008-05-15  1176  		info->flags |= IEEE80211_TX_CTL_NO_ACK;
6fd67e937ece53 Simon Wunderlich 2011-11-18  1177  	} else
5cf121c3cdb955 Johannes Berg    2008-02-25  1178  		tx->flags |= IEEE80211_TX_UNICAST;
58d4185e36913d Johannes Berg    2007-09-26  1179  
a26eb27ab43014 Johannes Berg    2011-10-07  1180  	if (!(info->flags & IEEE80211_TX_CTL_DONTFRAG)) {
a26eb27ab43014 Johannes Berg    2011-10-07  1181  		if (!(tx->flags & IEEE80211_TX_UNICAST) ||
a26eb27ab43014 Johannes Berg    2011-10-07  1182  		    skb->len + FCS_LEN <= local->hw.wiphy->frag_threshold ||
a26eb27ab43014 Johannes Berg    2011-10-07  1183  		    info->flags & IEEE80211_TX_CTL_AMPDU)
a26eb27ab43014 Johannes Berg    2011-10-07  1184  			info->flags |= IEEE80211_TX_CTL_DONTFRAG;
58d4185e36913d Johannes Berg    2007-09-26  1185  	}
58d4185e36913d Johannes Berg    2007-09-26  1186  
e2ebc74d7e3d71 Johannes Berg    2007-07-27  1187  	if (!tx->sta)
e039fa4a4195ac Johannes Berg    2008-05-15  1188  		info->flags |= IEEE80211_TX_CTL_CLEAR_PS_FILT;
f7418bc10d8402 Felix Fietkau    2015-09-24  1189  	else if (test_and_clear_sta_flag(tx->sta, WLAN_STA_CLEAR_PS_FILT)) {
e039fa4a4195ac Johannes Berg    2008-05-15  1190  		info->flags |= IEEE80211_TX_CTL_CLEAR_PS_FILT;
f7418bc10d8402 Felix Fietkau    2015-09-24  1191  		ieee80211_check_fast_xmit(tx->sta);
f7418bc10d8402 Felix Fietkau    2015-09-24  1192  	}
58d4185e36913d Johannes Berg    2007-09-26  1193  
e039fa4a4195ac Johannes Berg    2008-05-15  1194  	info->flags |= IEEE80211_TX_CTL_FIRST_FRAGMENT;
e2ebc74d7e3d71 Johannes Berg    2007-07-27  1195  
9ae54c8463691b Johannes Berg    2008-01-31  1196  	return TX_CONTINUE;
e2ebc74d7e3d71 Johannes Berg    2007-07-27  1197  }
e2ebc74d7e3d71 Johannes Berg    2007-07-27  1198  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux