The following build warnings / errors are noticed with riscv defconfig with clang-20 and gcc-13 toolchains.
Regression Analysis: - New regression? yes - Reproducibility? yes
Build regression: next-20250825 riscv pgtable.h:951:40: error: incompatible type for argument 2 of 'page_table_check_pud_clear'
Reported-by: Linux Kernel Functional Testing lkft@linaro.org
riscv: build: * gcc-13-lkftconfig-rcutorture * gcc-13-lkftconfig * gcc-13-allyesconfig * clang-20-lkftconfig * gcc-13-lkftconfig-libgpiod
## Build log In file included from include/linux/pgtable.h:6, from include/linux/mm.h:31, from arch/riscv/kernel/asm-offsets.c:8: arch/riscv/include/asm/pgtable.h: In function 'pudp_huge_get_and_clear': arch/riscv/include/asm/pgtable.h:951:40: error: incompatible type for argument 2 of 'page_table_check_pud_clear' 951 | page_table_check_pud_clear(mm, address, pud); | ^~~~~~~ | | | long unsigned int In file included from arch/riscv/include/asm/pgtable.h:139: include/linux/page_table_check.h:125:75: note: expected 'pud_t' but argument is of type 'long unsigned int' 125 | static inline void page_table_check_pud_clear(struct mm_struct *mm, pud_t pud) | ~~~~~~^~~ arch/riscv/include/asm/pgtable.h:951:9: error: too many arguments to function 'page_table_check_pud_clear' 951 | page_table_check_pud_clear(mm, address, pud); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/page_table_check.h:125:20: note: declared here 125 | static inline void page_table_check_pud_clear(struct mm_struct *mm, pud_t pud) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: *** [scripts/Makefile.build:182: arch/riscv/kernel/asm-offsets.s] Error 1
## Source * Kernel version: 6.17.0-rc3-next-20250825 * Git tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next.git * Git describe: next-20250825 * Git commit: 6c68f4c0a147c025ae0b25fab688c7c47964a02f * Architectures: riscv * Toolchains: clang-20 gcc-12 * Kconfigs: defconfig+lkftconfig
## Build * Build log: https://qa-reports.linaro.org/api/testruns/29652465/log_file/ * Build details: https://regressions.linaro.org/lkft/linux-next-master/next-20250825/build/gc... * Build error details: https://regressions.linaro.org/lkft/linux-next-master/next-20250825/log-pars... * Build plan: https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/builds/31lrb0Xugz... * Build link: https://storage.tuxsuite.com/public/linaro/lkft/builds/31lrb0XugzFZYDePlPNpS... * Kernel config: https://storage.tuxsuite.com/public/linaro/lkft/builds/31lrb0XugzFZYDePlPNpS...
-- Linaro LKFT https://lkft.linaro.org