On 4/4/25 06:14, Maciej Wieczor-Retman wrote: > + if (__pa(p4d) != (pgtable_l5_enabled() ? > + (unsigned long)pgd_val(*pgd) & PTE_PFN_MASK : > + __pa(pgd))) > printk(KERN_ERR "PAGETABLE BUG #00! %p <-> %p\n", This one is pretty fugly. But I guess it's just one place and it probably isn't worth refactoring this and the other helpers just for a debug message.