Skip to content

Commit 9b2bc6b

Browse files
shamiali2008willdeacon
authored andcommitted
iommu: Move IOMMU_DIRTY_NO_CLEAR define
Fixes the compile issue when CONFIG_IOMMU_API is not set. Fixes: 4fe88fd ("iommu/io-pgtable-arm: Add read_and_clear_dirty() support") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Shameer Kolothum <[email protected]> Reviewed-by: Joao Martins <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent ac4e52c commit 9b2bc6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/linux/iommu.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ enum iommu_dev_features {
317317
#define IOMMU_PASID_INVALID (-1U)
318318
typedef unsigned int ioasid_t;
319319

320+
/* Read but do not clear any dirty bits */
321+
#define IOMMU_DIRTY_NO_CLEAR (1 << 0)
322+
320323
#ifdef CONFIG_IOMMU_API
321324

322325
/**
@@ -353,9 +356,6 @@ struct iommu_dirty_bitmap {
353356
struct iommu_iotlb_gather *gather;
354357
};
355358

356-
/* Read but do not clear any dirty bits */
357-
#define IOMMU_DIRTY_NO_CLEAR (1 << 0)
358-
359359
/**
360360
* struct iommu_dirty_ops - domain specific dirty tracking operations
361361
* @set_dirty_tracking: Enable or Disable dirty tracking on the iommu domain

0 commit comments

Comments
 (0)