Skip to content

Commit 15bbdec

Browse files
Sakari AilusDavid Woodhouse
authored andcommitted
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: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent 9b41760 commit 15bbdec

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

drivers/iommu/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ config IOMMU_IO_PGTABLE_LPAE_SELFTEST
4242
endmenu
4343

4444
config IOMMU_IOVA
45-
bool
45+
tristate
4646

4747
config OF_IOMMU
4848
def_bool y

drivers/iommu/iova.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919

2020
#include <linux/iova.h>
21+
#include <linux/module.h>
2122
#include <linux/slab.h>
2223

2324
void
@@ -548,3 +549,6 @@ split_and_remove_iova(struct iova_domain *iovad, struct iova *iova,
548549
free_iova_mem(prev);
549550
return NULL;
550551
}
552+
553+
MODULE_AUTHOR("Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>");
554+
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)