Re: [PATCH 04/12] riscv: mm: init: Pass a pointer to virt_to_page()

2023-05-12 Thread Alexandre Ghiti
+cc linux-riscv On 5/11/23 13:59, Linus Walleij wrote: 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 architecture

[PATCH 04/12] riscv: mm: init: Pass a pointer to virt_to_page()

2023-05-11 Thread Linus Walleij
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 become