Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp779488ybj; Thu, 7 May 2020 07:29:27 -0700 (PDT) X-Google-Smtp-Source: APiQypJDha0yHiohwi6wHXBrQfTV9MvvjHRAJHYcNXhOUY3VPtuqUqY/7AY1FpcAKbX7y3mwVjz1 X-Received: by 2002:a17:906:7c42:: with SMTP id g2mr12625737ejp.328.1588861767728; Thu, 07 May 2020 07:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588861767; cv=none; d=google.com; s=arc-20160816; b=nt80zXeQlYmIFUbyctBEACub0vnSZbjX7E0jF3kT1bWlh4ENij3+aH0BOyA9p5r1UQ eIhUmA4i8P4eu5J5a4Ix4++ohJX0T1ER02eBt65U/UiJVVTzUiWg6NdONJPyzW7b0ryk iwdEGQAHyyBajA9RB/A1P8SPTkXlWcVB4Ay5YDjWkttQRUfFbNfup18wLYj8n0kPnQrk f4NjuuoWe0909fcp4KWcnBY6BWNBpKiT8KnBvHDEvxMBR9Y86qGRlkB5lyhg66D2m4u4 cFcOK6mLM1wH0ML63VNXs8o+4irOoPipg8k4bM+rX07xStOhn+ZUOClZXs2bb2q+6FI8 XNZA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IJAk03DXe9DxlHlDTEWG1loF65mqRxK160c20RLQU4c=; b=RgtYxSlf6xBQTF9K3Cc4MIaGPz/T+0npkFxY4/BFmGXH9WU+7umSFrGTj83z+mg3Bj KD35dqk58qERhTjoksgh8mxbSR8UUNpOquQXSE+gS/gTtvZ5YEyrInBA2u5G5BB2M0dP hhsaFr0vfszTDQR+iyQarpKxMWbBAO3maGqw2OkQGUzdgA3dqpUCsMPCJzxLKlzotIXw fdDMBZEt8zD8HocP1x8C3QhjSO4uBc2fx67xxtEqGGLLV4NFqYGUWZ2w4g1bT/Q3sKi5 jwACDKfSl3/Q0q6OUcQxdasmSEgmbi4dXY3OJUt6PnjeMncHAVUlfvpYKKVuQZQKxvtf bs0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="iRbLX/xA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si3236644edq.562.2020.05.07.07.29.02; Thu, 07 May 2020 07:29:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="iRbLX/xA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726712AbgEGO1d (ORCPT + 99 others); Thu, 7 May 2020 10:27:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:53216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726515AbgEGO1b (ORCPT ); Thu, 7 May 2020 10:27:31 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3D44F20870; Thu, 7 May 2020 14:27:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588861650; bh=VujpZ264NN50hi2Dmy+VET+3Nlfsfe7McoyO1W4r9dk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iRbLX/xAEYV5M0zozQXFRMAj24y4xM6mV7oZUAA21m2BcXJE3mCvZa4ZB9bMJCNMu qbt3bAI/ycV4JuWHb7HE4kaPKNGkWY/AqwNw/xHW5UGgixrxXN1TlRD3OBiOMf4Os3 KfTj9Rtsept/ZX6EagkZWxFcRaQyBEUfPJgQsL/A= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: YueHaibing , Vinod Koul , Sasha Levin , dmaengine@vger.kernel.org Subject: [PATCH AUTOSEL 5.6 03/50] dmaengine: hisilicon: Fix build error without PCI_MSI Date: Thu, 7 May 2020 10:26:39 -0400 Message-Id: <20200507142726.25751-3-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200507142726.25751-1-sashal@kernel.org> References: <20200507142726.25751-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing [ Upstream commit ae148b43516d90756ff8255925fb7df142b0c76e ] 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 Link: https://lore.kernel.org/r/20200328114133.17560-1-yuehaibing@huawei.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index 5142da401db3f..c7e1dfe81d1e6 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.20.1