[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202271242.Cm0RmDFO-lkp@intel.com>
Date: Sun, 27 Feb 2022 12:14:40 +0800
From: kernel test robot <lkp@...el.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: drivers/net/wireless/ath/ath6kl/htc_mbox.c:368:9: sparse: sparse:
incorrect type in assignment (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2293be58d6a18cab800e25e42081bacb75c05752
commit: 803f4e1eab7a8938ba3a3c30dd4eb5e9eeef5e63 asm-generic: simplify asm/unaligned.h
date: 10 months ago
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20220227/202202271242.Cm0RmDFO-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=803f4e1eab7a8938ba3a3c30dd4eb5e9eeef5e63
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 803f4e1eab7a8938ba3a3c30dd4eb5e9eeef5e63
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/wireless/ath/ath6kl/ drivers/net/wireless/mediatek/mt76/mt7915/ drivers/scsi/qedi/ drivers/staging/ sound/soc/intel/skylake/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/net/wireless/ath/ath6kl/htc_mbox.c:368:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 x @@ got unsigned short [usertype] @@
drivers/net/wireless/ath/ath6kl/htc_mbox.c:368:9: sparse: expected restricted __le16 x
drivers/net/wireless/ath/ath6kl/htc_mbox.c:368:9: sparse: got unsigned short [usertype]
--
>> drivers/net/wireless/ath/ath6kl/htc_pipe.c:241:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 x @@ got unsigned short [usertype] @@
drivers/net/wireless/ath/ath6kl/htc_pipe.c:241:17: sparse: expected restricted __le16 x
drivers/net/wireless/ath/ath6kl/htc_pipe.c:241:17: sparse: got unsigned short [usertype]
vim +368 drivers/net/wireless/ath/ath6kl/htc_mbox.c
94e532d1a053b1 drivers/net/wireless/ath/ath6kl/htc.c Vasanthakumar Thiagarajan 2011-08-22 358
dfa0104c2a2699 drivers/net/wireless/ath/ath6kl/htc.c Kalle Valo 2011-09-06 359 static void ath6kl_htc_tx_prep_pkt(struct htc_packet *packet, u8 flags,
dfa0104c2a2699 drivers/net/wireless/ath/ath6kl/htc.c Kalle Valo 2011-09-06 360 int ctrl0, int ctrl1)
bdcd81707973cf drivers/net/wireless/ath/ath6kl/htc.c Kalle Valo 2011-07-18 361 {
bdcd81707973cf drivers/net/wireless/ath/ath6kl/htc.c Kalle Valo 2011-07-18 362 struct htc_frame_hdr *hdr;
bdcd81707973cf drivers/net/wireless/ath/ath6kl/htc.c Kalle Valo 2011-07-18 363
bdcd81707973cf drivers/net/wireless/ath/ath6kl/htc.c Kalle Valo 2011-07-18 364 packet->buf -= HTC_HDR_LENGTH;
bdcd81707973cf drivers/net/wireless/ath/ath6kl/htc.c Kalle Valo 2011-07-18 365 hdr = (struct htc_frame_hdr *)packet->buf;
bdcd81707973cf drivers/net/wireless/ath/ath6kl/htc.c Kalle Valo 2011-07-18 366
bdcd81707973cf drivers/net/wireless/ath/ath6kl/htc.c Kalle Valo 2011-07-18 367 /* Endianess? */
bdcd81707973cf drivers/net/wireless/ath/ath6kl/htc.c Kalle Valo 2011-07-18 @368 put_unaligned((u16)packet->act_len, &hdr->payld_len);
bdcd81707973cf drivers/net/wireless/ath/ath6kl/htc.c Kalle Valo 2011-07-18 369 hdr->flags = flags;
bdcd81707973cf drivers/net/wireless/ath/ath6kl/htc.c Kalle Valo 2011-07-18 370 hdr->eid = packet->endpoint;
bdcd81707973cf drivers/net/wireless/ath/ath6kl/htc.c Kalle Valo 2011-07-18 371 hdr->ctrl[0] = ctrl0;
bdcd81707973cf drivers/net/wireless/ath/ath6kl/htc.c Kalle Valo 2011-07-18 372 hdr->ctrl[1] = ctrl1;
bdcd81707973cf drivers/net/wireless/ath/ath6kl/htc.c Kalle Valo 2011-07-18 373 }
bdcd81707973cf drivers/net/wireless/ath/ath6kl/htc.c Kalle Valo 2011-07-18 374
:::::: The code at line 368 was first introduced by commit
:::::: bdcd81707973cf8aa9305337166f8ee842a050d4 Add ath6kl cleaned up driver
:::::: TO: Kalle Valo <kvalo@....qualcomm.com>
:::::: CC: Kalle Valo <kvalo@....qualcomm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists