swiotlb: factor out an io_tlb_offset helper
authorJianxiong Gao <jxgao@google.com>
Thu, 29 Apr 2021 17:33:09 +0000 (17:33 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 May 2021 09:04:32 +0000 (11:04 +0200)
commit1bbcc985d19524114bd2e0db1d826807043348cd
treeec73f216f023508768993bc528da323b534af96e
parent22163a8ec863f98bc4a096ac08b2dfe9edc5ddf1
swiotlb: factor out an io_tlb_offset helper

commit: c7fbeca757fe74135d8b6a4c8ddaef76f5775d68

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>
Signed-off-by: Jianxiong Gao <jxgao@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/dma/swiotlb.c