Hi Balbir, [auto build test ERROR on powerpc/next] [also build test ERROR on v4.14-rc4 next-20171009] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Michael-Ellerman/powerpc-xmon-Support-dumping-software-pagetables/20171012-124024 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next config: powerpc-ppc6xx_defconfig (attached as .config) compiler: powerpc-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 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 make.cross ARCH=powerpc All error/warnings (new ones prefixed by >>): In file included from arch/powerpc/include/asm/book3s/pgtable.h:7:0, from arch/powerpc/include/asm/pgtable.h:16, from include/linux/memremap.h:7, from include/linux/mm.h:26, from arch/powerpc/xmon/xmon.c:18: arch/powerpc/xmon/xmon.c: In function 'show_pte': >> arch/powerpc/include/asm/book3s/32/pgtable.h:282:13: error: implicit >> declaration of function 'kmap_atomic' [-Werror=implicit-function-declaration] ((pte_t *) kmap_atomic(pmd_page(*(dir))) + pte_index(addr)) ^ >> arch/powerpc/xmon/xmon.c:3042:9: note: in expansion of macro 'pte_offset_map' ptep = pte_offset_map(pmdp, addr); ^~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +/pte_offset_map +3042 arch/powerpc/xmon/xmon.c 3024 3025 printf("pudp @ 0x%016lx = 0x%016lx\n", pudp, pud_val(*pudp)); 3026 3027 pmdp = pmd_offset(pudp, addr); 3028 3029 if (pmd_none(*pmdp)) { 3030 printf("No valid PMD\n"); 3031 return; 3032 } 3033 3034 #ifdef CONFIG_HUGETLB_PAGE 3035 if (pmd_huge(*pmdp)) { 3036 format_pte(pmdp, pmd_val(*pmdp)); 3037 return; 3038 } 3039 #endif 3040 printf("pmdp @ 0x%016lx = 0x%016lx\n", pmdp, pmd_val(*pmdp)); 3041 > 3042 ptep = pte_offset_map(pmdp, addr); 3043 if (pte_none(*ptep)) { 3044 printf("no valid PTE\n"); 3045 return; 3046 } 3047 3048 format_pte(ptep, pte_val(*ptep)); 3049 3050 sync(); 3051 __delay(200); 3052 catch_memory_errors = 0; 3053 } 3054 static void show_tasks(void) 3055 { 3056 unsigned long tskv; 3057 struct task_struct *tsk = NULL; 3058 3059 printf(" task_struct ->thread.ksp PID PPID S P CMD\n"); 3060 3061 if (scanhex(&tskv)) 3062 tsk = (struct task_struct *)tskv; 3063 3064 if (setjmp(bus_error_jmp) != 0) { 3065 catch_memory_errors = 0; 3066 printf("*** Error dumping task %p\n", tsk); 3067 return; 3068 } 3069 3070 catch_memory_errors = 1; 3071 sync(); 3072 3073 if (tsk) 3074 show_task(tsk); 3075 else 3076 for_each_process(tsk) 3077 show_task(tsk); 3078 3079 sync(); 3080 __delay(200); 3081 catch_memory_errors = 0; 3082 } 3083 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip