Re: [PATCH 5/5] soc: qcom: Remove depends on ARCH_QCOM

From: kbuild test robot
Date: Wed Jun 13 2018 - 17:45:25 EST


Hi Niklas,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on next-20180613]
[cannot apply to v4.17]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Niklas-Cassel/soc-qcom-remove-depends-on-ARCH_QCOM/20180613-205858
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> /kbuild/src/sparse/drivers/rpmsg/qcom_glink_smem.c:91:15: sparse: expression using sizeof(void)
>> /kbuild/src/sparse/drivers/rpmsg/qcom_glink_smem.c:91:15: sparse: expression using sizeof(void)
>> /kbuild/src/sparse/drivers/rpmsg/qcom_glink_smem.c:93:50: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] <asn:2>*from @@ got sn:2>*from @@
/kbuild/src/sparse/drivers/rpmsg/qcom_glink_smem.c:93:50: expected void const [noderef] <asn:2>*from
/kbuild/src/sparse/drivers/rpmsg/qcom_glink_smem.c:93:50: got void *
/kbuild/src/sparse/drivers/rpmsg/qcom_glink_smem.c:98:49: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] <asn:2>*from @@ got sn:2>*from @@
/kbuild/src/sparse/drivers/rpmsg/qcom_glink_smem.c:98:49: expected void const [noderef] <asn:2>*from
/kbuild/src/sparse/drivers/rpmsg/qcom_glink_smem.c:98:49: got void *fifo
/kbuild/src/sparse/drivers/rpmsg/qcom_glink_smem.c:147:15: sparse: expression using sizeof(void)
/kbuild/src/sparse/drivers/rpmsg/qcom_glink_smem.c:147:15: sparse: expression using sizeof(void)
--
>> drivers/clk/qcom/clk-smd-rpm.c:250:23: sparse: expression using sizeof(void)
>> drivers/clk/qcom/clk-smd-rpm.c:250:23: sparse: expression using sizeof(void)
drivers/clk/qcom/clk-smd-rpm.c:259:22: sparse: expression using sizeof(void)
drivers/clk/qcom/clk-smd-rpm.c:259:22: sparse: expression using sizeof(void)
drivers/clk/qcom/clk-smd-rpm.c:333:23: sparse: expression using sizeof(void)
drivers/clk/qcom/clk-smd-rpm.c:333:23: sparse: expression using sizeof(void)
drivers/clk/qcom/clk-smd-rpm.c:338:22: sparse: expression using sizeof(void)
drivers/clk/qcom/clk-smd-rpm.c:338:22: sparse: expression using sizeof(void)
--
/kbuild/src/sparse/drivers/soc/qcom/smd-rpm.c:182:31: sparse: expression using sizeof(void)
>> /kbuild/src/sparse/drivers/soc/qcom/smd-rpm.c:183:47: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] <asn:2>*addr @@ got le [noderef] <asn:2>*addr @@
/kbuild/src/sparse/drivers/soc/qcom/smd-rpm.c:183:47: expected void const volatile [noderef] <asn:2>*addr
/kbuild/src/sparse/drivers/soc/qcom/smd-rpm.c:183:47: got unsigned char const *<noident>
--
/kbuild/src/sparse/drivers/soc/qcom/smem.c:418:16: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_header *header @@ got voistruct smem_header *header @@
/kbuild/src/sparse/drivers/soc/qcom/smem.c:418:16: expected struct smem_header *header
/kbuild/src/sparse/drivers/soc/qcom/smem.c:418:16: got void [noderef] <asn:2>*virt_base
/kbuild/src/sparse/drivers/soc/qcom/smem.c:503:16: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_header *header @@ got voistruct smem_header *header @@
/kbuild/src/sparse/drivers/soc/qcom/smem.c:503:16: expected struct smem_header *header
/kbuild/src/sparse/drivers/soc/qcom/smem.c:503:16: got void [noderef] <asn:2>*virt_base
/kbuild/src/sparse/drivers/soc/qcom/smem.c:516:48: sparse: incorrect type in return expression (different address spaces) @@ expected void * @@ got void [noderef] <avoid * @@
/kbuild/src/sparse/drivers/soc/qcom/smem.c:516:48: expected void *
/kbuild/src/sparse/drivers/soc/qcom/smem.c:516:48: got void [noderef] <asn:2>*
/kbuild/src/sparse/drivers/soc/qcom/smem.c:651:24: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_header *header @@ got voistruct smem_header *header @@
/kbuild/src/sparse/drivers/soc/qcom/smem.c:651:24: expected struct smem_header *header
/kbuild/src/sparse/drivers/soc/qcom/smem.c:651:24: got void [noderef] <asn:2>*virt_base
>> /kbuild/src/sparse/drivers/soc/qcom/smem.c:673:23: sparse: incompatible types in comparison expression (different address spaces)
/kbuild/src/sparse/drivers/soc/qcom/smem.c:675:23: sparse: incompatible types in comparison expression (different address spaces)
>> /kbuild/src/sparse/drivers/soc/qcom/smem.c:676:40: sparse: subtraction of different types can't work (different address spaces)
/kbuild/src/sparse/drivers/soc/qcom/smem.c:691:16: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_header *header @@ got voistruct smem_header *header @@
/kbuild/src/sparse/drivers/soc/qcom/smem.c:691:16: expected struct smem_header *header
/kbuild/src/sparse/drivers/soc/qcom/smem.c:691:16: got void [noderef] <asn:2>*virt_base
/kbuild/src/sparse/drivers/soc/qcom/smem.c:702:16: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_ptable *ptable @@ got voistruct smem_ptable *ptable @@
/kbuild/src/sparse/drivers/soc/qcom/smem.c:702:16: expected struct smem_ptable *ptable
/kbuild/src/sparse/drivers/soc/qcom/smem.c:702:16: got void [noderef] <asn:2>*
/kbuild/src/sparse/drivers/soc/qcom/smem.c:724:57: sparse: restricted __le32 degrades to integer
/kbuild/src/sparse/drivers/soc/qcom/smem.c:765:16: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_partition_header *header @@ got smem_partition_header *header @@
/kbuild/src/sparse/drivers/soc/qcom/smem.c:765:16: expected struct smem_partition_header *header
/kbuild/src/sparse/drivers/soc/qcom/smem.c:765:16: got void [noderef] <asn:2>*
/kbuild/src/sparse/drivers/soc/qcom/smem.c:844:24: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_partition_header *header @@ got smem_partition_header *header @@
/kbuild/src/sparse/drivers/soc/qcom/smem.c:844:24: expected struct smem_partition_header *header
/kbuild/src/sparse/drivers/soc/qcom/smem.c:844:24: got void [noderef] <asn:2>*
/kbuild/src/sparse/drivers/soc/qcom/smem.c:943:16: sparse: incorrect type in assignment (different address spaces) @@ expected struct smem_header *header @@ got voistruct smem_header *header @@
/kbuild/src/sparse/drivers/soc/qcom/smem.c:943:16: expected struct smem_header *header
/kbuild/src/sparse/drivers/soc/qcom/smem.c:943:16: got void [noderef] <asn:2>*virt_base

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation