* ia64: implicit declaration of functions since change on <linux/dmar.h>
@ 2015-01-31 14:08 Yann Droneaud
2015-02-02 3:07 ` [RFC Patch V1] iommu/vt-d: Fix build failure caused by incorrect Kconfig Jiang Liu
0 siblings, 1 reply; 2+ messages in thread
From: Yann Droneaud @ 2015-01-31 14:08 UTC (permalink / raw)
To: Jiang Liu, Joerg Roedel, Tony Luck, Fenghua Yu; +Cc: linux-kernel, linux-ia64
Hi,
While trying to conduct some regression testing, I've hit the following
build issue for ia64:
CC arch/ia64/kernel/pci-dma.o
../arch/ia64/kernel/pci-dma.c: In function 'pci_iommu_init':
../arch/ia64/kernel/pci-dma.c:41:3: error: implicit declaration of function 'intel_iommu_init' [-Werror=implicit-function-declaration]
intel_iommu_init();
^
../arch/ia64/kernel/pci-dma.c: In function 'pci_iommu_alloc':
../arch/ia64/kernel/pci-dma.c:103:2: error: implicit declaration of function 'detect_intel_iommu' [-Werror=implicit-function-declaration]
detect_intel_iommu();
^
It should be noted Kconfig complain with the following:
warning: (IA64) selects PM which has unmet direct dependencies (PM_SLEEP || PM_RUNTIME)
warning: (IA64_DIG_VTD) selects INTEL_IOMMU which has unmet direct dependencies (IOMMU_SUPPORT && PCI_MSI && ACPI && (X86 || IA64_GENERIC))
warning: (IA64) selects PM which has unmet direct dependencies (PM_SLEEP || PM_RUNTIME)
warning: (IA64_DIG_VTD) selects INTEL_IOMMU which has unmet direct dependencies (IOMMU_SUPPORT && PCI_MSI && ACPI && (X86 || IA64_GENERIC))
Bissection report the following commit as the root cause of the broken build:
8594d83261d14754288ef00993f0971131ff08eb is the first bad commit
commit 8594d83261d14754288ef00993f0971131ff08eb
Author: Jiang Liu <jiang.liu@linux.intel.com>
Date: Fri Jul 11 14:19:32 2014 +0800
iommu/vt-d: Simplify include/linux/dmar.h
Simplify include/linux/dmar.h a bit based on the fact that
both CONFIG_INTEL_IOMMU and CONFIG_IRQ_REMAP select CONFIG_DMAR_TABLE.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Regards.
--
Yann Droneaud
OPTEYA
^ permalink raw reply [flat|nested] 2+ messages in thread
* [RFC Patch V1] iommu/vt-d: Fix build failure caused by incorrect Kconfig
2015-01-31 14:08 ia64: implicit declaration of functions since change on <linux/dmar.h> Yann Droneaud
@ 2015-02-02 3:07 ` Jiang Liu
0 siblings, 0 replies; 2+ messages in thread
From: Jiang Liu @ 2015-02-02 3:07 UTC (permalink / raw)
To: Joerg Roedel, David Woodhouse, Yann Droneaud, Tony Luck, Fenghua Yu
Cc: Jiang Liu, iommu, x86, linux-kernel
Yann Droneaud <ydroneaud@opteya.com> reported one build failure as
below, which should be caused by incorrect Kconfig.
CC arch/ia64/kernel/pci-dma.o
../arch/ia64/kernel/pci-dma.c: In function 'pci_iommu_init':
../arch/ia64/kernel/pci-dma.c:41:3: error: implicit declaration of function 'intel_iommu_init' [-Werror=implicit-function-declaration]
intel_iommu_init();
^
../arch/ia64/kernel/pci-dma.c: In function 'pci_iommu_alloc':
../arch/ia64/kernel/pci-dma.c:103:2: error: implicit declaration of function 'detect_intel_iommu' [-Werror=implicit-function-declaration]
detect_intel_iommu();
^
It should be noted Kconfig complain with the following:
warning: (IA64) selects PM which has unmet direct dependencies (PM_SLEEP || PM_RUNTIME)
warning: (IA64_DIG_VTD) selects INTEL_IOMMU which has unmet direct dependencies (IOMMU_SUPPORT && PCI_MSI && ACPI && (X86 || IA64_GENERIC))
warning: (IA64) selects PM which has unmet direct dependencies (PM_SLEEP || PM_RUNTIME)
warning: (IA64_DIG_VTD) selects INTEL_IOMMU which has unmet direct dependencies (IOMMU_SUPPORT && PCI_MSI && ACPI && (X86 || IA64_GENERIC))
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
---
Hi Yann,
Could you please help to test whether this patch fix the build
failure and the Kconfig warnings?
Thanks!
Gerry
---
drivers/iommu/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index 325188eef1c1..718a0c9f7bdc 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -89,7 +89,7 @@ config DMAR_TABLE
config INTEL_IOMMU
bool "Support for Intel IOMMU using DMA Remapping Devices"
- depends on PCI_MSI && ACPI && (X86 || IA64_GENERIC)
+ depends on PCI_MSI && ACPI && (X86 || IA64_DIG_VTD)
select IOMMU_API
select DMAR_TABLE
help
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-02 3:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-31 14:08 ia64: implicit declaration of functions since change on <linux/dmar.h> Yann Droneaud
2015-02-02 3:07 ` [RFC Patch V1] iommu/vt-d: Fix build failure caused by incorrect Kconfig Jiang Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).