[PATCH] PCI: enable_drhd_fault_handling() section mismatch cleanup

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

 



Section mismatch fix for

WARNING: vmlinux.o(.cpuinit.text+0x664b): Section mismatch in reference from the function end_local_APIC_setup() to the function .init.text:enable_drhd_fault_handling()
The function __cpuinit end_local_APIC_setup() references
a function __init enable_drhd_fault_handling().
If enable_drhd_fault_handling is only used by end_local_APIC_setup then
annotate enable_drhd_fault_handling with a matching annotation.

enable_drhd_fault_handling() should be __cpuinit.

Signed-off-by: Prarit Bhargava <prarit@xxxxxxxxxx>

diff --git a/drivers/pci/dmar.c b/drivers/pci/dmar.c
index 09933eb..6c7f957 100644
--- a/drivers/pci/dmar.c
+++ b/drivers/pci/dmar.c
@@ -1399,7 +1399,7 @@ int dmar_set_interrupt(struct intel_iommu *iommu)
 	return ret;
 }
 
-int __init enable_drhd_fault_handling(void)
+int __cpuinit enable_drhd_fault_handling(void)
 {
 	struct dmar_drhd_unit *drhd;
 
--
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