tree:
git://git.infradead.org/users/jjs/linux-tpmdd master
head: 2feacb45cc29cf4fbb3783372ca096ea4d4fd761
commit: 371b14cb93831ac738a90a33c761ac16e05b8553 [14/16] tpm: Move tpm_buf code to
include/linux/
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-rc1-42-g38eda53-dirty
git checkout 371b14cb93831ac738a90a33c761ac16e05b8553
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(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
--
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
--
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
--
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
> include/linux/tpm.h:318:9: sparse: sparse: incorrect type in
argument 1 (different base types) @@ expected unsigned long addr @@ got unsigned
chaunsigned long addr @@
> include/linux/tpm.h:318:9: sparse: expected unsigned long addr
> include/linux/tpm.h:318:9: sparse: got unsigned char [usertype] *data
vim +318 include/linux/tpm.h
315
316 static inline void tpm_buf_destroy(struct tpm_buf *buf)
317 {
318 free_page(buf->data);
319 }
320
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation