Content-Type: multipart/mixed; boundary="===============3584882579995251581==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v4 16/17] powerpc/64s: Move hash MMU support code under CONFIG_PPC_64S_HASH_MMU Date: Fri, 26 Nov 2021 03:28:14 +0800 Message-ID: <202111260315.Gs4d14lT-lkp@intel.com> In-Reply-To: <20211125125025.1472060-17-npiggin@gmail.com> List-Id: --===============3584882579995251581== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Nicholas, I love your patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on char-misc/char-misc-testing v5.16-rc2 next-202111= 25] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Nicholas-Piggin/powerpc-Ma= ke-hash-MMU-code-build-configurable/20211125-210259 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git n= ext config: powerpc-allnoconfig (https://download.01.org/0day-ci/archive/202111= 26/202111260315.Gs4d14lT-lkp(a)intel.com/config) compiler: powerpc-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/34f5477219850333c3c610b70= 8932d555b7e9c96 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Nicholas-Piggin/powerpc-Make-hash-= MMU-code-build-configurable/20211125-210259 git checkout 34f5477219850333c3c610b708932d555b7e9c96 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dpowerpc SHELL=3D/bin/bash arch/powerpc/mm/book3s32/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> arch/powerpc/mm/book3s32/mmu.c:321:6: error: redefinition of 'update_mmu= _cache' 321 | void update_mmu_cache(struct vm_area_struct *vma, unsigned long = address, | ^~~~~~~~~~~~~~~~ In file included from arch/powerpc/include/asm/pgtable.h:18, from include/linux/pgtable.h:6, from include/linux/mm.h:33, from arch/powerpc/mm/book3s32/mmu.c:21: arch/powerpc/include/asm/book3s/pgtable.h:40:20: note: previous definiti= on of 'update_mmu_cache' with type 'void(struct vm_area_struct *, long unsi= gned int, pte_t *)' {aka 'void(struct vm_area_struct *, long unsigned int,= long unsigned int *)'} 40 | static inline void update_mmu_cache(struct vm_area_struct *vma, = unsigned long address, pte_t *ptep) {} | ^~~~~~~~~~~~~~~~ vim +/update_mmu_cache +321 arch/powerpc/mm/book3s32/mmu.c 3c726f8dee6f55e arch/powerpc/mm/ppc_mmu_32.c Benjamin Herrenschmidt 2005-= 11-07 312 = e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 313 /* e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 314 * This is called at the end of handling a user page fault, whe= n the e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 315 * fault has been handled by updating a PTE in the linux page t= ables. e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 316 * We use it to preload an HPTE into the hash table correspondi= ng to e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 317 * the updated linux PTE. e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 318 * e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 319 * This must always be called with the pte lock held. e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 320 */ e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 @321 void update_mmu_cache(struct vm_area_struct *vma, unsigned long= address, e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 322 pte_t *ptep) e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 323 { f204338f8e29777 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 324 if (!mmu_has_feature(MMU_FTR_HPTE_TABLE)) f204338f8e29777 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 325 return; e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 326 /* e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 327 * We don't need to worry about _PAGE_PRESENT here because we = are e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 328 * called with either mm->page_table_lock held or ptl lock held e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 329 */ e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 330 = e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 331 /* We only want HPTEs for linux PTEs that have _PAGE_ACCESSED = set */ e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 332 if (!pte_young(*ptep) || address >=3D TASK_SIZE) e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 333 return; e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 334 = f49f4e2b68b6834 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 335 /* We have to test for regs NULL since init will get here firs= t thing at boot */ f49f4e2b68b6834 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 336 if (!current->thread.regs) f49f4e2b68b6834 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 337 return; e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 338 = f49f4e2b68b6834 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 339 /* We also avoid filling the hash if not coming from a fault */ f49f4e2b68b6834 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 340 if (TRAP(current->thread.regs) !=3D 0x300 && TRAP(current->thr= ead.regs) !=3D 0x400) e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 341 return; e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 342 = f49f4e2b68b6834 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 343 hash_preload(vma->vm_mm, address); e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 344 } e5a1edb9fe4cfa0 arch/powerpc/mm/book3s32/mmu.c Christophe Leroy 2019-= 08-16 345 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============3584882579995251581==--