linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* next-20250825: riscv: pgtable.h:951:40: error: incompatible type for argument 2 of 'page_table_check_pud_clear'
@ 2025-08-26  6:20 Naresh Kamboju
  0 siblings, 0 replies; only message in thread
From: Naresh Kamboju @ 2025-08-26  6:20 UTC (permalink / raw)
  To: linux-riscv, open list, linux-mm, lkft-triage, Linux Regressions
  Cc: Dan Carpenter, Arnd Bergmann, Anders Roxell, Ben Copeland

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/gcc-13-lkftconfig/
* Build error details:
https://regressions.linaro.org/lkft/linux-next-master/next-20250825/log-parser-build-gcc/gcc-compiler-arch_riscv_include_asm_pgtable_h-error-too-many-arguments-to-function-page_table_check_pud_clear/
* Build plan: https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/builds/31lrb0XugzFZYDePlPNpSIVTzeB
* Build link: https://storage.tuxsuite.com/public/linaro/lkft/builds/31lrb0XugzFZYDePlPNpSIVTzeB/
* Kernel config:
https://storage.tuxsuite.com/public/linaro/lkft/builds/31lrb0XugzFZYDePlPNpSIVTzeB/config

--
Linaro LKFT
https://lkft.linaro.org


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-26  6:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-26  6:20 next-20250825: riscv: pgtable.h:951:40: error: incompatible type for argument 2 of 'page_table_check_pud_clear' Naresh Kamboju

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).