Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 234bc0d6 authored by Sakari Ailus's avatar Sakari Ailus Committed by Greg Kroah-Hartman
Browse files

iommu: Make the iova library a module



The iova library has use outside the intel-iommu driver, thus make it a
module.

Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 11e33955
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -43,7 +43,7 @@ config IOMMU_IO_PGTABLE_LPAE_SELFTEST
endmenu
endmenu


config IOMMU_IOVA
config IOMMU_IOVA
	bool
	tristate


config OF_IOMMU
config OF_IOMMU
       def_bool y
       def_bool y
+4 −0
Original line number Original line Diff line number Diff line
@@ -18,6 +18,7 @@
 */
 */


#include <linux/iova.h>
#include <linux/iova.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/slab.h>


void
void
@@ -559,3 +560,6 @@ split_and_remove_iova(struct iova_domain *iovad, struct iova *iova,
		free_iova_mem(prev);
		free_iova_mem(prev);
	return NULL;
	return NULL;
}
}

MODULE_AUTHOR("Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>");
MODULE_LICENSE("GPL");