Re: [PATCH 00/12] arch: Make virt_to_pfn into a static inline

2023-05-12 Thread Geert Uytterhoeven
Hi Linus, On Thu, May 11, 2023 at 1:59 PM Linus Walleij wrote: > This is an attempt to harden the typing on virt_to_pfn() > and pfn_to_virt(). > > Making virt_to_pfn() a static inline taking a strongly typed > (const void *) makes the contract of a passing a pointer of that > type to the function

[PATCH 00/12] arch: Make virt_to_pfn into a static inline

2023-05-11 Thread Linus Walleij
This is an attempt to harden the typing on virt_to_pfn() and pfn_to_virt(). Making virt_to_pfn() a static inline taking a strongly typed (const void *) makes the contract of a passing a pointer of that type to the function explicit and exposes any misuse of the macro virt_to_pfn() acting polymorph