linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/net/wireless/mediatek/mt76/mt7921/mcu.c:114:10: warning: implicit conversion from 'enum mt76_cipher_type' to 'enum mcu_cipher_type'
@ 2021-07-14 15:02 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-14 15:02 UTC (permalink / raw)
  To: Ryder Lee; +Cc: kbuild-all, linux-kernel, Felix Fietkau, Xing Song

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-14 15:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-14 15:02 drivers/net/wireless/mediatek/mt76/mt7921/mcu.c:114:10: warning: implicit conversion from 'enum mt76_cipher_type' to 'enum mcu_cipher_type' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).