kernel/kexec_core.c:322 kimage_free_pages() warn: inconsistent indenting
kernel test robot
build bottree: https://github.com/agraf/linux-2.6.git kexec-cma head: 752619bbe38c535612b1a9e5b47ea7d962c63449 commit: 752619bbe38c535612b1a9e5b47ea7d962c63449 [2/2] XXX config: x86_64-randconfig-161-20250510 (https://download.01.org/0day-ci/archive/20250511/[email protected]/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
smatch warnings:kernel/kexec_core.c:322 kimage_free_pages() warn: inconsistent indenting kernel/kexec_core.c:717 kimage_alloc_page() warn: inconsistent indenting
vim +322 kernel/kexec_core.c
307
308 static void kimage_free_pages(struct page *page)
309 {
310 unsigned int order, count, i;
311
312 order = page_private(page);
313 count = 1 << order;
314
315 arch_kexec_pre_free_pages(page_address(page), count);
316
317 /*
318 * CMA pages are always kept at PAGE_SIZE granule in dest_pages so
319 * later allocation can pick them up. Free them one by one even if
320 * they are larger in theory to ensure we don't double free.
321 */
> 322 pr_info("XXX %s:%d page phys addr %lx\n", __func__, __LINE__, page_to_boot_pfn(page)); 323 if (!dma_release_from_contiguous(NULL, page, 1)) {
324 for (i = 0; i < count; i++)
325 ClearPageReserved(page + i);
326 __free_pages(page, order);
327 pr_info("XXX %s:%d normal page order %d\n", __func__, __LINE__, order);
328 } else {
329 pr_info("XXX %s:%d DMA page\n", __func__, __LINE__);
330 }
331 }
332
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki