File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -441,12 +441,6 @@ static void init_translation_status(struct intel_iommu *iommu)
441
441
iommu -> flags |= VTD_FLAG_TRANS_PRE_ENABLED ;
442
442
}
443
443
444
- /* Convert generic 'struct iommu_domain to private struct dmar_domain */
445
- static struct dmar_domain * to_dmar_domain (struct iommu_domain * dom )
446
- {
447
- return container_of (dom , struct dmar_domain , domain );
448
- }
449
-
450
444
static int __init intel_iommu_setup (char * str )
451
445
{
452
446
if (!str )
Original file line number Diff line number Diff line change @@ -595,6 +595,12 @@ static inline void __iommu_flush_cache(
595
595
clflush_cache_range (addr , size );
596
596
}
597
597
598
+ /* Convert generic struct iommu_domain to private struct dmar_domain */
599
+ static inline struct dmar_domain * to_dmar_domain (struct iommu_domain * dom )
600
+ {
601
+ return container_of (dom , struct dmar_domain , domain );
602
+ }
603
+
598
604
/*
599
605
* 0: readable
600
606
* 1: writable
You can’t perform that action at this time.
0 commit comments