27 lines
872 B
Plaintext
27 lines
872 B
Plaintext
|
From: Jeff Mahoney <jeffm@suse.com>
|
||
|
Subject: dmar: Fix section mismatch
|
||
|
Patch-mainline: Next linux-next sync
|
||
|
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/sfr/linux-next.git
|
||
|
Git-commit: 0b8973a81876d90f916507ac40d1381068dc986a
|
||
|
|
||
|
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.
|
||
|
|
||
|
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
|
||
|
---
|
||
|
drivers/pci/dmar.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
--- a/drivers/pci/dmar.c
|
||
|
+++ b/drivers/pci/dmar.c
|
||
|
@@ -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;
|