[PATCH v2 12/45] powerpc/ptdump: Properly handle non standard page size

kbuild test robot lkp at intel.com
Fri May 8 02:12:31 AEST 2020


Hi Christophe,

I love your patch! Yet something to improve:

[auto build test ERROR on v5.7-rc4]
[cannot apply to powerpc/next next-20200507]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Christophe-Leroy/Use-hugepages-to-map-kernel-mem-on-8xx/20200507-060838
base:    0e698dfa282211e414076f9dc7e83c1c288314fd
config: powerpc-randconfig-r013-20200507 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

   arch/powerpc/mm/ptdump/ptdump.c: In function 'walk_pmd':
>> arch/powerpc/mm/ptdump/ptdump.c:285:42: error: 'PTE_SHIFT' undeclared (first use in this function); did you mean 'PUD_SHIFT'?
     285 |    note_page(st, addr, 3, pmd_val(*pmd), PTE_SHIFT);
         |                                          ^~~~~~~~~
         |                                          PUD_SHIFT
   arch/powerpc/mm/ptdump/ptdump.c:285:42: note: each undeclared identifier is reported only once for each function it appears in

vim +285 arch/powerpc/mm/ptdump/ptdump.c

   272	
   273	static void walk_pmd(struct pg_state *st, pud_t *pud, unsigned long start)
   274	{
   275		pmd_t *pmd = pmd_offset(pud, 0);
   276		unsigned long addr;
   277		unsigned int i;
   278	
   279		for (i = 0; i < PTRS_PER_PMD; i++, pmd++) {
   280			addr = start + i * PMD_SIZE;
   281			if (!pmd_none(*pmd) && !pmd_is_leaf(*pmd))
   282				/* pmd exists */
   283				walk_pte(st, pmd, addr);
   284			else
 > 285				note_page(st, addr, 3, pmd_val(*pmd), PTE_SHIFT);
   286		}
   287	}
   288	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 25682 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20200508/94385971/attachment-0001.gz>


More information about the Linuxppc-dev mailing list