Thread (6 messages) 6 messages, 4 authors, 2024-12-11

Re: provide generic page_to_phys and phys_to_page implementations v3

From: "Arnd Bergmann" <arnd@arndb.de>
Date: 2024-10-25 13:37:38
Also in: linux-alpha, linux-arch, linux-arm-kernel, linux-m68k, linux-mips, linux-riscv, linux-s390, linux-sh, linux-um, lkml, loongarch, sparclinux

On Wed, Oct 23, 2024, at 05:36, Christoph Hellwig wrote:
page_to_phys is duplicated by all architectures, and from some strange
reason placed in <asm/io.h> where it doesn't fit at all.  

phys_to_page is only provided by a few architectures despite having a lot 
of open coded users.

Provide generic versions in <asm-generic/memory_model.h> to make these
helpers more easily usable.
I've applied this to the asm-generic tree now.

Thanks for the cleanup!

     Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help