Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp526039ybb; Sat, 28 Mar 2020 04:43:16 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtoD5C9i2UpmYxUakgHAisnGCE4YxG6caqo7q7+XKTbBbq/3DPQLInfcps91iE0bPRD8FG0 X-Received: by 2002:a4a:b141:: with SMTP id e1mr3115797ooo.54.1585395796035; Sat, 28 Mar 2020 04:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585395796; cv=none; d=google.com; s=arc-20160816; b=thePz1OIKKLTvBiJndGsECRkhsyMau5SrC+r5tZ64Apo+PiUIdNlCSx8AqfG3tqCQ3 v9S6/OOKZ+sr+nnQHEhBTLO4wruKFYdLGE4119vZSKTgDGqILlG/Yz+2ppO60blNBER6 OW96xnwyARQCOAQEvBleTNCUZ7oHVNl46drLWmr3kE0B1oBskhwprDmb5ARUSbSGx00j QZK99kuxokDftByqOw5UyDCz5nDxRWKXBvWmBruGQlHunMdfXN1B5mIhEagQU+UiveK0 HSIDZub90tA1vHhkOsZvmVZdNjPt1ugl0GLTku3s/heQUDI/uoiDhW3LqPVDBDnnq3Q4 qjSw== 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:mime-version :message-id:date:subject:cc:to:from; bh=pUENPK69494IuivzFVRof5p3CasM3yUbIOOw7OoIq88=; b=Jss/5mRHm9Jto6v3D61p9aKQGo977sqJazky8SjkJLvfKbdQCl1vawVCCt0X9df9fL VnikZi/1w6rY6R/hgnQvK721Dx9zrNeYm67ww1Pf0+oB3uBBL2XFUywt8WPi0O//a2eO TrJYirTSBTcMQtRD3aYCHURXOvRwrM4LsklKcRnT858gSFQHTvxHw2mXDrbz1p7ENbPn i3elaA/WRXWV5tI9bb/gro//QGdO9c6LO4PGZFdnjgOM5bGhEvjMr7HntXpbT/0J5Hex YYOecLHqwHw47HBovLzvBN2JEI4kvAmj342ZY7ZHt/GGgao3T2xSVVyg3hV/sCo49CED Cbgg== 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 i11si3843401otj.33.2020.03.28.04.43.01; Sat, 28 Mar 2020 04:43:16 -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 S1726282AbgC1Lmn (ORCPT + 99 others); Sat, 28 Mar 2020 07:42:43 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:41632 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726045AbgC1Lmn (ORCPT ); Sat, 28 Mar 2020 07:42:43 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 087B1A2EEB246432E288; Sat, 28 Mar 2020 19:42:39 +0800 (CST) Received: from localhost (10.173.223.234) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Sat, 28 Mar 2020 19:42:28 +0800 From: YueHaibing To: , , , CC: , , YueHaibing Subject: [PATCH -next] dmaengine: hisilicon: Fix build error without PCI_MSI Date: Sat, 28 Mar 2020 19:41:33 +0800 Message-ID: <20200328114133.17560-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 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 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. 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 -- 2.17.1