Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2147358ybb; Mon, 30 Mar 2020 00:00:33 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsdlmK2WoVx3WdcXkTFEGJvVQsLmAiTstTskNffST9OD8ShdktGTHFnKFX6rPPRkZJJ2Tc3 X-Received: by 2002:a9d:7590:: with SMTP id s16mr8115075otk.250.1585551633809; Mon, 30 Mar 2020 00:00:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585551633; cv=none; d=google.com; s=arc-20160816; b=BdyChrKmdW9nFhgMxowdSdx6sMGCp9HwSDXwlJjJXO2wCxtN0B3IDiqmU+q0Y5gOOB b+9LYIAsJNouyjYDtuw7m7Oo6awRQ+8kfKv6Y1w5SiRMr/lZo6r8CEda9zZBh3gYOWvW icW4zI/DWjf4ApIwVOkckxvvFM9LtwGPfAThkWO+wbZPEghfkJRPmk2u8G8RR+TrxLVT 9Lvp4e5BQ0S8goRv9ScdLCf17cDRZWTr1kMcbCVocbqMX3vppr249q5g2KBh6Ky9KsrJ aDMUKk3EYQN7/2cYmzo47NYpL9fB5uwz/ZgVYTDZwMJzwKWbS1i36lBnoR0HabTdnkjS GoYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=GupZMGtV3GAXtBulhKoI5gXcgtgqKz6zuHV5aYbKXjo=; b=uZNH+1uVSepuSohnw/8/vv75vaYFzWG1CFyY95l2DY06ItHIG9lQyVJRPX95p8dkZT xRKn9Hl8Hg8G6v0+QWFxkF9ZwNnqxZEt7OSDphMQORpLMydMDFHDGC1VJsdXkXF8dwrc Ki7iFNEbE9Wy3VkcmdyUZGX6/+CJSWsp532MRpGQV/efNEhXsJFGHGHdrf79lm5Y1mG2 rWNYsHOV45MtS5zYYf/DUrHuoaNVAg08k/VOFlLRHqEKkxO60f/Z0ILvtUZruFVZUSJD we1U+nTauEjV4GfDQI+SyDhpZRZ7oMAUaexUCP5waF+xJI5Cd/dexPcWoKY9oiw5T1RI xsxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c20si5257515otf.37.2020.03.30.00.00.20; Mon, 30 Mar 2020 00:00:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729309AbgC3G7f (ORCPT + 99 others); Mon, 30 Mar 2020 02:59:35 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:37560 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728489AbgC3G7e (ORCPT ); Mon, 30 Mar 2020 02:59:34 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id A0189230DE2128303A08; Mon, 30 Mar 2020 14:59:15 +0800 (CST) Received: from [127.0.0.1] (10.173.223.234) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Mon, 30 Mar 2020 14:59:09 +0800 Subject: Re: [PATCH -next] dmaengine: hisilicon: Fix build error without PCI_MSI To: Zhou Wang , , , References: <20200328114133.17560-1-yuehaibing@huawei.com> <5E815BDD.8050908@hisilicon.com> CC: , From: Yuehaibing Message-ID: <16ccc33f-d394-b59a-b3ee-65488595580f@huawei.com> Date: Mon, 30 Mar 2020 14:59:09 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <5E815BDD.8050908@hisilicon.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.173.223.234] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/3/30 10:39, Zhou Wang wrote: > On 2020/3/28 19:41, YueHaibing wrote: >> If PCI_MSI is not set, building fais: >> >> drivers/dma/hisi_dma.c: In function ‘hisi_dma_free_irq_vectors’: >> drivers/dma/hisi_dma.c:138:2: error: implicit declaration of function ‘pci_free_irq_vectors’; >> did you mean ‘pci_alloc_irq_vectors’? [-Werror=implicit-function-declaration] >> pci_free_irq_vectors(data); >> ^~~~~~~~~~~~~~~~~~~~ >> >> Make HISI_DMA depends on PCI_MSI to fix this. > > In ARM64, it will appear this compile error if PCI disables. > How about adding depends on PCI && PCI_MSI here? PCI_MSI depends on PCI, while PCI is not set, PCI_MSI will never be set so depends on PCI_MSI is enough. > > Best, > Zhou > >> >> Fixes: e9f08b65250d ("dmaengine: hisilicon: Add Kunpeng DMA engine support") >> Signed-off-by: YueHaibing >> --- >> drivers/dma/Kconfig | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig >> index 092483644315..023db6883d05 100644 >> --- a/drivers/dma/Kconfig >> +++ b/drivers/dma/Kconfig >> @@ -241,7 +241,8 @@ config FSL_RAID >> >> config HISI_DMA >> tristate "HiSilicon DMA Engine support" >> - depends on ARM64 || (COMPILE_TEST && PCI_MSI) >> + depends on ARM64 || COMPILE_TEST >> + depends on PCI_MSI >> select DMA_ENGINE >> select DMA_VIRTUAL_CHANNELS >> help >> > > > . >