On 2025-04-04 at 09:56:31 -0700, Dave Hansen wrote: >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. I was trying to think of some prettier way to open code it but this seemed like the simplest one. -- Kind regards Maciej Wieczór-Retman