* [rppt:pg_table/v0.0 8/18] arch/powerpc/include/asm/book3s/64/pgalloc.h:100:29: error: passing argument 1 of 'pgtable_gfp_flags' from incompatible pointer type
@ 2020-02-02 13:39 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-02-02 13:39 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2576 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git pg_table/v0.0
head: fd150c5a9ef6e3e43818825c69a46de2b427dedf
commit: 582d02322eb4f4d2d3903c0967216bc6b671164f [8/18] mm: enable pud allocations for pg_table
config: powerpc-randconfig-a001-20200202 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 7.5.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 582d02322eb4f4d2d3903c0967216bc6b671164f
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from arch/powerpc/include/asm/book3s/pgalloc.h:10:0,
from arch/powerpc/include/asm/pgalloc.h:68,
from arch/powerpc//mm/mem.c:35:
arch/powerpc/include/asm/book3s/64/pgalloc.h: In function 'pud_alloc_one':
>> arch/powerpc/include/asm/book3s/64/pgalloc.h:100:29: error: passing argument 1 of 'pgtable_gfp_flags' from incompatible pointer type [-Werror=incompatible-pointer-types]
pgtable_gfp_flags(pgt, GFP_KERNEL));
^~~
In file included from arch/powerpc//mm/mem.c:35:0:
arch/powerpc/include/asm/pgalloc.h:8:21: note: expected 'struct mm_struct *' but argument is of type 'struct pg_table *'
static inline gfp_t pgtable_gfp_flags(struct mm_struct *mm, gfp_t gfp)
^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/pgtable_gfp_flags +100 arch/powerpc/include/asm/book3s/64/pgalloc.h
94
95 static inline pud_t *pud_alloc_one(struct pg_table *pgt, unsigned long addr)
96 {
97 pud_t *pud;
98
99 pud = kmem_cache_alloc(PGT_CACHE(PUD_CACHE_INDEX),
> 100 pgtable_gfp_flags(pgt, GFP_KERNEL));
101 /*
102 * Tell kmemleak to ignore the PUD, that means don't scan it for
103 * pointers and don't consider it a leak. PUDs are typically only
104 * referred to by their PGD, but kmemleak is not able to recognise those
105 * as pointers, leading to false leak reports.
106 */
107 kmemleak_ignore(pud);
108
109 return pud;
110 }
111
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34166 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-02 13:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-02 13:39 [rppt:pg_table/v0.0 8/18] arch/powerpc/include/asm/book3s/64/pgalloc.h:100:29: error: passing argument 1 of 'pgtable_gfp_flags' from incompatible pointer type 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.