Skip to content

Commit 95e2eaf

Browse files
Dr. David Alan Gilbertjoergroedel
authored andcommitted
iommu/vt-d: Remove unused dmar_msi_read
dmar_msi_read() has been unused since 2022 in commit cf8e865 ("arch: Remove Itanium (IA-64) architecture") Remove it. (dmar_msi_write still exists and is used once). Signed-off-by: Dr. David Alan Gilbert <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent 6d8bac0 commit 95e2eaf

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

drivers/iommu/intel/dmar.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,19 +1895,6 @@ void dmar_msi_write(int irq, struct msi_msg *msg)
18951895
raw_spin_unlock_irqrestore(&iommu->register_lock, flag);
18961896
}
18971897

1898-
void dmar_msi_read(int irq, struct msi_msg *msg)
1899-
{
1900-
struct intel_iommu *iommu = irq_get_handler_data(irq);
1901-
int reg = dmar_msi_reg(iommu, irq);
1902-
unsigned long flag;
1903-
1904-
raw_spin_lock_irqsave(&iommu->register_lock, flag);
1905-
msg->data = readl(iommu->reg + reg + 4);
1906-
msg->address_lo = readl(iommu->reg + reg + 8);
1907-
msg->address_hi = readl(iommu->reg + reg + 12);
1908-
raw_spin_unlock_irqrestore(&iommu->register_lock, flag);
1909-
}
1910-
19111898
static int dmar_fault_do_one(struct intel_iommu *iommu, int type,
19121899
u8 fault_reason, u32 pasid, u16 source_id,
19131900
unsigned long long addr)

include/linux/dmar.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ static inline void dmar_copy_shared_irte(struct irte *dst, struct irte *src)
292292
struct irq_data;
293293
extern void dmar_msi_unmask(struct irq_data *data);
294294
extern void dmar_msi_mask(struct irq_data *data);
295-
extern void dmar_msi_read(int irq, struct msi_msg *msg);
296295
extern void dmar_msi_write(int irq, struct msi_msg *msg);
297296
extern int dmar_set_interrupt(struct intel_iommu *iommu);
298297
extern irqreturn_t dmar_fault(int irq, void *dev_id);

0 commit comments

Comments
 (0)