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: nds32-allyesconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 8.1.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=8.1.0 make.cross ARCH=nds32
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/slab.h:15,
from crypto/asymmetric_keys/asym_tpm.c:3:
include/linux/tpm.h: In function 'tpm_buf_destroy':
> include/linux/tpm.h:318:15: warning: passing argument 1 of
'free_pages' makes integer from pointer without a cast [-Wint-conversion]
free_page(buf->data);
include/linux/gfp.h:555:37: note: in definition of macro 'free_page'
#define free_page(addr) free_pages((addr), 0)
^~~~
include/linux/gfp.h:544:38: 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_pages +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