diff options
| author | Linus Walleij <[email protected]> | 2023-08-10 07:40:31 +0000 |
|---|---|---|
| committer | Guo Ren <[email protected]> | 2023-08-11 02:12:49 +0000 |
| commit | c1884e1e116409dafce84df38134aa2d7cdb719d (patch) | |
| tree | 5e99a6a1ac7dae232f0a9f4b2a51302a2e6c4e57 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | csky: Cast argument to virt_to_pfn() to (void *) (diff) | |
| download | kernel-c1884e1e116409dafce84df38134aa2d7cdb719d.tar.gz kernel-c1884e1e116409dafce84df38134aa2d7cdb719d.zip | |
csky: 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 to the same thing with pfn_to_virt().
In order to do this we move the virt_to_phys() and
phys_to_virt() below the definitions of the __pa()
and __va() macros so it compiles. The macro version was also
able to do recursive symbol resolution.
Signed-off-by: Linus Walleij <[email protected]>
Signed-off-by: Guo Ren <[email protected]>
Signed-off-by: Guo Ren <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
