* [ceph-client:pr/22 32/34] net/ceph/messenger_v2.c:601:24: sparse: sparse: incorrect type in assignment (different base types)
@ 2020-12-14 14:28 ` kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-12-14 14:28 UTC (permalink / raw)
To: Ilya Dryomov; +Cc: kbuild-all, ceph-devel
[-- 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 --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ceph-client:pr/22 32/34] net/ceph/messenger_v2.c:601:24: sparse: sparse: incorrect type in assignment (different base types)
@ 2020-12-14 14:28 ` kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-12-14 14:28 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ceph-client:pr/22 32/34] net/ceph/messenger_v2.c:601:24: sparse: sparse: incorrect type in assignment (different base types)
2020-12-14 14:28 ` kernel test robot
@ 2020-12-14 17:19 ` Ilya Dryomov
-1 siblings, 0 replies; 4+ messages in thread
From: Ilya Dryomov @ 2020-12-14 17:19 UTC (permalink / raw)
To: kernel test robot; +Cc: kbuild-all, Ceph Development
On Mon, Dec 14, 2020 at 3:28 PM kernel test robot <lkp@intel.com> wrote:
>
> 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
Fixed.
Thanks,
Ilya
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ceph-client:pr/22 32/34] net/ceph/messenger_v2.c:601:24: sparse: sparse: incorrect type in assignment (different base types)
@ 2020-12-14 17:19 ` Ilya Dryomov
0 siblings, 0 replies; 4+ messages in thread
From: Ilya Dryomov @ 2020-12-14 17:19 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3524 bytes --]
On Mon, Dec 14, 2020 at 3:28 PM kernel test robot <lkp@intel.com> wrote:
>
> 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
Fixed.
Thanks,
Ilya
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-12-14 17:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 14:28 ` kernel test robot
2020-12-14 17:19 ` Ilya Dryomov
2020-12-14 17:19 ` Ilya Dryomov
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.