[PATCH] PCI dmar: Fix section mismatch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixes:
Section mismatch in reference from the function dmar_ir_support()
to the variable .init.data:dmar_tbl

when compiled with: CONFIG_DEBUG_SECTION_MISMATCH=y

If this should get picked up by stable@xxxxxxxxxx:
This patch should be needed in 2.6.33 and 2.6.32 and should patch
there just fine.

CC: stable@xxxxxxxxxx
CC: jbarnes@xxxxxxxxxxxxxxxx
CC: linux-pci@xxxxxxxxxxxxxxx
Signed-off-by: Thomas Renninger <trenn@xxxxxxx>
---
 drivers/pci/dmar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/pci/dmar.c b/drivers/pci/dmar.c
index 83aae47..ffe22bc 100644
--- a/drivers/pci/dmar.c
+++ b/drivers/pci/dmar.c
@@ -1456,7 +1456,7 @@ int dmar_reenable_qi(struct intel_iommu *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.6.3

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux