Merge tag 'trace-v4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[platform/kernel/linux-starfive.git] / lib / iommu-helper.c
index 23633c0..92a9f24 100644 (file)
@@ -3,19 +3,8 @@
  * IOMMU helper functions for the free area management
  */
 
-#include <linux/export.h>
 #include <linux/bitmap.h>
-#include <linux/bug.h>
-
-int iommu_is_span_boundary(unsigned int index, unsigned int nr,
-                          unsigned long shift,
-                          unsigned long boundary_size)
-{
-       BUG_ON(!is_power_of_2(boundary_size));
-
-       shift = (shift + index) & (boundary_size - 1);
-       return shift + nr > boundary_size;
-}
+#include <linux/iommu-helper.h>
 
 unsigned long iommu_area_alloc(unsigned long *map, unsigned long size,
                               unsigned long start, unsigned int nr,
@@ -38,4 +27,3 @@ again:
        }
        return -1;
 }
-EXPORT_SYMBOL(iommu_area_alloc);