]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dma-debug: store a phys_addr_t in struct dma_debug_entry
authorChristoph Hellwig <hch@lst.de>
Sun, 6 Oct 2024 07:20:01 +0000 (09:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:35:41 +0000 (16:35 +0200)
commitc39e8483dbcbea3b033d1ef8d27e75f20666d942
tree6dae7be01528f98e121e028f2ca9b75276d8cf27
parentb80d9c5208987166602d0337a9ed2df31050558f
dma-debug: store a phys_addr_t in struct dma_debug_entry

[ Upstream commit 9d4f645a1fd49eea70a21e8671d358ebe1c08d02 ]

dma-debug goes to great length to split incoming physical addresses into
a PFN and offset to store them in struct dma_debug_entry, just to
recombine those for all meaningful uses.  Just store a phys_addr_t
instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Stable-dep-of: 7e2368a21741 ("dma-debug: don't enforce dma mapping check on noncoherent allocations")
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/dma/debug.c