linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 3888/7050] drivers/scsi/qla2xxx/qla_tmpl.c:885:29: sparse: sparse: incorrect type in assignment (different base types)
Date: Sun, 8 Mar 2020 09:14:49 +0800	[thread overview]
Message-ID: <202003080948.NuyTmbCO%lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   b86a6a241b7c60ca7a6ca4fb3c0d2aedbbf2c1b6
commit: a31056ddc6651b457d72d8d71d32143764df86d2 [3888/7050] scsi: qla2xxx: Use endian macros to assign static fields in fwdump header
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-174-g094d5a94-dirty
        git checkout a31056ddc6651b457d72d8d71d32143764df86d2
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

   drivers/scsi/qla2xxx/qla_tmpl.c:873:32: sparse: sparse: incorrect type in assignment (different base types) @@    expected unsigned int [usertype] capture_timestamp @@    got restrunsigned int [usertype] capture_timestamp @@
   drivers/scsi/qla2xxx/qla_tmpl.c:873:32: sparse:    expected unsigned int [usertype] capture_timestamp
   drivers/scsi/qla2xxx/qla_tmpl.c:873:32: sparse:    got restricted __le32 [usertype]
>> drivers/scsi/qla2xxx/qla_tmpl.c:885:29: sparse: sparse: incorrect type in assignment (different base types) @@    expected unsigned int @@    got restricted __le32unsigned int @@
   drivers/scsi/qla2xxx/qla_tmpl.c:885:29: sparse:    expected unsigned int
   drivers/scsi/qla2xxx/qla_tmpl.c:885:29: sparse:    got restricted __le32 [usertype]
   drivers/scsi/qla2xxx/qla_tmpl.c:887:29: sparse: sparse: incorrect type in assignment (different base types) @@    expected unsigned int @@    got restricted __le32unsigned int @@
   drivers/scsi/qla2xxx/qla_tmpl.c:887:29: sparse:    expected unsigned int
   drivers/scsi/qla2xxx/qla_tmpl.c:887:29: sparse:    got restricted __le32 [usertype]
   drivers/scsi/qla2xxx/qla_tmpl.c:888:29: sparse: sparse: incorrect type in assignment (different base types) @@    expected unsigned int @@    got restricted __le32unsigned int @@
   drivers/scsi/qla2xxx/qla_tmpl.c:888:29: sparse:    expected unsigned int
   drivers/scsi/qla2xxx/qla_tmpl.c:888:29: sparse:    got restricted __le32 [usertype]
   drivers/scsi/qla2xxx/qla_tmpl.c:898:34: sparse: sparse: incorrect type in assignment (different base types) @@    expected unsigned int @@    got restricted __le32unsigned int @@
   drivers/scsi/qla2xxx/qla_tmpl.c:898:34: sparse:    expected unsigned int
   drivers/scsi/qla2xxx/qla_tmpl.c:898:34: sparse:    got restricted __le32 [usertype]
   drivers/scsi/qla2xxx/qla_tmpl.c:900:34: sparse: sparse: incorrect type in assignment (different base types) @@    expected unsigned int @@    got restricted __le32unsigned int @@
   drivers/scsi/qla2xxx/qla_tmpl.c:900:34: sparse:    expected unsigned int
   drivers/scsi/qla2xxx/qla_tmpl.c:900:34: sparse:    got restricted __le32 [usertype]

vim +885 drivers/scsi/qla2xxx/qla_tmpl.c

   875	
   876	static void
   877	qla27xx_driver_info(struct qla27xx_fwdt_template *tmp)
   878	{
   879		uint8_t v[] = { 0, 0, 0, 0, 0, 0 };
   880	
   881		WARN_ON_ONCE(sscanf(qla2x00_version_str,
   882				    "%hhu.%hhu.%hhu.%hhu.%hhu.%hhu",
   883				    v+0, v+1, v+2, v+3, v+4, v+5) != 6);
   884	
 > 885		tmp->driver_info[0] = cpu_to_le32(
   886			v[3] << 24 | v[2] << 16 | v[1] << 8 | v[0]);
   887		tmp->driver_info[1] = cpu_to_le32(v[5] << 8 | v[4]);
   888		tmp->driver_info[2] = __constant_cpu_to_le32(0x12345678);
   889	}
   890	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org


                 reply	other threads:[~2020-03-08  1:15 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=202003080948.NuyTmbCO%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.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;
as well as URLs for NNTP newsgroup(s).