public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix section mismatch dmar_ir_support() uses dmar_tbl.
@ 2009-12-16 22:59 tony.luck
  0 siblings, 0 replies; only message in thread
From: tony.luck @ 2009-12-16 22:59 UTC (permalink / raw)
  To: David Woodhouse; +Cc: linux-kernel

dmar_tbl is declared as __initdata, but dmar_ir_support() is not declared
as an __init function.  Fix is simple since the only caller of dmar_ir_support
(intr_remapping_supported) is an __init function.

Signed-off-by: Tony Luck <tony.luck@intel.com>

---

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;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-16 22:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-16 22:59 [PATCH] Fix section mismatch dmar_ir_support() uses dmar_tbl tony.luck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox