[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202311290333.3zOCFRnN-lkp@intel.com>
Date: Wed, 29 Nov 2023 06:51:01 +0800
From: kernel test robot <lkp@...el.com>
To: David Lin <yu-hao.lin@....com>, linux-wireless@...r.kernel.org
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
briannorris@...omium.org, kvalo@...nel.org, francesco@...cini.it,
tsung-hsien.hsieh@....com, David Lin <yu-hao.lin@....com>
Subject: Re: [PATCH v7 01/12] wifi: mwifiex: added code to support host mlme.
Hi David,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 783004b6dbda2cfe9a552a4cc9c1d168a2068f6c]
url: https://github.com/intel-lab-lkp/linux/commits/David-Lin/wifi-mwifiex-added-code-to-support-host-mlme/20231128-165820
base: 783004b6dbda2cfe9a552a4cc9c1d168a2068f6c
patch link: https://lore.kernel.org/r/20231128083115.613235-2-yu-hao.lin%40nxp.com
patch subject: [PATCH v7 01/12] wifi: mwifiex: added code to support host mlme.
config: parisc-randconfig-r112-20231128 (https://download.01.org/0day-ci/archive/20231129/202311290333.3zOCFRnN-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231129/202311290333.3zOCFRnN-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311290333.3zOCFRnN-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/net/wireless/marvell/mwifiex/uap_cmd.c:754:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] size @@ got unsigned int @@
drivers/net/wireless/marvell/mwifiex/uap_cmd.c:754:19: sparse: expected restricted __le16 [usertype] size
drivers/net/wireless/marvell/mwifiex/uap_cmd.c:754:19: sparse: got unsigned int
>> drivers/net/wireless/marvell/mwifiex/uap_cmd.c:757:76: sparse: sparse: restricted __le16 degrades to integer
>> drivers/net/wireless/marvell/mwifiex/uap_cmd.c:761:27: sparse: sparse: bad assignment (+=) to restricted __le16
>> drivers/net/wireless/marvell/mwifiex/uap_cmd.c:764:21: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] val @@ got restricted __le16 [usertype] size @@
drivers/net/wireless/marvell/mwifiex/uap_cmd.c:764:21: sparse: expected unsigned short [usertype] val
drivers/net/wireless/marvell/mwifiex/uap_cmd.c:764:21: sparse: got restricted __le16 [usertype] size
>> drivers/net/wireless/marvell/mwifiex/uap_cmd.c:764:21: sparse: sparse: cast from restricted __le16
>> drivers/net/wireless/marvell/mwifiex/uap_cmd.c:764:21: sparse: sparse: cast from restricted __le16
vim +754 drivers/net/wireless/marvell/mwifiex/uap_cmd.c
745
746 /* This function prepares AP start up command with or without host MLME
747 */
748 static int mwifiex_cmd_uap_bss_start(struct mwifiex_private *priv,
749 struct host_cmd_ds_command *cmd)
750 {
751 struct mwifiex_ie_types_host_mlme *tlv;
752
753 cmd->command = cpu_to_le16(HostCmd_CMD_UAP_BSS_START);
> 754 cmd->size = S_DS_GEN;
755
756 if (priv->adapter->host_mlme) {
> 757 tlv = (struct mwifiex_ie_types_host_mlme *)((u8 *)cmd + cmd->size);
758 tlv->header.type = cpu_to_le16(TLV_TYPE_HOST_MLME);
759 tlv->header.len = cpu_to_le16(sizeof(tlv->host_mlme));
760 tlv->host_mlme = 1;
> 761 cmd->size += sizeof(struct mwifiex_ie_types_host_mlme);
762 }
763
> 764 cmd->size = cpu_to_le16(cmd->size);
765
766 return 0;
767 }
768
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists