]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/iova: Allow compiling the library without IOMMU support
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 2 Jan 2019 21:16:57 +0000 (23:16 +0200)
committerJoerg Roedel <jroedel@suse.de>
Fri, 11 Jan 2019 11:26:43 +0000 (12:26 +0100)
commit968c7a71288c9d3bce918efa6bd484cf242e73b9
tree9be0df4e198076ce0bc9de8acb5381f560b761e8
parentd6952d4b95d3a6897fcea7446c97f59f8d24556b
iommu/iova: Allow compiling the library without IOMMU support

Drivers such as the Intel IPU3 ImgU driver use the IOVA library to manage
the device's own virtual address space while not implementing the IOMMU
API. Currently the IOVA library is only compiled if the IOMMU support is
enabled, resulting into a failure during linking due to missing symbols.

Fix this by defining IOVA library Kconfig bits independently of IOMMU
support configuration, and descending to the iommu directory
unconditionally during the build.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/Makefile
drivers/iommu/Kconfig