[to-be-updated] mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t.patch removed from -mm tree

kernel test robot lkp at intel.com
Tue Jun 22 17:33:54 PDT 2021


Hi,

I love your patch! Perhaps something to improve:

[auto build test WARNING on powerpc/next]
[also build test WARNING on tip/x86/mm asm-generic/master linus/master sparc/master v5.13-rc7]
[cannot apply to sparc-next/master next-20210622]
[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/akpm-linux-foundation-org/mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t-patch-removed-from-mm-tree/20210617-075958
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: riscv-randconfig-r036-20210622 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project b3634d3e88b7f26534a5057bff182b7dced584fc)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://github.com/0day-ci/linux/commit/490957abd94a7b67576c0029c771c6691dce1878
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review akpm-linux-foundation-org/mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t-patch-removed-from-mm-tree/20210617-075958
        git checkout 490957abd94a7b67576c0029c771c6691dce1878
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv 

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

All warnings (new ones prefixed by >>):

>> arch/riscv/mm/kasan_init.c:122:29: warning: comparison between pointer and integer ('pmd_t *' and 'unsigned long') [-Wpointer-integer-compare]
                   if (pgd_page_vaddr(*pgdp) == (unsigned long)lm_alias(kasan_early_shadow_pmd) &&
                       ~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/riscv/mm/kasan_init.c:154:30: warning: comparison between pointer and integer ('pmd_t *' and 'unsigned long') [-Wpointer-integer-compare]
                   if (pgd_page_vaddr(*pgd_k) == (unsigned long)lm_alias(kasan_early_shadow_pmd)) {
                       ~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 warnings generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for LOCKDEP
   Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
   Selected by
   - LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
   - DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT


vim +122 arch/riscv/mm/kasan_init.c

d127c19c7bea61 Alexandre Ghiti 2021-02-08  107  
1987501b1130c6 Jisheng Zhang   2021-03-30  108  static void __init kasan_populate_pgd(unsigned long vaddr, unsigned long end)
d127c19c7bea61 Alexandre Ghiti 2021-02-08  109  {
d127c19c7bea61 Alexandre Ghiti 2021-02-08  110  	phys_addr_t phys_addr;
d127c19c7bea61 Alexandre Ghiti 2021-02-08  111  	pgd_t *pgdp = pgd_offset_k(vaddr);
d127c19c7bea61 Alexandre Ghiti 2021-02-08  112  	unsigned long next;
d127c19c7bea61 Alexandre Ghiti 2021-02-08  113  
d127c19c7bea61 Alexandre Ghiti 2021-02-08  114  	do {
d127c19c7bea61 Alexandre Ghiti 2021-02-08  115  		next = pgd_addr_end(vaddr, end);
d7fbcf40df86bb Alexandre Ghiti 2021-02-08  116  
d7fbcf40df86bb Alexandre Ghiti 2021-02-08  117  		/*
d7fbcf40df86bb Alexandre Ghiti 2021-02-08  118  		 * pgdp can't be none since kasan_early_init initialized all KASAN
d7fbcf40df86bb Alexandre Ghiti 2021-02-08  119  		 * shadow region with kasan_early_shadow_pmd: if this is stillthe case,
d7fbcf40df86bb Alexandre Ghiti 2021-02-08  120  		 * that means we can try to allocate a hugepage as a replacement.
d7fbcf40df86bb Alexandre Ghiti 2021-02-08  121  		 */
d7fbcf40df86bb Alexandre Ghiti 2021-02-08 @122  		if (pgd_page_vaddr(*pgdp) == (unsigned long)lm_alias(kasan_early_shadow_pmd) &&
d7fbcf40df86bb Alexandre Ghiti 2021-02-08  123  		    IS_ALIGNED(vaddr, PGDIR_SIZE) && (next - vaddr) >= PGDIR_SIZE) {
d7fbcf40df86bb Alexandre Ghiti 2021-02-08  124  			phys_addr = memblock_phys_alloc(PGDIR_SIZE, PGDIR_SIZE);
d7fbcf40df86bb Alexandre Ghiti 2021-02-08  125  			if (phys_addr) {
d7fbcf40df86bb Alexandre Ghiti 2021-02-08  126  				set_pgd(pgdp, pfn_pgd(PFN_DOWN(phys_addr), PAGE_KERNEL));
d7fbcf40df86bb Alexandre Ghiti 2021-02-08  127  				continue;
d7fbcf40df86bb Alexandre Ghiti 2021-02-08  128  			}
d7fbcf40df86bb Alexandre Ghiti 2021-02-08  129  		}
d7fbcf40df86bb Alexandre Ghiti 2021-02-08  130  
d127c19c7bea61 Alexandre Ghiti 2021-02-08  131  		kasan_populate_pmd(pgdp, vaddr, next);
d127c19c7bea61 Alexandre Ghiti 2021-02-08  132  	} while (pgdp++, vaddr = next, vaddr != end);
d127c19c7bea61 Alexandre Ghiti 2021-02-08  133  }
d127c19c7bea61 Alexandre Ghiti 2021-02-08  134  

---
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: 34020 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20210623/efce4138/attachment.gz>


More information about the linux-riscv mailing list