* [jss-tpmdd:master 18/18] drivers/char/tpm/tpm.h:311:2: note: in expansion of macro 'free_page'
@ 2019-10-10 0:00 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-10-10 0:00 UTC (permalink / raw
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3813 bytes --]
tree: git://git.infradead.org/users/jjs/linux-tpmdd master
head: bf96a62663451810a642c7e70e25219727688042
commit: bf96a62663451810a642c7e70e25219727688042 [18/18] tpm: use GFP kernel for tpm_buf allocations
config: mips-allmodconfig (attached as .config)
compiler: mips-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 bf96a62663451810a642c7e70e25219727688042
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@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-chip.c:18:
drivers/char/tpm/tpm.h: In function 'tpm_buf_destroy':
>> include/linux/gfp.h:551: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)
^
>> drivers/char/tpm/tpm.h:311:2: note: in expansion of macro 'free_page'
free_page(buf->data);
^~~~~~~~~
include/linux/gfp.h:540: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);
^~~~~~~~~~
--
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/seq_file.h:11,
from drivers/char/tpm/eventlog/common.c:16:
drivers/char/tpm/eventlog/../tpm.h: In function 'tpm_buf_destroy':
>> include/linux/gfp.h:551: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)
^
>> drivers/char/tpm/eventlog/../tpm.h:311:2: note: in expansion of macro 'free_page'
free_page(buf->data);
^~~~~~~~~
include/linux/gfp.h:540: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);
^~~~~~~~~~
--
In file included from include/linux/umh.h:4:0,
from include/linux/kmod.h:9,
from include/linux/module.h:13,
from drivers/char/tpm/st33zp24/st33zp24.c:7:
drivers/char/tpm/st33zp24/../tpm.h: In function 'tpm_buf_destroy':
>> include/linux/gfp.h:551: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)
^
>> drivers/char/tpm/st33zp24/../tpm.h:311:2: note: in expansion of macro 'free_page'
free_page(buf->data);
^~~~~~~~~
include/linux/gfp.h:540: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 +311 drivers/char/tpm/tpm.h
308
309 static inline void tpm_buf_destroy(struct tpm_buf *buf)
310 {
> 311 free_page(buf->data);
312 }
313
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 62058 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-10 0:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-10 0:00 [jss-tpmdd:master 18/18] drivers/char/tpm/tpm.h:311:2: note: in expansion of macro 'free_page' kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.