[lkp] [ath6kl:pending 98/98] drivers/net/wireless/ath/ath10k/mac.c:2172:35: note: in expansion of macro 'min'

Fengguang Wu fengguang.wu at intel.com
Sun Sep 27 20:35:22 PDT 2015


tree:   https://github.com/kvalo/ath pending
head:   250e3cead2b0712dde808aa962c089765cfb16e3
commit: 250e3cead2b0712dde808aa962c089765cfb16e3 [98/98] ath10k: Use station's current operating mode from assoc request
config: x86_64-randconfig-x008-201539 (attached as .config)
reproduce:
  git checkout 250e3cead2b0712dde808aa962c089765cfb16e3
  # save the attached .config to linux build tree
  make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/asm-generic/bug.h:13:0,
                    from arch/x86/include/asm/bug.h:35,
                    from include/linux/bug.h:4,
                    from include/net/mac80211.h:17,
                    from drivers/net/wireless/ath/ath10k/mac.h:21,
                    from drivers/net/wireless/ath/ath10k/mac.c:18:
   drivers/net/wireless/ath/ath10k/mac.c: In function 'ath10k_peer_assoc_h_ht':
   include/linux/kernel.h:722:17: warning: comparison of distinct pointer types lacks a cast
     (void) (&_min1 == &_min2);  \
                    ^
>> drivers/net/wireless/ath/ath10k/mac.c:2172:35: note: in expansion of macro 'min'
      arg->peer_num_spatial_streams = min(sta->rx_nss, max_nss);
                                      ^

vim +/min +2172 drivers/net/wireless/ath/ath10k/mac.c

5e3dd157 Kalle Valo        2013-06-12  2156  
fd71f807 Bartosz Markowski 2014-02-10  2157  	/*
fd71f807 Bartosz Markowski 2014-02-10  2158  	 * This is a workaround for HT-enabled STAs which break the spec
fd71f807 Bartosz Markowski 2014-02-10  2159  	 * and have no HT capabilities RX mask (no HT RX MCS map).
fd71f807 Bartosz Markowski 2014-02-10  2160  	 *
fd71f807 Bartosz Markowski 2014-02-10  2161  	 * As per spec, in section 20.3.5 Modulation and coding scheme (MCS),
fd71f807 Bartosz Markowski 2014-02-10  2162  	 * MCS 0 through 7 are mandatory in 20MHz with 800 ns GI at all STAs.
fd71f807 Bartosz Markowski 2014-02-10  2163  	 *
fd71f807 Bartosz Markowski 2014-02-10  2164  	 * Firmware asserts if such situation occurs.
fd71f807 Bartosz Markowski 2014-02-10  2165  	 */
fd71f807 Bartosz Markowski 2014-02-10  2166  	if (n == 0) {
fd71f807 Bartosz Markowski 2014-02-10  2167  		arg->peer_ht_rates.num_rates = 8;
fd71f807 Bartosz Markowski 2014-02-10  2168  		for (i = 0; i < arg->peer_ht_rates.num_rates; i++)
fd71f807 Bartosz Markowski 2014-02-10  2169  			arg->peer_ht_rates.rates[i] = i;
fd71f807 Bartosz Markowski 2014-02-10  2170  	} else {
5e3dd157 Kalle Valo        2013-06-12  2171  		arg->peer_ht_rates.num_rates = n;
250e3cea Vivek Natarajan   2015-09-25 @2172  		arg->peer_num_spatial_streams = min(sta->rx_nss, max_nss);
fd71f807 Bartosz Markowski 2014-02-10  2173  	}
5e3dd157 Kalle Valo        2013-06-12  2174  
7aa7a72a Michal Kazior     2014-08-25  2175  	ath10k_dbg(ar, ATH10K_DBG_MAC, "mac ht peer %pM mcs cnt %d nss %d\n",
60c3daa8 Kalle Valo        2013-09-08  2176  		   arg->addr,
5e3dd157 Kalle Valo        2013-06-12  2177  		   arg->peer_ht_rates.num_rates,
5e3dd157 Kalle Valo        2013-06-12  2178  		   arg->peer_num_spatial_streams);
5e3dd157 Kalle Valo        2013-06-12  2179  }
5e3dd157 Kalle Valo        2013-06-12  2180  

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 23978 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/ath10k/attachments/20150928/646e7ac8/attachment-0001.obj>


More information about the ath10k mailing list