All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ilya Dryomov <idryomov@gmail.com>
Cc: kbuild-all@lists.01.org, ceph-devel@vger.kernel.org
Subject: [ceph-client:pr/22 32/34] net/ceph/messenger_v2.c:601:24: sparse: sparse: incorrect type in assignment (different base types)
Date: Mon, 14 Dec 2020 22:28:38 +0800	[thread overview]
Message-ID: <202012142233.a4thz4WN-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3061 bytes --]

tree:   https://github.com/ceph/ceph-client.git pr/22
head:   524d1e6601a7d1214c502d5739f5a34f09a0960c
commit: 48b7789934f0e94b975e98b74eaf18301fc0cfcd [32/34] libceph: implement msgr2.1 protocol (crc and secure modes)
config: alpha-randconfig-s032-20201214 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-184-g1b896707-dirty
        # https://github.com/ceph/ceph-client/commit/48b7789934f0e94b975e98b74eaf18301fc0cfcd
        git remote add ceph-client https://github.com/ceph/ceph-client.git
        git fetch --no-tags ceph-client pr/22
        git checkout 48b7789934f0e94b975e98b74eaf18301fc0cfcd
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=alpha 

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 >>)"
>> net/ceph/messenger_v2.c:601:24: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [usertype] front_len @@     got int front_len @@
   net/ceph/messenger_v2.c:601:24: sparse:     expected restricted __le32 [usertype] front_len
   net/ceph/messenger_v2.c:601:24: sparse:     got int front_len
>> net/ceph/messenger_v2.c:602:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [usertype] middle_len @@     got int middle_len @@
   net/ceph/messenger_v2.c:602:25: sparse:     expected restricted __le32 [usertype] middle_len
   net/ceph/messenger_v2.c:602:25: sparse:     got int middle_len
>> net/ceph/messenger_v2.c:603:23: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [usertype] data_len @@     got int data_len @@
   net/ceph/messenger_v2.c:603:23: sparse:     expected restricted __le32 [usertype] data_len
   net/ceph/messenger_v2.c:603:23: sparse:     got int data_len

vim +601 net/ceph/messenger_v2.c

   590	
   591	static void fill_header(struct ceph_msg_header *hdr,
   592				const struct ceph_msg_header2 *hdr2,
   593				int front_len, int middle_len, int data_len,
   594				const struct ceph_entity_name *peer_name)
   595	{
   596		hdr->seq = hdr2->seq;
   597		hdr->tid = hdr2->tid;
   598		hdr->type = hdr2->type;
   599		hdr->priority = hdr2->priority;
   600		hdr->version = hdr2->version;
 > 601		hdr->front_len = front_len;
 > 602		hdr->middle_len = middle_len;
 > 603		hdr->data_len = data_len;
   604		hdr->data_off = hdr2->data_off;
   605		hdr->src = *peer_name;
   606		hdr->compat_version = hdr2->compat_version;
   607		hdr->reserved = 0;
   608		hdr->crc = 0;
   609	}
   610	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28763 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [ceph-client:pr/22 32/34] net/ceph/messenger_v2.c:601:24: sparse: sparse: incorrect type in assignment (different base types)
Date: Mon, 14 Dec 2020 22:28:38 +0800	[thread overview]
Message-ID: <202012142233.a4thz4WN-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3122 bytes --]

tree:   https://github.com/ceph/ceph-client.git pr/22
head:   524d1e6601a7d1214c502d5739f5a34f09a0960c
commit: 48b7789934f0e94b975e98b74eaf18301fc0cfcd [32/34] libceph: implement msgr2.1 protocol (crc and secure modes)
config: alpha-randconfig-s032-20201214 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-184-g1b896707-dirty
        # https://github.com/ceph/ceph-client/commit/48b7789934f0e94b975e98b74eaf18301fc0cfcd
        git remote add ceph-client https://github.com/ceph/ceph-client.git
        git fetch --no-tags ceph-client pr/22
        git checkout 48b7789934f0e94b975e98b74eaf18301fc0cfcd
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=alpha 

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 >>)"
>> net/ceph/messenger_v2.c:601:24: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [usertype] front_len @@     got int front_len @@
   net/ceph/messenger_v2.c:601:24: sparse:     expected restricted __le32 [usertype] front_len
   net/ceph/messenger_v2.c:601:24: sparse:     got int front_len
>> net/ceph/messenger_v2.c:602:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [usertype] middle_len @@     got int middle_len @@
   net/ceph/messenger_v2.c:602:25: sparse:     expected restricted __le32 [usertype] middle_len
   net/ceph/messenger_v2.c:602:25: sparse:     got int middle_len
>> net/ceph/messenger_v2.c:603:23: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le32 [usertype] data_len @@     got int data_len @@
   net/ceph/messenger_v2.c:603:23: sparse:     expected restricted __le32 [usertype] data_len
   net/ceph/messenger_v2.c:603:23: sparse:     got int data_len

vim +601 net/ceph/messenger_v2.c

   590	
   591	static void fill_header(struct ceph_msg_header *hdr,
   592				const struct ceph_msg_header2 *hdr2,
   593				int front_len, int middle_len, int data_len,
   594				const struct ceph_entity_name *peer_name)
   595	{
   596		hdr->seq = hdr2->seq;
   597		hdr->tid = hdr2->tid;
   598		hdr->type = hdr2->type;
   599		hdr->priority = hdr2->priority;
   600		hdr->version = hdr2->version;
 > 601		hdr->front_len = front_len;
 > 602		hdr->middle_len = middle_len;
 > 603		hdr->data_len = data_len;
   604		hdr->data_off = hdr2->data_off;
   605		hdr->src = *peer_name;
   606		hdr->compat_version = hdr2->compat_version;
   607		hdr->reserved = 0;
   608		hdr->crc = 0;
   609	}
   610	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 28763 bytes --]

             reply	other threads:[~2020-12-14 14:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-14 14:28 kernel test robot [this message]
2020-12-14 14:28 ` [ceph-client:pr/22 32/34] net/ceph/messenger_v2.c:601:24: sparse: sparse: incorrect type in assignment (different base types) kernel test robot
2020-12-14 17:19 ` Ilya Dryomov
2020-12-14 17:19   ` Ilya Dryomov

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=202012142233.a4thz4WN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=idryomov@gmail.com \
    --cc=kbuild-all@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.