diff options
| author | Linus Walleij <[email protected]> | 2022-06-02 07:48:29 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2023-05-29 09:27:08 +0000 |
| commit | ef7d0f5d03b9e65c9daa8dfe8b405b10566055eb (patch) | |
| tree | ecfcb0253a7ad6ca5f9f34240cd204a0d8f805bb /tools/perf/scripts/python/syscall-counts.py | |
| parent | arm64: memory: Make virt_to_pfn() a static inline (diff) | |
| download | kernel-ef7d0f5d03b9e65c9daa8dfe8b405b10566055eb.tar.gz kernel-ef7d0f5d03b9e65c9daa8dfe8b405b10566055eb.zip | |
m68k/mm: Make pfn accessors static inlines
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.
For symmetry, do the same with pfn_to_virt().
Reviewed-by: Geert Uytterhoeven <[email protected]>
Acked-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
