Search Linux Wireless

Re: [PATCH] wifi: rtlwifi: Speed up firmware loading for USB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bitterblue,

kernel test robot noticed the following build warnings:

[auto build test WARNING on wireless-next/main]
[cannot apply to wireless/main linus/master v6.7 next-20240112]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Bitterblue-Smith/wifi-rtlwifi-Speed-up-firmware-loading-for-USB/20240113-035326
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main
patch link:    https://lore.kernel.org/r/0d262acd-4f94-41c2-8d15-83486aeb976b%40gmail.com
patch subject: [PATCH] wifi: rtlwifi: Speed up firmware loading for USB
config: csky-randconfig-r113-20240114 (https://download.01.org/0day-ci/archive/20240114/202401140857.MXysoKVh-lkp@xxxxxxxxx/config)
compiler: csky-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20240114/202401140857.MXysoKVh-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401140857.MXysoKVh-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/net/wireless/realtek/rtlwifi/efuse.c:1329:41: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned int [usertype] val32 @@     got restricted __le32 [usertype] @@
   drivers/net/wireless/realtek/rtlwifi/efuse.c:1329:41: sparse:     expected unsigned int [usertype] val32
   drivers/net/wireless/realtek/rtlwifi/efuse.c:1329:41: sparse:     got restricted __le32 [usertype]

vim +1329 drivers/net/wireless/realtek/rtlwifi/efuse.c

  1289	
  1290	static void _rtl_fw_block_write_usb(struct ieee80211_hw *hw, u8 *buffer, u32 size)
  1291	{
  1292		struct rtl_priv *rtlpriv = rtl_priv(hw);
  1293		u32 blockcount, blockcount8, blockcount4;
  1294		u32 remain8 = 0, remain4 = 0, remain = 0;
  1295		const u32 blocksize = 64;
  1296		const u32 blocksize8 = 8;
  1297		const u32 blocksize4 = 4;
  1298		u32 i, offset;
  1299	
  1300		blockcount = size / blocksize;
  1301		remain8 = size % blocksize;
  1302		for (i = 0; i < blockcount; i++) {
  1303			offset = i * blocksize;
  1304			rtl_write_chunk(rtlpriv,
  1305					START_ADDRESS + offset,
  1306					blocksize, buffer + offset);
  1307		}
  1308	
  1309		if (remain8) {
  1310			offset = blockcount * blocksize;
  1311			blockcount8 = remain8 / blocksize8;
  1312			remain4 = remain8 % blocksize8;
  1313	
  1314			for (i = 0; i < blockcount8; i++)
  1315				rtl_write_chunk(rtlpriv,
  1316						START_ADDRESS + offset + i * blocksize8,
  1317						blocksize8,
  1318						buffer + offset + i * blocksize8);
  1319		}
  1320	
  1321		if (remain4) {
  1322			offset += blockcount8 * blocksize8;
  1323			blockcount4 = remain4 / blocksize4;
  1324			remain = remain8 % blocksize4;
  1325	
  1326			for (i = 0; i < blockcount4; i++)
  1327				rtl_write_dword(rtlpriv,
  1328						START_ADDRESS + offset + i * blocksize4,
> 1329						cpu_to_le32(*(u32 *)(buffer + offset + i)));
  1330		}
  1331	
  1332		if (remain) {
  1333			offset += blockcount4 * blocksize4;
  1334	
  1335			for (i = 0; i < remain; i++)
  1336				rtl_write_byte(rtlpriv, START_ADDRESS + offset + i,
  1337					       *(buffer + offset + i));
  1338		}
  1339	}
  1340	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux