* [linux-next:master 12702/13260] drivers/net/wireless/ath/ath10k/mac.c:558:11: warning: 5 enumeration values not handled in switch: 'NL80211_CHAN_WIDTH_1', 'NL80211_CHAN_WIDTH_2', 'NL80211_CHAN_WIDTH_4'...
@ 2020-08-02 9:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-02 9:05 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 9513 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 01830e6c042e8eb6eb202e05d7df8057135b4c26
commit: e5cb3d34a66de6294974056cc0cb70c4ea977c10 [12702/13260] nl80211: S1G band and channel definitions
config: x86_64-randconfig-r023-20200802 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 25af353b0e74907d5d50c8616b885bd1f73a68b3)
reproduce (this is a W=1 build):
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 e5cb3d34a66de6294974056cc0cb70c4ea977c10
# 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: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/wireless/ath/ath10k/mac.c:558:11: warning: 5 enumeration values not handled in switch: 'NL80211_CHAN_WIDTH_1', 'NL80211_CHAN_WIDTH_2', 'NL80211_CHAN_WIDTH_4'... [-Wswitch]
switch (chandef->width) {
^
drivers/net/wireless/ath/ath10k/mac.c:581:11: warning: 5 enumeration values not handled in switch: 'NL80211_CHAN_WIDTH_1', 'NL80211_CHAN_WIDTH_2', 'NL80211_CHAN_WIDTH_4'... [-Wswitch]
switch (chandef->width) {
^
drivers/net/wireless/ath/ath10k/mac.c:7954:7: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat]
vifs[i].old_ctx->def.chan->center_freq,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/ath/ath10k/debug.h:285:37: note: expanded from macro 'ath10k_dbg'
__ath10k_dbg(ar, dbg_mask, fmt, ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
drivers/net/wireless/ath/ath10k/mac.c:7955:7: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat]
vifs[i].new_ctx->def.chan->center_freq,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/ath/ath10k/debug.h:285:37: note: expanded from macro 'ath10k_dbg'
__ath10k_dbg(ar, dbg_mask, fmt, ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
drivers/net/wireless/ath/ath10k/mac.c:8027:6: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat]
ctx->def.chan->center_freq, ctx->def.width, ctx);
^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/ath/ath10k/debug.h:285:37: note: expanded from macro 'ath10k_dbg'
__ath10k_dbg(ar, dbg_mask, fmt, ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
drivers/net/wireless/ath/ath10k/mac.c:8051:6: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat]
ctx->def.chan->center_freq, ctx->def.width, ctx);
^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/ath/ath10k/debug.h:285:37: note: expanded from macro 'ath10k_dbg'
__ath10k_dbg(ar, dbg_mask, fmt, ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
drivers/net/wireless/ath/ath10k/mac.c:8116:6: warning: format specifies type 'unsigned short' but the argument has type 'u32' (aka 'unsigned int') [-Wformat]
ctx->def.chan->center_freq, ctx->def.width, ctx, changed);
^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/wireless/ath/ath10k/debug.h:285:37: note: expanded from macro 'ath10k_dbg'
__ath10k_dbg(ar, dbg_mask, fmt, ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
7 warnings generated.
vim +558 drivers/net/wireless/ath/ath10k/mac.c
5e3dd157d7e70f Kalle Valo 2013-06-12 550
5e3dd157d7e70f Kalle Valo 2013-06-12 551 static inline enum wmi_phy_mode
5e3dd157d7e70f Kalle Valo 2013-06-12 552 chan_to_phymode(const struct cfg80211_chan_def *chandef)
5e3dd157d7e70f Kalle Valo 2013-06-12 553 {
5e3dd157d7e70f Kalle Valo 2013-06-12 554 enum wmi_phy_mode phymode = MODE_UNKNOWN;
5e3dd157d7e70f Kalle Valo 2013-06-12 555
5e3dd157d7e70f Kalle Valo 2013-06-12 556 switch (chandef->chan->band) {
57fbcce37be7c1 Johannes Berg 2016-04-12 557 case NL80211_BAND_2GHZ:
5e3dd157d7e70f Kalle Valo 2013-06-12 @558 switch (chandef->width) {
5e3dd157d7e70f Kalle Valo 2013-06-12 559 case NL80211_CHAN_WIDTH_20_NOHT:
6faab1273f7978 Peter Oh 2014-12-18 560 if (chandef->chan->flags & IEEE80211_CHAN_NO_OFDM)
6faab1273f7978 Peter Oh 2014-12-18 561 phymode = MODE_11B;
6faab1273f7978 Peter Oh 2014-12-18 562 else
5e3dd157d7e70f Kalle Valo 2013-06-12 563 phymode = MODE_11G;
5e3dd157d7e70f Kalle Valo 2013-06-12 564 break;
5e3dd157d7e70f Kalle Valo 2013-06-12 565 case NL80211_CHAN_WIDTH_20:
5e3dd157d7e70f Kalle Valo 2013-06-12 566 phymode = MODE_11NG_HT20;
5e3dd157d7e70f Kalle Valo 2013-06-12 567 break;
5e3dd157d7e70f Kalle Valo 2013-06-12 568 case NL80211_CHAN_WIDTH_40:
5e3dd157d7e70f Kalle Valo 2013-06-12 569 phymode = MODE_11NG_HT40;
5e3dd157d7e70f Kalle Valo 2013-06-12 570 break;
0f817ed52d0787 John W. Linville 2013-06-27 571 case NL80211_CHAN_WIDTH_5:
0f817ed52d0787 John W. Linville 2013-06-27 572 case NL80211_CHAN_WIDTH_10:
5e3dd157d7e70f Kalle Valo 2013-06-12 573 case NL80211_CHAN_WIDTH_80:
5e3dd157d7e70f Kalle Valo 2013-06-12 574 case NL80211_CHAN_WIDTH_80P80:
5e3dd157d7e70f Kalle Valo 2013-06-12 575 case NL80211_CHAN_WIDTH_160:
5e3dd157d7e70f Kalle Valo 2013-06-12 576 phymode = MODE_UNKNOWN;
5e3dd157d7e70f Kalle Valo 2013-06-12 577 break;
5e3dd157d7e70f Kalle Valo 2013-06-12 578 }
5e3dd157d7e70f Kalle Valo 2013-06-12 579 break;
57fbcce37be7c1 Johannes Berg 2016-04-12 580 case NL80211_BAND_5GHZ:
5e3dd157d7e70f Kalle Valo 2013-06-12 581 switch (chandef->width) {
5e3dd157d7e70f Kalle Valo 2013-06-12 582 case NL80211_CHAN_WIDTH_20_NOHT:
5e3dd157d7e70f Kalle Valo 2013-06-12 583 phymode = MODE_11A;
5e3dd157d7e70f Kalle Valo 2013-06-12 584 break;
5e3dd157d7e70f Kalle Valo 2013-06-12 585 case NL80211_CHAN_WIDTH_20:
5e3dd157d7e70f Kalle Valo 2013-06-12 586 phymode = MODE_11NA_HT20;
5e3dd157d7e70f Kalle Valo 2013-06-12 587 break;
5e3dd157d7e70f Kalle Valo 2013-06-12 588 case NL80211_CHAN_WIDTH_40:
5e3dd157d7e70f Kalle Valo 2013-06-12 589 phymode = MODE_11NA_HT40;
5e3dd157d7e70f Kalle Valo 2013-06-12 590 break;
5e3dd157d7e70f Kalle Valo 2013-06-12 591 case NL80211_CHAN_WIDTH_80:
5e3dd157d7e70f Kalle Valo 2013-06-12 592 phymode = MODE_11AC_VHT80;
5e3dd157d7e70f Kalle Valo 2013-06-12 593 break;
bc1efd739b610a Sebastian Gottschall 2017-01-12 594 case NL80211_CHAN_WIDTH_160:
bc1efd739b610a Sebastian Gottschall 2017-01-12 595 phymode = MODE_11AC_VHT160;
bc1efd739b610a Sebastian Gottschall 2017-01-12 596 break;
bc1efd739b610a Sebastian Gottschall 2017-01-12 597 case NL80211_CHAN_WIDTH_80P80:
bc1efd739b610a Sebastian Gottschall 2017-01-12 598 phymode = MODE_11AC_VHT80_80;
bc1efd739b610a Sebastian Gottschall 2017-01-12 599 break;
0f817ed52d0787 John W. Linville 2013-06-27 600 case NL80211_CHAN_WIDTH_5:
0f817ed52d0787 John W. Linville 2013-06-27 601 case NL80211_CHAN_WIDTH_10:
5e3dd157d7e70f Kalle Valo 2013-06-12 602 phymode = MODE_UNKNOWN;
5e3dd157d7e70f Kalle Valo 2013-06-12 603 break;
5e3dd157d7e70f Kalle Valo 2013-06-12 604 }
5e3dd157d7e70f Kalle Valo 2013-06-12 605 break;
5e3dd157d7e70f Kalle Valo 2013-06-12 606 default:
5e3dd157d7e70f Kalle Valo 2013-06-12 607 break;
5e3dd157d7e70f Kalle Valo 2013-06-12 608 }
5e3dd157d7e70f Kalle Valo 2013-06-12 609
5e3dd157d7e70f Kalle Valo 2013-06-12 610 WARN_ON(phymode == MODE_UNKNOWN);
5e3dd157d7e70f Kalle Valo 2013-06-12 611 return phymode;
5e3dd157d7e70f Kalle Valo 2013-06-12 612 }
5e3dd157d7e70f Kalle Valo 2013-06-12 613
:::::: The code at line 558 was first introduced by commit
:::::: 5e3dd157d7e70f0e3cea3f2573ed69fb156a19d5 ath10k: mac80211 driver for Qualcomm Atheros 802.11ac CQA98xx devices
:::::: TO: Kalle Valo <kvalo@qca.qualcomm.com>
:::::: CC: Kalle Valo <kvalo@qca.qualcomm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 35566 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-02 9:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-02 9:05 [linux-next:master 12702/13260] drivers/net/wireless/ath/ath10k/mac.c:558:11: warning: 5 enumeration values not handled in switch: 'NL80211_CHAN_WIDTH_1', 'NL80211_CHAN_WIDTH_2', 'NL80211_CHAN_WIDTH_4' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.