Files
Christoph Hellwig c2707bda56 UPSTREAM: asm-generic: provide generic page_to_phys and phys_to_page implementations
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.

Note with this patch powerpc loses the CONFIG_DEBUG_VIRTUAL pfn_valid
check.  It will be added back in a generic version later.

Bug: 399192075

Change-Id: I6cdc866833e43a21e6fbabefb686797dd57d9e13
Signed-off-by: Sandeep Dhavale <dhavale@google.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
(cherry picked from commit c5c3238d9b8cee58cd4b08bbbe9347a94a566390)
Signed-off-by: Sandeep Dhavale <dhavale@google.com>
2025-03-19 13:28:28 +00:00
..
2023-10-06 10:03:04 +02:00
2023-08-21 13:27:43 +02:00
2023-12-20 16:40:32 -05:00
2023-01-30 16:40:15 +01:00
2023-08-21 13:27:44 +02:00
2023-01-30 16:40:15 +01:00
2025-02-17 10:05:04 +01:00