]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb: Add CONFIG_HAS_IOMEM check around swiotlb_mem_remap()
authorWei Liu <wei.liu@kernel.org>
Tue, 4 Jan 2022 16:11:19 +0000 (16:11 +0000)
committerWei Liu <wei.liu@kernel.org>
Tue, 4 Jan 2022 16:11:19 +0000 (16:11 +0000)
commit25ac848c49f49701165c8ee5a83f3075475379f4
tree1c808331a97c6809ea2378f6f10b3ccb686d2dd9
parent114b7661eeed750693c6f9890f886acae233ade4
swiotlb: Add CONFIG_HAS_IOMEM check around swiotlb_mem_remap()

HAS_IOMEM option may not be selected on some platforms (e.g, s390) and
this will cause compilation failure due to missing memremap()
implementation.

Fix it by stubbing out swiotlb_mem_remap when CONFIG_HAS_IOMEM is not
set.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Tianyu Lan <Tianyu.Lan@microsoft.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
kernel/dma/swiotlb.c