From: kernel test robot <lkp@intel.com>
To: Ryder Lee <ryder.lee@mediatek.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Felix Fietkau <nbd@nbd.name>, Xing Song <xing.song@mediatek.com>
Subject: drivers/net/wireless/mediatek/mt76/mt7921/mcu.c:114:10: warning: implicit conversion from 'enum mt76_cipher_type' to 'enum mcu_cipher_type'
Date: Wed, 14 Jul 2021 23:02:01 +0800 [thread overview]
Message-ID: <202107142352.prBtpAPP-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3500 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 40226a3d96ef8ab8980f032681c8bfd46d63874e
commit: c368362c36d3d4cedbc9a1c9caa95960912cc429 mt76: fix iv and CCMP header insertion
date: 4 weeks ago
config: i386-allyesconfig (attached as .config)
compiler: gcc-10 (Debian 10.2.1-6) 10.2.1 20210110
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c368362c36d3d4cedbc9a1c9caa95960912cc429
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout c368362c36d3d4cedbc9a1c9caa95960912cc429
# save the attached .config to linux build tree
make W=1 ARCH=i386
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/mediatek/mt76/mt7921/mcu.c: In function 'mt7921_mcu_get_cipher':
>> drivers/net/wireless/mediatek/mt76/mt7921/mcu.c:114:10: warning: implicit conversion from 'enum mt76_cipher_type' to 'enum mcu_cipher_type' [-Wenum-conversion]
114 | return MT_CIPHER_NONE;
| ^~~~~~~~~~~~~~
vim +114 drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
1c099ab44727c8 Sean Wang 2021-01-28 90
c368362c36d3d4 Ryder Lee 2021-06-17 91 static enum mcu_cipher_type
1c099ab44727c8 Sean Wang 2021-01-28 92 mt7921_mcu_get_cipher(int cipher)
1c099ab44727c8 Sean Wang 2021-01-28 93 {
1c099ab44727c8 Sean Wang 2021-01-28 94 switch (cipher) {
1c099ab44727c8 Sean Wang 2021-01-28 95 case WLAN_CIPHER_SUITE_WEP40:
c368362c36d3d4 Ryder Lee 2021-06-17 96 return MCU_CIPHER_WEP40;
1c099ab44727c8 Sean Wang 2021-01-28 97 case WLAN_CIPHER_SUITE_WEP104:
c368362c36d3d4 Ryder Lee 2021-06-17 98 return MCU_CIPHER_WEP104;
1c099ab44727c8 Sean Wang 2021-01-28 99 case WLAN_CIPHER_SUITE_TKIP:
c368362c36d3d4 Ryder Lee 2021-06-17 100 return MCU_CIPHER_TKIP;
1c099ab44727c8 Sean Wang 2021-01-28 101 case WLAN_CIPHER_SUITE_AES_CMAC:
c368362c36d3d4 Ryder Lee 2021-06-17 102 return MCU_CIPHER_BIP_CMAC_128;
1c099ab44727c8 Sean Wang 2021-01-28 103 case WLAN_CIPHER_SUITE_CCMP:
c368362c36d3d4 Ryder Lee 2021-06-17 104 return MCU_CIPHER_AES_CCMP;
1c099ab44727c8 Sean Wang 2021-01-28 105 case WLAN_CIPHER_SUITE_CCMP_256:
c368362c36d3d4 Ryder Lee 2021-06-17 106 return MCU_CIPHER_CCMP_256;
1c099ab44727c8 Sean Wang 2021-01-28 107 case WLAN_CIPHER_SUITE_GCMP:
c368362c36d3d4 Ryder Lee 2021-06-17 108 return MCU_CIPHER_GCMP;
1c099ab44727c8 Sean Wang 2021-01-28 109 case WLAN_CIPHER_SUITE_GCMP_256:
c368362c36d3d4 Ryder Lee 2021-06-17 110 return MCU_CIPHER_GCMP_256;
1c099ab44727c8 Sean Wang 2021-01-28 111 case WLAN_CIPHER_SUITE_SMS4:
c368362c36d3d4 Ryder Lee 2021-06-17 112 return MCU_CIPHER_WAPI;
1c099ab44727c8 Sean Wang 2021-01-28 113 default:
1c099ab44727c8 Sean Wang 2021-01-28 @114 return MT_CIPHER_NONE;
1c099ab44727c8 Sean Wang 2021-01-28 115 }
1c099ab44727c8 Sean Wang 2021-01-28 116 }
1c099ab44727c8 Sean Wang 2021-01-28 117
:::::: The code at line 114 was first introduced by commit
:::::: 1c099ab44727c8e42fe4de4d91b53cec3ef02860 mt76: mt7921: add MCU support
:::::: TO: Sean Wang <sean.wang@mediatek.com>
:::::: CC: Felix Fietkau <nbd@nbd.name>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 64773 bytes --]
reply other threads:[~2021-07-14 15:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202107142352.prBtpAPP-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nbd@nbd.name \
--cc=ryder.lee@mediatek.com \
--cc=xing.song@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox