Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2003709ybb; Sun, 29 Mar 2020 19:41:06 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvmX/25a51R7+qQ1IcndL69wOfszYR7fTrpNN64QH6q9CYydtvF2sALR/vAKxKTu60Hcgs+ X-Received: by 2002:a05:6830:2147:: with SMTP id r7mr7450670otd.59.1585536066645; Sun, 29 Mar 2020 19:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585536066; cv=none; d=google.com; s=arc-20160816; b=Ng1sOQ7j7EIzGluJiB4t6Wf0H0Sju/3spdrYM23wi50B8vQh6FQsD6lmsn5GGnr4wd 2FyKnx2c1lWta4qn929/VuYfUeWpdlzYkkzHyZ9UL+ReGT0UfXW/dG5ny0HENQ0gHVLV w0XH9BVzlJgMGQ5R/02KGb3UUKRPfuGSJ46c+vsAZfTjrczTBl5mW7wVlQiqJs7d9oC4 BGmUFLTucjYKNWBaeU6QgIoK3gWob46ATOaRgu7XVl8r9gMYIWPwUW4cKek7Rxltmz04 ddZMnJ1opMmEomxPiPS/V1yx7PpKCMHeXIqbQqq1SC7iN02EE/Vv02D25hX4pzXY6JNa gTkA== 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=yrYN7qdSjTUvQmMzBGoEmbowtBO0drSoUjkbfwJfJS8=; b=cllLw6z2qAqAeDiz3nAJFVyea4BPKL1iOLrTD9DiLcStD104DxjPm3/0zroPd6b/0q sB1nS+dBuv6w3t+WMc2wHkO+LWacgUoOx2G/I4vrGrGfasarbNBnQ8LaxyIYr369i2q8 +cIY5ndkonIag7AaOx7w3DJ8+/zBfMQe7KVxTTydkau3qFR01OvGHkLWy7fbi86MPM7k fw4e6zc9pjAu/49n8cdORUR79QLaqYllJxUsRJHTujYFb3X3Z4bN/pqe/bzCHqVlUAKx 1j77EoIGjM4DwWj8c79WuC5TfatWDe/Cn1mIqCi2HMm61lLYo9wXA2p1NsX2JARHOqlC KhZw== 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 c9si8210675ots.110.2020.03.29.19.40.53; Sun, 29 Mar 2020 19:41:06 -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 S1729184AbgC3Cjk (ORCPT + 99 others); Sun, 29 Mar 2020 22:39:40 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:55958 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728865AbgC3Cjk (ORCPT ); Sun, 29 Mar 2020 22:39:40 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id B868078E2C4DE649DC3C; Mon, 30 Mar 2020 10:39:35 +0800 (CST) Received: from [127.0.0.1] (10.63.139.185) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Mon, 30 Mar 2020 10:39:25 +0800 Subject: Re: [PATCH -next] dmaengine: hisilicon: Fix build error without PCI_MSI To: YueHaibing , , , References: <20200328114133.17560-1-yuehaibing@huawei.com> CC: , From: Zhou Wang Message-ID: <5E815BDD.8050908@hisilicon.com> Date: Mon, 30 Mar 2020 10:39:25 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20200328114133.17560-1-yuehaibing@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.63.139.185] 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/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? 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 >