From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: drivers/net/wireless/ath/ath6kl/htc_mbox.c:368:9: sparse: sparse: incorrect type in assignment (different base types)
Date: Sun, 27 Feb 2022 12:14:40 +0800 [thread overview]
Message-ID: <202202271242.Cm0RmDFO-lkp@intel.com> (raw)
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@intel.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@qca.qualcomm.com>
:::::: CC: Kalle Valo <kvalo@qca.qualcomm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-02-27 4:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202202271242.Cm0RmDFO-lkp@intel.com \
--to=lkp@intel.com \
--cc=arnd@arndb.de \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®