tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: fb57b1fabcb28f358901b2df90abd2b48abc1ca8
commit: 49e649c3e0a6ec8a12976e331a2c1f29dc7dd3a9 [7901/10701] mt76: adjust wcid size to
support new 802.11ax generation
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
e6658079aca6d971b4e9d7137a3a2ecbc9c34aec)
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 49e649c3e0a6ec8a12976e331a2c1f29dc7dd3a9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from drivers/net/wireless/mediatek/mt76/mt76x02_util.c:8:
> drivers/net/wireless/mediatek/mt76/mt76x02.h:249:10: warning:
result of comparison of constant 288 with expression of type 'u8' (aka
'unsigned char') is always false [-Wtautological-constant-out-of-range-compare]
if (idx >= ARRAY_SIZE(dev->wcid))
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
--
In file included from drivers/net/wireless/mediatek/mt76/mt76x02_mac.c:7:
> drivers/net/wireless/mediatek/mt76/mt76x02.h:249:10: warning:
result of comparison of constant 288 with expression of type 'u8' (aka
'unsigned char') is always false [-Wtautological-constant-out-of-range-compare]
if (idx >= ARRAY_SIZE(dev->wcid))
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
> drivers/net/wireless/mediatek/mt76/mt76x02_mac.c:564:17: warning:
result of comparison of constant 288 with expression of type 'u8' (aka
'unsigned char') is always true [-Wtautological-constant-out-of-range-compare]
if (stat->wcid < ARRAY_SIZE(dev->mt76.wcid))
~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
--
In file included from drivers/net/wireless/mediatek/mt76/mt76x02_trace.c:10:
In file included from drivers/net/wireless/mediatek/mt76/mt76x02_trace.h:10:
> drivers/net/wireless/mediatek/mt76/mt76x02.h:249:10: warning:
result of comparison of constant 288 with expression of type 'u8' (aka
'unsigned char') is always false [-Wtautological-constant-out-of-range-compare]
if (idx >= ARRAY_SIZE(dev->wcid))
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/net/wireless/mediatek/mt76/mt76x02_trace.c:10:
In file included from drivers/net/wireless/mediatek/mt76/mt76x02_trace.h:87:
include/trace/define_trace.h:95:10: fatal error: './mt76x02_trace.h' file not
found
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/define_trace.h:90:32: note: expanded from macro 'TRACE_INCLUDE'
# define TRACE_INCLUDE(system) __TRACE_INCLUDE(system)
^~~~~~~~~~~~~~~~~~~~~~~
include/trace/define_trace.h:87:34: note: expanded from macro '__TRACE_INCLUDE'
# define __TRACE_INCLUDE(system) __stringify(TRACE_INCLUDE_PATH/system.h)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/stringify.h:10:27: note: expanded from macro '__stringify'
#define __stringify(x...) __stringify_1(x)
^~~~~~~~~~~~~~~~
include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1'
#define __stringify_1(x...) #x
^~
<scratch space>:15:1: note: expanded from here
"./mt76x02_trace.h"
^~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
--
In file included from drivers/net/wireless/mediatek/mt76/mt76x0/usb.c:10:
In file included from drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h:20:
> drivers/net/wireless/mediatek/mt76/mt76x0/../mt76x02.h:249:10:
warning: result of comparison of constant 288 with expression of type 'u8' (aka
'unsigned char') is always false [-Wtautological-constant-out-of-range-compare]
if (idx >= ARRAY_SIZE(dev->wcid))
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
--
In file included from drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c:9:
In file included from drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2.h:23:
> drivers/net/wireless/mediatek/mt76/mt76x2/../mt76x02.h:249:10:
warning: result of comparison of constant 288 with expression of type 'u8' (aka
'unsigned char') is always false [-Wtautological-constant-out-of-range-compare]
if (idx >= ARRAY_SIZE(dev->wcid))
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
--
> drivers/net/wireless/mediatek/mt76/mt7603/mac.c:476:10: warning:
result of comparison of constant 288 with expression of type 'u8' (aka
'unsigned char') is always false [-Wtautological-constant-out-of-range-compare]
if (idx >= ARRAY_SIZE(dev->mt76.wcid))
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/mediatek/mt76/mt7603/mac.c:1241:12: warning: result of comparison of
constant 288 with expression of type 'u8' (aka 'unsigned char') is always
false [-Wtautological-constant-out-of-range-compare]
if (wcidx >= ARRAY_SIZE(dev->mt76.wcid))
~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
--
> drivers/net/wireless/mediatek/mt76/mt7615/mac.c:64:10: warning:
result of comparison of constant 288 with expression of type 'u8' (aka
'unsigned char') is always false [-Wtautological-constant-out-of-range-compare]
if (idx >= ARRAY_SIZE(dev->mt76.wcid))
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/mediatek/mt76/mt7615/mac.c:1305:12: warning: result of comparison of
constant 288 with expression of type 'u8' (aka 'unsigned char') is always
false [-Wtautological-constant-out-of-range-compare]
if (wcidx >= ARRAY_SIZE(dev->mt76.wcid))
~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
vim +249 drivers/net/wireless/mediatek/mt76/mt76x02.h
713224164b5dfb drivers/net/wireless/mediatek/mt76/mt76x02_util.h Lorenzo Bianconi
2018-09-28 243
56e8d4dd5ce24c drivers/net/wireless/mediatek/mt76/mt76x02_util.h Lorenzo Bianconi
2018-10-04 244 static inline struct mt76x02_sta *
56e8d4dd5ce24c drivers/net/wireless/mediatek/mt76/mt76x02_util.h Lorenzo Bianconi
2018-10-04 245 mt76x02_rx_get_sta(struct mt76_dev *dev, u8 idx)
56e8d4dd5ce24c drivers/net/wireless/mediatek/mt76/mt76x02_util.h Lorenzo Bianconi
2018-10-04 246 {
56e8d4dd5ce24c drivers/net/wireless/mediatek/mt76/mt76x02_util.h Lorenzo Bianconi
2018-10-04 247 struct mt76_wcid *wcid;
56e8d4dd5ce24c drivers/net/wireless/mediatek/mt76/mt76x02_util.h Lorenzo Bianconi
2018-10-04 248
56e8d4dd5ce24c drivers/net/wireless/mediatek/mt76/mt76x02_util.h Lorenzo Bianconi
2018-10-04 @249 if (idx >= ARRAY_SIZE(dev->wcid))
56e8d4dd5ce24c drivers/net/wireless/mediatek/mt76/mt76x02_util.h Lorenzo Bianconi
2018-10-04 250 return NULL;
56e8d4dd5ce24c drivers/net/wireless/mediatek/mt76/mt76x02_util.h Lorenzo Bianconi
2018-10-04 251
56e8d4dd5ce24c drivers/net/wireless/mediatek/mt76/mt76x02_util.h Lorenzo Bianconi
2018-10-04 252 wcid = rcu_dereference(dev->wcid[idx]);
56e8d4dd5ce24c drivers/net/wireless/mediatek/mt76/mt76x02_util.h Lorenzo Bianconi
2018-10-04 253 if (!wcid)
56e8d4dd5ce24c drivers/net/wireless/mediatek/mt76/mt76x02_util.h Lorenzo Bianconi
2018-10-04 254 return NULL;
56e8d4dd5ce24c drivers/net/wireless/mediatek/mt76/mt76x02_util.h Lorenzo Bianconi
2018-10-04 255
56e8d4dd5ce24c drivers/net/wireless/mediatek/mt76/mt76x02_util.h Lorenzo Bianconi
2018-10-04 256 return container_of(wcid, struct mt76x02_sta, wcid);
56e8d4dd5ce24c drivers/net/wireless/mediatek/mt76/mt76x02_util.h Lorenzo Bianconi
2018-10-04 257 }
56e8d4dd5ce24c drivers/net/wireless/mediatek/mt76/mt76x02_util.h Lorenzo Bianconi
2018-10-04 258
:::::: The code at line 249 was first introduced by commit
:::::: 56e8d4dd5ce24cf534114c67de33861e86501981 mt76: move mt76x02_rx_get_sta and
mt76x02_rx_get_sta_wcid in mt76x02_util.h
:::::: TO: Lorenzo Bianconi <lorenzo.bianconi(a)redhat.com>
:::::: CC: Felix Fietkau <nbd(a)nbd.name>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org