From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754873AbbBBDE6 (ORCPT ); Sun, 1 Feb 2015 22:04:58 -0500 Received: from mga01.intel.com ([192.55.52.88]:50524 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754556AbbBBDE5 (ORCPT ); Sun, 1 Feb 2015 22:04:57 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,504,1418112000"; d="scan'208";a="671257387" From: Jiang Liu To: Joerg Roedel , David Woodhouse , Yann Droneaud , Tony Luck , Fenghua Yu Cc: Jiang Liu , iommu@lists.linux-foundation.org, x86@kernel.org, linux-kernel@vger.kernel.org Subject: [RFC Patch V1] iommu/vt-d: Fix build failure caused by incorrect Kconfig Date: Mon, 2 Feb 2015 11:07:44 +0800 Message-Id: <1422846464-14558-1-git-send-email-jiang.liu@linux.intel.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1422713299.3030.23.camel@opteya.com> References: <1422713299.3030.23.camel@opteya.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Yann Droneaud 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 --- 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