On 5/23/2021 2:29 AM, Andrew Morton wrote:
On Sat, 22 May 2021 23:05:26 +0800 kernel test robot <lkp@xxxxxxxxx> wrote:
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
branch HEAD: 8dca2cd055ffb78b37f52f0bf0bd20c249619c4d Add linux-next specific files for 20210521
mm/mremap.c:306:8: warning: variable 'pud' set but not used [-Wunused-but-set-variable]
...
|-- arm64-randconfig-r014-20210521
| |-- kernel-kallsyms.c:warning:no-previous-prototype-for-kallsyms_lookup_buildid
| `-- mm-mremap.c:warning:variable-pud-set-but-not-used
...
|-- i386-allmodconfig
| |-- drivers-net-wireless-ath-ath10k-htt_rx.c:warning:variable-more_frags-set-but-not-used
| |-- kernel-kallsyms.c:warning:no-previous-prototype-for-kallsyms_lookup_buildid
| `-- mm-mremap.c:warning:variable-pud-set-but-not-used
I can't reproduce this. move_normal_pud() does
pud_populate(mm, new_pud, (pmd_t *)pud_page_vaddr(pud));
and I can't see a version of pud_page_vaddr() which doesn't reference its
argument.
Maybe it was fixed since this release of next.
Hi Andrew,
The original report can be found at
https://lore.kernel.org/linux-mm/202105180059.7qbrqAhs-lkp@xxxxxxxxx/
Best Regards,
Rong Chen