[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202107142352.prBtpAPP-lkp@intel.com>
Date: Wed, 14 Jul 2021 23:02:01 +0800
From: kernel test robot <lkp@...el.com>
To: Ryder Lee <ryder.lee@...iatek.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Felix Fietkau <nbd@....name>,
Xing Song <xing.song@...iatek.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'
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@...el.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@...iatek.com>
:::::: CC: Felix Fietkau <nbd@....name>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (64773 bytes)
Powered by blists - more mailing lists