Skip to contentSkip to conversation

PATCH Jeff Mahoney 2 participants 2 messages Jan 13, 2010 PCI

lore
Share & tools
lore
#0 lore raw

Subject: [patch 3/6] dmar: Fix section mismatch
References: <[email protected]>
Content-Disposition: inline; filename=patches.rpmify/dmar-fix-section-mismatch

dmar_ir_support uses dmar_tbl, which is __initdata. dmar_ir_support is only called by intr_remapping_supported, which is __init. So, we mark dmar_ir_support as __init as well.

---
 drivers/pci/dmar.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/dmar.c +1 -1
@@ -1456,7 +1456,7 @@ int dmar_reenable_qi(struct intel_iommu
 /*
  * Check interrupt remapping support in DMAR table description.
  */
-int dmar_ir_support(void)
+int __init dmar_ir_support(void)
 {
 	struct acpi_table_dmar *dmar;
 	dmar = (struct acpi_table_dmar *)dmar_tbl;
#1 lore raw
Quoted 11 lines · Jeff Mahoney

Subject: [patch 3/6] dmar: Fix section mismatch
References: <[email protected]>
Content-Disposition: inline;
filename=patches.rpmify/dmar-fix-section-mismatch

dmar_ir_support uses dmar_tbl, which is __initdata. dmar_ir_support
is
only called by intr_remapping_supported, which is __init. So, we mark dmar_ir_support as __init as well.

This patch doesn't apply to linux-next, and hasn't applied there for about two weeks. Why are people still sending it to me?

Signature · 2 lines
David Woodhouse                            Open Source Technology Centre
[email protected]                              Intel Corporation