Hi Jeffrey,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on soc/for-next linus/master v5.7-rc6 next-20200519]
[cannot apply to linux/master]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see
https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/Jeffrey-Hugo/Qualcomm-Cloud-AI-1...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
57c76221d5af648c8355a55c09b050c5d8d38189
config: x86_64-allmodconfig (attached as .config)
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-193-gb8fad4bc-dirty
# save the attached .config to linux build tree
make C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> drivers/misc/qaic/qaic_control.c:207:70: sparse: sparse:
restricted __le32 degrades to integer
drivers/misc/qaic/qaic_control.c:209:21:
sparse: sparse: restricted __le32 degrades to integer
> drivers/misc/qaic/qaic_control.c:213:22: sparse: sparse: bad
assignment (+=) to restricted __le32
> drivers/misc/qaic/qaic_control.c:216:30: sparse: sparse: cast from restricted __le32
drivers/misc/qaic/qaic_control.c:225:67: sparse: sparse: restricted __le32
degrades to integer
drivers/misc/qaic/qaic_control.c:305:21: sparse: sparse: restricted __le32 degrades to
integer
drivers/misc/qaic/qaic_control.c:311:22: sparse: sparse: bad assignment (+=) to
restricted __le32
drivers/misc/qaic/qaic_control.c:369:74: sparse: sparse: restricted __le32 degrades to
integer
drivers/misc/qaic/qaic_control.c:375:21: sparse: sparse: restricted __le32 degrades to
integer
drivers/misc/qaic/qaic_control.c:405:22: sparse: sparse: bad assignment (+=) to
restricted __le32
drivers/misc/qaic/qaic_control.c:432:72: sparse: sparse: restricted __le32 degrades to
integer
drivers/misc/qaic/qaic_control.c:434:21: sparse: sparse: restricted __le32 degrades to
integer
drivers/misc/qaic/qaic_control.c:439:22: sparse: sparse: bad assignment (+=) to
restricted __le32
> drivers/misc/qaic/qaic_control.c:454:22: sparse: sparse:
incorrect type in assignment (different base types) @@ expected restricted __le32
[usertype] len @@ got 2 [usertype] len @@
> drivers/misc/qaic/qaic_control.c:454:22: sparse: expected restricted __le32
[usertype] len
> drivers/misc/qaic/qaic_control.c:454:22: sparse: got unsigned long
> drivers/misc/qaic/qaic_control.c:505:24: sparse: sparse: incorrect type in assignment
(different base types) @@ expected restricted __le32 [usertype] count @@ got icted
__le32 [usertype] count @@
> drivers/misc/qaic/qaic_control.c:505:24: sparse: expected restricted __le32
[usertype] count
> drivers/misc/qaic/qaic_control.c:505:24: sparse: got unsigned int [usertype]
count
> drivers/misc/qaic/qaic_control.c:525:31: sparse: sparse: cast to restricted __le32
drivers/misc/qaic/qaic_control.c:609:31: sparse: sparse: cast to restricted
__le32
drivers/misc/qaic/qaic_control.c:611:28: sparse: sparse: cast to restricted __le32
> drivers/misc/qaic/qaic_control.c:611:28: sparse: sparse: cast
from restricted __le16
drivers/misc/qaic/qaic_control.c:612:28: sparse: sparse:
cast to restricted __le32
drivers/misc/qaic/qaic_control.c:612:28: sparse: sparse: cast from restricted __le16
drivers/misc/qaic/qaic_control.c:629:21: sparse: sparse: restricted __le32 degrades to
integer
drivers/misc/qaic/qaic_control.c:637:40: sparse: sparse: restricted __le32 degrades to
integer
drivers/misc/qaic/qaic_control.c:637:56: sparse: sparse: restricted __le32 degrades to
integer
drivers/misc/qaic/qaic_control.c:640:34: sparse: sparse: restricted __le32 degrades to
integer
drivers/misc/qaic/qaic_control.c:640:34: sparse: sparse: restricted __le32 degrades to
integer
drivers/misc/qaic/qaic_control.c:640:34: sparse: sparse: restricted __le32 degrades to
integer
drivers/misc/qaic/qaic_control.c:640:34: sparse: sparse: restricted __le32 degrades to
integer
drivers/misc/qaic/qaic_control.c:664:33: sparse: sparse: restricted __le32 degrades to
integer
> drivers/misc/qaic/qaic_control.c:786:31: sparse: sparse:
incorrect type in assignment (different base types) @@ expected restricted __le32
[usertype] magic_number @@ got e] magic_number @@
> drivers/misc/qaic/qaic_control.c:786:31: sparse: expected restricted __le32
[usertype] magic_number
> drivers/misc/qaic/qaic_control.c:786:31: sparse: got int
drivers/misc/qaic/qaic_control.c:788:24: sparse: sparse: cast from restricted __le32
drivers/misc/qaic/qaic_control.c:789:26: sparse: sparse: cast from restricted __le32
drivers/misc/qaic/qaic_control.c:887:21: sparse: sparse: restricted __le32 degrades to
integer
drivers/misc/qaic/qaic_control.c:981:31: sparse: sparse: incorrect type in assignment
(different base types) @@ expected restricted __le32 [usertype] magic_number @@ got
e] magic_number @@
drivers/misc/qaic/qaic_control.c:981:31: sparse: expected restricted __le32
[usertype] magic_number
drivers/misc/qaic/qaic_control.c:981:31: sparse: got int
vim +207 drivers/misc/qaic/qaic_control.c
202
203 static int encode_passthrough(struct qaic_device *qdev, void *trans,
204 struct _msg *msg, u32 *user_len)
205 {
206 struct qaic_manage_trans_passthrough *in_trans = trans;
207 struct _trans_passthrough *out_trans = (void *)msg +
msg->hdr.len;
208
209 if (msg->hdr.len + in_trans->hdr.len > sizeof(*msg))
210 return -ENOSPC;
211
212 memcpy(out_trans, in_trans, in_trans->hdr.len);
213 msg->hdr.len += in_trans->hdr.len;
214 *user_len
+= in_trans->hdr.len;
215 out_trans->hdr.type = cpu_to_le32(TRANS_PASSTHROUGH_TO_DEV);
216 out_trans->hdr.len = cpu_to_le32(out_trans->hdr.len);
217
218 return 0;
219 }
220
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org