On 2022/6/26 19:10, Guanghui Feng wrote: > +void __init mapping_crashkernel(void) > +{ > + if (can_set_direct_map() || IS_ENABLED(CONFIG_KFENCE)) > + return; > + > + if (!crash_mem_map || !crashk_res.end) > + return; All the code related to crash_mem_map can be removed now. > + > + map_crashkernel(swapper_pg_dir, crashk_res.start, > + crashk_res.end + 1, PAGE_KERNEL, > + NO_BLOCK_MAPPINGS | NO_CONT_MAPPINGS); > +} -- Regards, Zhen Lei