diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2022-05-30 10:46:39 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2023-05-29 11:27:08 +0200 |
commit | c94b1a012f93327a4fe16ab9455331f37e69242f (patch) | |
tree | 43fd0b0d3a796580499089a55e4b66ed5a205863 /arch/m68k | |
parent | a9ff6961601d9aa0c42b6eb7d850371f31b1f5e6 (diff) |
arm64: memory: Make virt_to_pfn() a static inline
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.
Since arm64 is using <asm-generic/memory_model.h> to provide
__phys_to_pfn() we need to move the inclusion of that header
up, so we can resolve the static inline at compile time.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/m68k')
0 files changed, 0 insertions, 0 deletions