Skip to content

Commit 5fbf973

Browse files
LuBaoluwilldeacon
authored andcommitted
iommu/vt-d: Remove comment for def_domain_type
The comment for def_domain_type is outdated. Part of it is irrelevant. Furthermore, it could just be deleted since the iommu_ops::def_domain_type callback is properly documented in iommu.h, so individual implementations shouldn't need to repeat that. Remove it to avoid confusion. Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Link: https://lore.kernel.org/r/20240624024327.234979-1-baolu.lu@linux.intel.com Link: https://lore.kernel.org/r/20240702130839.108139-3-baolu.lu@linux.intel.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent b5e86a9 commit 5fbf973

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

drivers/iommu/intel/iommu.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,17 +2177,6 @@ static bool device_rmrr_is_relaxable(struct device *dev)
21772177
return false;
21782178
}
21792179

2180-
/*
2181-
* Return the required default domain type for a specific device.
2182-
*
2183-
* @dev: the device in query
2184-
* @startup: true if this is during early boot
2185-
*
2186-
* Returns:
2187-
* - IOMMU_DOMAIN_DMA: device requires a dynamic mapping domain
2188-
* - IOMMU_DOMAIN_IDENTITY: device requires an identical mapping domain
2189-
* - 0: both identity and dynamic domains work for this device
2190-
*/
21912180
static int device_def_domain_type(struct device *dev)
21922181
{
21932182
if (dev_is_pci(dev)) {

0 commit comments

Comments
 (0)