Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1014505ybb; Wed, 8 Apr 2020 14:38:35 -0700 (PDT) X-Google-Smtp-Source: APiQypJcsK7WK8YFx8XgpS9twh4fTOufZQqGkCjNk1kgytJuHFYIh6NBBx7B4ihAu57GrYhte+MT X-Received: by 2002:a4a:271d:: with SMTP id l29mr7672566oof.18.1586381915756; Wed, 08 Apr 2020 14:38:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586381915; cv=none; d=google.com; s=arc-20160816; b=y8F6zyJokxJ0hnwyFTfHNbv6m0TP1ylqDjdvNBCay2cHvhOAHFoXixrgwVb2J3cREF WqlSfCUlZSIjfihYHh0S5tp/NUdC8vHiJYC+wBby4V3Lr+56tLLxYevpDQmAGiIbV59z uHnKSBuMAZDaKFFjh0n15JIdkx7SgykHqnlMdg0INaeYA6WQVUiIoZ10R9huiHGU97Af N9O9ZljNS2CC1ETFjj/GWazgo3X5iV7XxtQUM4d6hlKcmO8Z/Ot8fQMaE+Wg8NsZOffK /Hm1uBGVlniphLWHf3kSwnghtRtrFQU4YbGvGe/7qdzNNNKdOPIBX7z1x2MZ5Ob/ZGTb jbkw== 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=KgCVb3puuB7RJ3957F2DhtRz8fWunDU+K0DAEUq6MXc=; b=UlZ12FNEtPaVs6mvK9XgLgPm32Pnk2DpZytslDN4RPewWqy9dbsZlXD1FnYJ6SlAny ZfXAcS2Axb+eigc3fq1Y8exfpa14/cwCmkqFoMHwLGlsdWMPTckJYU2w0kiF31r/+kQy RAki/GoFWt7Q3iiIvwFv8L4OZT7+VYBs2EC6LZUUGxno9ByFlIHZBTpXSMkJQqrcZzzY Hq1uxVEFLoBTYbhXQmFoHBzHevpAIY927MZ0VCMoH5ae1nj6am7gZ6ot5NFWTUHRbZOP cJGK6ghkQwSZdixt1Qviow/GfVw5rruuIn/D64RFXOAIgHIlIw4jx279Jde75W8jEpwD y1og== 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 r184si2967647oig.35.2020.04.08.14.38.22; Wed, 08 Apr 2020 14:38:35 -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 S1729663AbgDHUGP (ORCPT + 99 others); Wed, 8 Apr 2020 16:06:15 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:43435 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726550AbgDHUGP (ORCPT ); Wed, 8 Apr 2020 16:06:15 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.129]) with ESMTPA (Nemesis) id 1MirfI-1iqWa42OcG-00errp; Wed, 08 Apr 2020 22:06:00 +0200 From: Arnd Bergmann To: Vinod Koul , Zhou Wang , Zhenfa Qiu Cc: Arnd Bergmann , Dan Williams , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dmaengine: hisilicon: fix PCI_MSI dependency Date: Wed, 8 Apr 2020 22:05:20 +0200 Message-Id: <20200408200559.4124238-1-arnd@arndb.de> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:0AbTa57IfhQyvCnJShbn24hgYs9aVvJsSjsP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fyuLT8d1GFkAerfEHSeQd6kVwg0xjj/DqzKY= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The dependency is phrased incorrectly, so on arm64, it is possible to build with CONFIG_PCI disabled, resulting a build failure: 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] 138 | pci_free_irq_vectors(data); | ^~~~~~~~~~~~~~~~~~~~ | pci_alloc_irq_vectors drivers/dma/hisi_dma.c: At top level: drivers/dma/hisi_dma.c:605:1: warning: data definition has no type or storage class 605 | module_pci_driver(hisi_dma_pci_driver); | ^~~~~~~~~~~~~~~~~ drivers/dma/hisi_dma.c:605:1: error: type defaults to 'int' in declaration of 'module_pci_driver' [-Werror=implicit-int] drivers/dma/hisi_dma.c:605:1: warning: parameter names (without types) in function declaration drivers/dma/hisi_dma.c:599:26: error: 'hisi_dma_pci_driver' defined but not used [-Werror=unused-variable] 599 | static struct pci_driver hisi_dma_pci_driver = { Change it so we always depend on PCI_MSI, even on ARM64 Fixes: e9f08b65250d ("dmaengine: hisilicon: Add Kunpeng DMA engine support") Signed-off-by: Arnd Bergmann --- drivers/dma/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index 98ae15c82a30..c19e25b140c5 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.26.0