On Wed, Nov 15, 2023 at 11:02:21AM +0800, Lu Baolu wrote: > The iommu_fault_event and iopf_fault data structures store the same > information about an iopf fault. They are also used in the same way. > Merge these two data structures into a single one to make the code > more concise and easier to maintain. > > Signed-off-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx> > Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx> > Tested-by: Yan Zhao <yan.y.zhao@xxxxxxxxx> > --- > include/linux/iommu.h | 27 ++++++--------------- > drivers/iommu/intel/iommu.h | 2 +- > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 4 +-- > drivers/iommu/intel/svm.c | 5 ++-- > drivers/iommu/io-pgfault.c | 5 ---- > drivers/iommu/iommu.c | 8 +++--- > 6 files changed, 17 insertions(+), 34 deletions(-) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Jason