tree:
https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git pg_table/v0.0
head: fd150c5a9ef6e3e43818825c69a46de2b427dedf
commit: 794797e827272a2e9dc8ac1bae63b1ac427b015d [9/18] mm: enable pmd allocations for
pg_table
config: s390-randconfig-a001-20200202 (attached as .config)
compiler: s390-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 794797e827272a2e9dc8ac1bae63b1ac427b015d
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/mm.h:99:0,
from include/linux/kvm_host.h:14,
from arch/s390/kernel/asm-offsets.c:11:
include/linux/mm.h: In function 'mm_inc_nr_pmds':
> include/linux/mm.h:1800:20: error: passing argument 1 of
'mm_pmd_folded' from incompatible pointer type
[-Werror=incompatible-pointer-types]
if (mm_pmd_folded(pgt))
^
arch/s390/include/asm/pgtable.h:514:41: note: in definition of macro
'mm_pmd_folded'
#define mm_pmd_folded(mm) mm_pmd_folded(mm)
^~
arch/s390/include/asm/pgtable.h:510:20: note: expected 'struct mm_struct *' but
argument is of type 'struct pg_table *'
static inline bool mm_pmd_folded(struct mm_struct *mm)
^~~~~~~~~~~~~
include/linux/mm.h: In function 'mm_dec_nr_pmds':
include/linux/mm.h:1807:20: error: passing argument 1 of 'mm_pmd_folded' from
incompatible pointer type [-Werror=incompatible-pointer-types]
if (mm_pmd_folded(pgt))
^
arch/s390/include/asm/pgtable.h:514:41: note: in definition of macro
'mm_pmd_folded'
#define mm_pmd_folded(mm) mm_pmd_folded(mm)
^~
arch/s390/include/asm/pgtable.h:510:20: note: expected 'struct mm_struct *' but
argument is of type 'struct pg_table *'
static inline bool mm_pmd_folded(struct mm_struct *mm)
^~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [arch/s390/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [sub-make] Error 2
25 real 7 user 11 sys 73.60% cpu make prepare
vim +/mm_pmd_folded +1800 include/linux/mm.h
1797
1798 static inline void mm_inc_nr_pmds(struct pg_table *pgt)
1799 {
1800 if (mm_pmd_folded(pgt))
1801 return;
1802 atomic_long_add(PTRS_PER_PMD * sizeof(pmd_t), &pgt->pgtables_bytes);
1803 }
1804
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation