tree:
git://git.infradead.org/users/jjs/linux-tpmdd master
head: 2feacb45cc29cf4fbb3783372ca096ea4d4fd761
commit: 371b14cb93831ac738a90a33c761ac16e05b8553 [14/16] tpm: Move tpm_buf code to
include/linux/
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.4.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 371b14cb93831ac738a90a33c761ac16e05b8553
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/xarray.h:14:0,
from include/linux/radix-tree.h:18,
from include/linux/fs.h:15,
from include/linux/poll.h:10,
from drivers/char/tpm/tpm-dev-common.c:15:
include/linux/tpm.h: In function 'tpm_buf_destroy':
include/linux/gfp.h:555:36: warning: passing argument 1 of 'free_pages' makes
integer from pointer without a cast [-Wint-conversion]
#define free_page(addr) free_pages((addr), 0)
^
> include/linux/tpm.h:318:2: note: in expansion of macro
'free_page'
free_page(buf->data);
^~~~~~~~~
include/linux/gfp.h:544:13: note: expected 'long unsigned int' but argument is
of type 'u8 * {aka unsigned char *}'
extern void free_pages(unsigned long addr, unsigned int order);
^~~~~~~~~~
vim +/free_page +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