aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorLinus Walleij <[email protected]>2023-08-12 17:12:54 +0200
committerHeiko Carstens <[email protected]>2023-08-16 15:13:03 +0200
commit2d1494fb31405df0dfb6006fdb2b24e7880258cd (patch)
treef21e0f280a7084fb14171c23d3e7bdbeac062c89 /tools/testing/selftests/bpf/prog_tests/autoload.c
parent5cfdff02e97a46f90b3ba408af62ad3dcb0dc586 (diff)
s390/mm: 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. For symmetry do the same with pfn_to_virt() reflecting the current layout in asm-generic/page.h. Doing this reveals a number of offenders in the arch code and the S390-specific drivers, so just bite the bullet and fix up all of those as well. Signed-off-by: Linus Walleij <[email protected]> Reviewed-by: Alexander Gordeev <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Carstens <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions