Skip to content

Commit

Permalink
intel-iommu: Fix section mismatch dmar_ir_support() uses dmar_tbl.
Browse files Browse the repository at this point in the history
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>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Luck, Tony authored and David Woodhouse committed Dec 31, 2009
1 parent a79960e commit 0b8973a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/dmar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0b8973a

Please sign in to comment.