All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: akpm@linux-foundation.org, aneesh.kumar@linux.ibm.com,
	linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org,
	linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org,
	linux-riscv@lists.infradead.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com
Subject: Re: [to-be-updated] mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t.patch removed from -mm tree
Date: Wed, 23 Jun 2021 08:33:54 +0800	[thread overview]
Message-ID: <202106230801.rMB9ws3c-lkp@intel.com> (raw)
In-Reply-To: <20210616230804.7nsBdkkF4%akpm@linux-foundation.org>

[-- Attachment #1: Type: text/plain, Size: 5242 bytes --]

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@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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34020 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: akpm@linux-foundation.org, aneesh.kumar@linux.ibm.com,
	linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org,
	linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org,
	linux-riscv@lists.infradead.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com
Subject: Re: [to-be-updated] mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t.patch
Date: Wed, 23 Jun 2021 00:33:54 +0000	[thread overview]
Message-ID: <202106230801.rMB9ws3c-lkp@intel.com> (raw)
In-Reply-To: <20210616230804.7nsBdkkF4%akpm@linux-foundation.org>

[-- Attachment #1: Type: text/plain, Size: 5242 bytes --]

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@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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34020 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: akpm@linux-foundation.org, aneesh.kumar@linux.ibm.com,
	linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org,
	linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org,
	linux-riscv@lists.infradead.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com
Subject: Re: [to-be-updated] mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t.patch removed from -mm tree
Date: Wed, 23 Jun 2021 08:33:54 +0800	[thread overview]
Message-ID: <202106230801.rMB9ws3c-lkp@intel.com> (raw)
In-Reply-To: <20210616230804.7nsBdkkF4%akpm@linux-foundation.org>

[-- Attachment #1: Type: text/plain, Size: 5242 bytes --]

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@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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34020 bytes --]

[-- Attachment #3: Type: text/plain, Size: 161 bytes --]

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: akpm@linux-foundation.org, aneesh.kumar@linux.ibm.com,
	linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org,
	linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org,
	linux-riscv@lists.infradead.org
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com
Subject: Re: [to-be-updated] mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t.patch removed from -mm tree
Date: Wed, 23 Jun 2021 08:33:54 +0800	[thread overview]
Message-ID: <202106230801.rMB9ws3c-lkp@intel.com> (raw)
In-Reply-To: <20210616230804.7nsBdkkF4%akpm@linux-foundation.org>

[-- Attachment #1: Type: text/plain, Size: 5242 bytes --]

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@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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34020 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [to-be-updated] mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t.patch removed from -mm tree
Date: Wed, 23 Jun 2021 08:33:54 +0800	[thread overview]
Message-ID: <202106230801.rMB9ws3c-lkp@intel.com> (raw)
In-Reply-To: <20210616230804.7nsBdkkF4%akpm@linux-foundation.org>

[-- Attachment #1: Type: text/plain, Size: 5326 bytes --]

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@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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34020 bytes --]

  parent reply	other threads:[~2021-06-23  0:33 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-16 23:08 [to-be-updated] mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t.patch removed from -mm tree akpm
2021-06-16 23:08 ` akpm
2021-06-16 23:08 ` akpm
2021-06-16 23:08 ` akpm
2021-06-16 23:08 ` [to-be-updated] mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t.patch akpm
2021-06-21 23:38 ` [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
2021-06-21 23:38   ` kernel test robot
2021-06-21 23:38   ` kernel test robot
2021-06-21 23:38   ` kernel test robot
2021-06-21 23:38   ` [to-be-updated] mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t.patch kernel test robot
2021-06-23  0:33 ` kernel test robot [this message]
2021-06-23  0:33   ` [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
2021-06-23  0:33   ` kernel test robot
2021-06-23  0:33   ` kernel test robot
2021-06-23  0:33   ` [to-be-updated] mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t.patch kernel test robot
2021-06-29 20:08 ` [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
2021-06-29 20:08   ` kernel test robot
2021-06-29 20:08   ` kernel test robot
2021-06-29 20:08   ` kernel test robot
2021-06-29 20:08   ` [to-be-updated] mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t.patch kernel test robot
2021-06-30  3:38   ` [to-be-updated] mm-rename-pud_page_vaddr-to-pud_pgtable-and-make-it-return-pmd_t.patch removed from -mm tree Aneesh Kumar K.V
2021-06-30  3:38     ` Aneesh Kumar K.V

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202106230801.rMB9ws3c-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=aneesh.kumar@linux.ibm.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-alpha@vger.kernel.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-ia64@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@lists.linux-m68k.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-parisc@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.