[PATCH] powerpc: Make virt_to_pfn() a static inline

Michael Ellerman patch-notifications at ellerman.id.au
Wed Aug 23 21:55:55 AEST 2023

On Wed, 09 Aug 2023 10:07:13 +0200, Linus Walleij wrote:
> 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 polymorphic and accepting many types
> such as (void *), (unitptr_t) or (unsigned long) as arguments
> without warnings.
> [...]

Applied to powerpc/next.

[1/1] powerpc: Make virt_to_pfn() a static inline


More information about the Linuxppc-dev mailing list