]> git.baikalelectronics.ru Git - kernel.git/commit
mm: add dma_addr_t to struct page
authorJesper Dangaard Brouer <brouer@redhat.com>
Wed, 13 Feb 2019 01:55:40 +0000 (02:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 06:00:16 +0000 (22:00 -0800)
commitaf389c41a483028522e98f500d4ea6a14b64f927
treee48b4e7e38d7270f1774a3e30afd6d72d47871ba
parent116b24a17bb5fbb24df65dd281df1f7903f635c3
mm: add dma_addr_t to struct page

The page_pool API is using page->private to store DMA addresses.
As pointed out by David Miller we can't use that on 32-bit architectures
with 64-bit DMA

This patch adds a new dma_addr_t struct to allow storing DMA addresses

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mm_types.h