* [linux-next:master 6089/6355] include/linux/highmem-internal.h:86:39: error: passing 'const struct folio *' to parameter of type 'struct folio *' discards qualifiers
@ 2025-09-05 2:21 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-09-05 2:21 UTC (permalink / raw)
To: Max Kellermann
Cc: llvm, oe-kbuild-all, Andrew Morton, Linux Memory Management List,
Lorenzo Stoakes
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 4ac65880ebca1b68495bd8704263b26c050ac010
commit: 598ad57d4b4687c7cbb9fc8af954143d250b03ae [6089/6355] mm: constify highmem related functions for improved const-correctness
config: i386-buildonly-randconfig-002-20250905 (https://download.01.org/0day-ci/archive/20250905/202509051023.d6AUXYH1-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250905/202509051023.d6AUXYH1-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202509051023.d6AUXYH1-lkp@intel.com/
Note: the linux-next/master HEAD 4ac65880ebca1b68495bd8704263b26c050ac010 builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
In file included from arch/x86/kernel/asm-offsets.c:14:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:23:
In file included from include/linux/writeback.h:13:
In file included from include/linux/blk_types.h:10:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:14:
>> include/linux/highmem-internal.h:86:39: error: passing 'const struct folio *' to parameter of type 'struct folio *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
86 | const struct page *page = folio_page(folio, offset / PAGE_SIZE);
| ^~~~~
include/linux/page-flags.h:319:53: note: passing argument to parameter 'folio' here
319 | static inline struct page *folio_page(struct folio *folio, unsigned long n)
| ^
1 error generated.
make[3]: *** [scripts/Makefile.build:182: arch/x86/kernel/asm-offsets.s] Error 1 shuffle=2013769869
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1282: prepare0] Error 2 shuffle=2013769869
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=2013769869
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2 shuffle=2013769869
make: Target 'prepare' not remade because of errors.
vim +86 include/linux/highmem-internal.h
83
84 static inline void *kmap_local_folio(const struct folio *folio, size_t offset)
85 {
> 86 const struct page *page = folio_page(folio, offset / PAGE_SIZE);
87 return __kmap_local_page_prot(page, kmap_prot) + offset % PAGE_SIZE;
88 }
89
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-09-05 2:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-05 2:21 [linux-next:master 6089/6355] include/linux/highmem-internal.h:86:39: error: passing 'const struct folio *' to parameter of type 'struct folio *' discards qualifiers kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox