CC: [email protected] TO: Christoph Hellwig <[email protected]> tree: git://git.infradead.org/users/hch/misc.git follow_pte_pmd head: 664e96b63d9a79a1966138f586f97b1a670b3809 commit: 664e96b63d9a79a1966138f586f97b1a670b3809 [2/2] mm: simplify follow_pte{,pmd} :::::: branch date: 8 hours ago :::::: commit date: 8 hours ago config: sparc-randconfig-s032-20201029 (attached as .config) compiler: sparc-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 # apt-get install sparse # sparse version: v0.6.3-56-gc09e8239-dirty git remote add hch-misc git://git.infradead.org/users/hch/misc.git git fetch --no-tags hch-misc follow_pte_pmd git checkout 664e96b63d9a79a1966138f586f97b1a670b3809 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sparc
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> "sparse warnings: (new ones prefixed by >>)" mm/memory.c:943:17: sparse: sparse: context imbalance in 'copy_pte_range' - different lock contexts for basic block mm/memory.c:1612:16: sparse: sparse: context imbalance in '__get_locked_pte' - different lock contexts for basic block mm/memory.c:2163:17: sparse: sparse: context imbalance in 'remap_pte_range' - different lock contexts for basic block mm/memory.c:2408:17: sparse: sparse: context imbalance in 'apply_to_pte_range' - unexpected unlock mm/memory.c:2664:17: sparse: sparse: context imbalance in 'wp_page_copy' - unexpected unlock mm/memory.c:3009:17: sparse: sparse: context imbalance in 'wp_pfn_shared' - unexpected unlock mm/memory.c:3072:19: sparse: sparse: context imbalance in 'do_wp_page' - different lock contexts for basic block mm/memory.c:3644:19: sparse: sparse: context imbalance in 'pte_alloc_one_map' - different lock contexts for basic block mm/memory.c:3871:17: sparse: sparse: context imbalance in 'finish_fault' - unexpected unlock mm/memory.c:3980:9: sparse: sparse: context imbalance in 'do_fault_around' - unexpected unlock mm/memory.c:4699:5: sparse: sparse: context imbalance in 'follow_pte' - different lock contexts for basic block mm/memory.c: note: in included file (through arch/sparc/include/asm/pgtable.h, include/linux/pgtable.h, include/linux/mm.h): >> arch/sparc/include/asm/pgtable_32.h:276:29: sparse: sparse: context >> imbalance in 'follow_pfn' - unexpected unlock vim +/follow_pfn +276 arch/sparc/include/asm/pgtable_32.h f5e706ad886b6a5 include/asm-sparc/pgtable_32.h Sam Ravnborg 2008-07-17 275 3d8273675d4771d arch/sparc/include/asm/pgtable_32.h David S. Miller 2012-05-12 @276 static inline unsigned long pte_pfn(pte_t pte) 3d8273675d4771d arch/sparc/include/asm/pgtable_32.h David S. Miller 2012-05-12 277 { 3d8273675d4771d arch/sparc/include/asm/pgtable_32.h David S. Miller 2012-05-12 278 if (srmmu_device_memory(pte_val(pte))) { 3d8273675d4771d arch/sparc/include/asm/pgtable_32.h David S. Miller 2012-05-12 279 /* Just return something that will cause 3d8273675d4771d arch/sparc/include/asm/pgtable_32.h David S. Miller 2012-05-12 280 * pfn_valid() to return false. This makes 3d8273675d4771d arch/sparc/include/asm/pgtable_32.h David S. Miller 2012-05-12 281 * copy_one_pte() to just directly copy to 3d8273675d4771d arch/sparc/include/asm/pgtable_32.h David S. Miller 2012-05-12 282 * PTE over. 3d8273675d4771d arch/sparc/include/asm/pgtable_32.h David S. Miller 2012-05-12 283 */ 3d8273675d4771d arch/sparc/include/asm/pgtable_32.h David S. Miller 2012-05-12 284 return ~0UL; 3d8273675d4771d arch/sparc/include/asm/pgtable_32.h David S. Miller 2012-05-12 285 } 3d8273675d4771d arch/sparc/include/asm/pgtable_32.h David S. Miller 2012-05-12 286 return (pte_val(pte) & SRMMU_PTE_PMASK) >> (PAGE_SHIFT-4); 3d8273675d4771d arch/sparc/include/asm/pgtable_32.h David S. Miller 2012-05-12 287 } 3d8273675d4771d arch/sparc/include/asm/pgtable_32.h David S. Miller 2012-05-12 288 :::::: The code at line 276 was first introduced by commit :::::: 3d8273675d4771d30e1e1c3dbae820dec55a0950 sparc32: Un-btfixup pmd_page and pte_pfn. :::::: TO: David S. Miller <[email protected]> :::::: CC: David S. Miller <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
