diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2022-06-07 17:31:34 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2023-05-29 12:27:07 +0300 |
commit | a7d270d71aca0ea3cfe3973770ed40206f603475 (patch) | |
tree | abb7c65dadd72a133d012c0b665e317ebb598602 /scripts/gdb/linux/utils.py | |
parent | c8092025495a17261525ce53feec7e261714c988 (diff) | |
download | linux-a7d270d71aca0ea3cfe3973770ed40206f603475.tar.xz |
riscv: mm: init: Pass a pointer to virt_to_page()
Functions that work on a pointer to virtual memory such as
virt_to_pfn() and users of that function such as
virt_to_page() are supposed to pass a pointer to virtual
memory, ideally a (void *) or other pointer. However since
many architectures implement virt_to_pfn() as a macro,
this function becomes polymorphic and accepts both a
(unsigned long) and a (void *).
Fix this in the RISCV mm init code, so we can implement
a strongly typed virt_to_pfn().
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions