Skip to content

Commit 3d1f108

Browse files
bjackmanbp3tk0v
authored andcommitted
x86/mm: Delete disabled debug code
This code doesn't run. Since 2008: 4f9c11d ("x86, 64-bit: adjust mapping of physical pagetables to work with Xen") the kernel has gained more flexible logging and tracing capabilities; presumably if anyone wanted to take advantage of this log message they would have got rid of the "if (0)" so they could use these capabilities. Since they haven't, just delete it. Signed-off-by: Brendan Jackman <jackmanb@google.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://patch.msgid.link/20251003-x86-init-cleanup-v1-1-f2b7994c2ad6@google.com
1 parent e6a11a5 commit 3d1f108

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

arch/x86/mm/init_64.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,6 @@ phys_pte_init(pte_t *pte_page, unsigned long paddr, unsigned long paddr_end,
504504
continue;
505505
}
506506

507-
if (0)
508-
pr_info(" pte=%p addr=%lx pte=%016lx\n", pte, paddr,
509-
pfn_pte(paddr >> PAGE_SHIFT, PAGE_KERNEL).pte);
510507
pages++;
511508
set_pte_init(pte, pfn_pte(paddr >> PAGE_SHIFT, prot), init);
512509
paddr_last = (paddr & PAGE_MASK) + PAGE_SIZE;

0 commit comments

Comments
 (0)