[PATCH v5] mm/sparse-vmemmap: flush_cache_vmap() after hotplugging vmemmap
kernel test robot
lkp at intel.com
Thu Jul 9 06:34:01 PDT 2026
Hi Vivian,
kernel test robot noticed the following build errors:
[auto build test ERROR on dc59e4fea9d83f03bad6bddf3fa2e52491777482]
url: https://github.com/intel-lab-lkp/linux/commits/Vivian-Wang/mm-sparse-vmemmap-flush_cache_vmap-after-hotplugging-vmemmap/20260707-121114
base: dc59e4fea9d83f03bad6bddf3fa2e52491777482
patch link: https://lore.kernel.org/r/20260707-mark-after-vmemmap-populate-v5-1-77d1ded3cae3%40iscas.ac.cn
patch subject: [PATCH v5] mm/sparse-vmemmap: flush_cache_vmap() after hotplugging vmemmap
config: riscv-randconfig-002-20260709 (https://download.01.org/0day-ci/archive/20260709/202607092128.yG6dYQOt-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 10.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260709/202607092128.yG6dYQOt-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607092128.yG6dYQOt-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/cacheflush.h:5,
from include/linux/highmem.h:8,
from include/linux/bvec.h:10,
from include/linux/blk_types.h:10,
from include/linux/writeback.h:13,
from include/linux/memcontrol.h:23,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/riscv/kernel/asm-offsets.c:12:
arch/riscv/include/asm/cacheflush.h: In function 'flush_cache_vmap':
>> arch/riscv/include/asm/cacheflush.h:60:16: error: 'VMEMMAP_START' undeclared (first use in this function)
60 | (start >= VMEMMAP_START && end <= VMEMMAP_END))
| ^~~~~~~~~~~~~
arch/riscv/include/asm/cacheflush.h:60:16: note: each undeclared identifier is reported only once for each function it appears in
>> arch/riscv/include/asm/cacheflush.h:60:40: error: 'VMEMMAP_END' undeclared (first use in this function); did you mean 'MEMREMAP_ENC'?
60 | (start >= VMEMMAP_START && end <= VMEMMAP_END))
| ^~~~~~~~~~~
| MEMREMAP_ENC
make[3]: *** [scripts/Makefile.build:184: arch/riscv/kernel/asm-offsets.s] Error 1 shuffle=275821313
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1405: prepare0] Error 2 shuffle=275821313
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=275821313
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2 shuffle=275821313
make: Target 'prepare' not remade because of errors.
vim +/VMEMMAP_START +60 arch/riscv/include/asm/cacheflush.h
42
43 #ifdef CONFIG_64BIT
44 /* This is accessed in assembly code. cpumask_var_t would be too complex. */
45 extern DECLARE_BITMAP(new_valid_map_cpus, NR_CPUS);
46 extern char _end[];
47 static inline void mark_new_valid_map(void)
48 {
49 /*
50 * We don't care if concurrently a cpu resets this value since
51 * the only place this can happen is in handle_exception() where
52 * an sfence.vma is emitted.
53 */
54 bitmap_fill(new_valid_map_cpus, NR_CPUS);
55 }
56 #define flush_cache_vmap flush_cache_vmap
57 static inline void flush_cache_vmap(unsigned long start, unsigned long end)
58 {
59 if (is_vmalloc_or_module_addr((void *)start) ||
> 60 (start >= VMEMMAP_START && end <= VMEMMAP_END))
61 mark_new_valid_map();
62 }
63 #define flush_cache_vmap_early(start, end) local_flush_tlb_kernel_range(start, end)
64 #endif
65
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the linux-riscv
mailing list