Re: [PATCH v4] MIPS: Add support for CONFIG_DEBUG_VIRTUAL

2021-04-06 Thread Thomas Bogendoerfer
On Tue, Mar 30, 2021 at 08:22:07PM -0700, Florian Fainelli wrote: > Provide hooks to intercept bad usages of virt_to_phys() and > __pa_symbol() throughout the kernel. To make this possible, we need to > rename the current implement of virt_to_phys() into > __virt_to_phys_nodebug() and wrap it aroun

[PATCH v4] MIPS: Add support for CONFIG_DEBUG_VIRTUAL

2021-03-30 Thread Florian Fainelli
Provide hooks to intercept bad usages of virt_to_phys() and __pa_symbol() throughout the kernel. To make this possible, we need to rename the current implement of virt_to_phys() into __virt_to_phys_nodebug() and wrap it around depending on CONFIG_DEBUG_VIRTUAL. A similar thing is needed for __pa_s