swiotlb: factor out an io_tlb_offset helper
authorChristoph Hellwig <hch@lst.de>
Thu, 4 Feb 2021 09:11:20 +0000 (10:11 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sat, 20 Feb 2021 15:13:40 +0000 (10:13 -0500)
commitc7fbeca757fe74135d8b6a4c8ddaef76f5775d68
tree6d1e5fe3b1cc7f97b5856f4065ef960a08257b22
parentb5d7ccb7aac3895c2138fe0980a109116ce15eff
swiotlb: factor out an io_tlb_offset helper

Replace the very genericly named OFFSET macro with a little inline
helper that hardcodes the alignment to the only value ever passed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jianxiong Gao <jxgao@google.com>
Tested-by: Jianxiong Gao <jxgao@google.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/swiotlb.c