Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2808147pxu; Mon, 14 Dec 2020 11:20:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwB8ecvlwGl1kfUjPBhghbKQPk54a4FUq6k/Z2Ch18Rp7xWyTye9yoQkS5U04pi75z+8V9s X-Received: by 2002:a17:907:2111:: with SMTP id qn17mr23062451ejb.525.1607973646379; Mon, 14 Dec 2020 11:20:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607973646; cv=none; d=google.com; s=arc-20160816; b=meDsoVUtvpjMgMMzguEuj9DQeAYqxw35XmlQ3yGEVSwEJPUdwg/LaAToyhDQgYsaOh zdh67+vcW9mh2T+F5CLH2kqV6OVjpKQfQhI4a6NOifeFDKuSpU1nULEQpNY14+5jCibf bkgOKOOGMatCfi8s+H+u05Jh/VniTPlvBgca9O9A1Ul6PYMPuRiwYrUPdUsS/TmsNRTX BxviqgDaSFz39AohKCI5Q4sw0TnlCZq5gBFNTFEDXCbpR/HCPP2n+gxRTg7jzI4WKHqm eVnvKrdYB3QPEws3hVoJsXCHQgBcm+t9Rb+Siz8sqbZJD2u2hxHaKBoKtohduwlSJcjP 8dGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=4hfu4g998QyJumH5qNsmtigClYgrS+8g4bGjFjO9XxU=; b=y+q+TsduGrdQVZ+ftLMC1qTBjUhsIkku1pRxLnnqC+H91e7lcZemhKAGLXHK5yEc4X Rml4du5KK9m19J72P2T6RgAs1/aWqoaNTbvvLLWu2HOvbIfIcyMpsaSPpe7rjQ5IiOfz F36ucTSAUxT0JM81TJqrFAx4cxVWjzB0qkIg85MiDXXN3bUcYMU3xAmRS3PFl4v31I12 4ihA0gpX4Q7mpaomKSctVHTgU5a/Cbem5n7l+uWcOVXANd9Tmdi3QZyIHHrdSDGaWM4C 8EXIwKqaS4YiJBfkutAtxePRpjjIQYRvVRJiSVbmxZfI7fDfyTVfv9UwnqsH0jsb7zuT UJYg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d4si3072086ejb.594.2020.12.14.11.20.20; Mon, 14 Dec 2020 11:20:46 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502690AbgLNTJJ (ORCPT + 99 others); Mon, 14 Dec 2020 14:09:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:46226 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408590AbgLNRhL (ORCPT ); Mon, 14 Dec 2020 12:37:11 -0500 From: Greg Kroah-Hartman Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Randy Dunlap , Eli Cohen , Parav Pandit , "Michael S. Tsirkin" , Jason Wang , virtualization@lists.linux-foundation.org, Saeed Mahameed , Leon Romanovsky , netdev@vger.kernel.org, Sasha Levin Subject: [PATCH 5.9 032/105] vdpa: mlx5: fix vdpa/vhost dependencies Date: Mon, 14 Dec 2020 18:28:06 +0100 Message-Id: <20201214172556.826040460@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201214172555.280929671@linuxfoundation.org> References: <20201214172555.280929671@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit 98701a2a861fa87a5055cf2809758e8725e8b146 ] drivers/vdpa/mlx5/ uses vhost_iotlb*() interfaces, so select VHOST_IOTLB to make them be built. However, if VHOST_IOTLB is the only VHOST symbol that is set/enabled, the object file still won't be built because drivers/Makefile won't descend into drivers/vhost/ to build it, so make drivers/Makefile build the needed binary whenever VHOST_IOTLB is set, like it does for VHOST_RING. Fixes these build errors: ERROR: modpost: "vhost_iotlb_itree_next" [drivers/vdpa/mlx5/mlx5_vdpa.ko] undefined! ERROR: modpost: "vhost_iotlb_itree_first" [drivers/vdpa/mlx5/mlx5_vdpa.ko] undefined! Fixes: 29064bfdabd5 ("vdpa/mlx5: Add support library for mlx5 VDPA implementation") Fixes: aff90770e54c ("vdpa/mlx5: Fix dependency on MLX5_CORE") Reported-by: kernel test robot Signed-off-by: Randy Dunlap Cc: Eli Cohen Cc: Parav Pandit Cc: "Michael S. Tsirkin" Cc: Jason Wang Cc: virtualization@lists.linux-foundation.org Cc: Saeed Mahameed Cc: Leon Romanovsky Cc: netdev@vger.kernel.org Link: https://lore.kernel.org/r/20201128213905.27409-1-rdunlap@infradead.org Signed-off-by: Michael S. Tsirkin Acked-by: Jason Wang Signed-off-by: Sasha Levin --- drivers/Makefile | 1 + drivers/vdpa/Kconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/Makefile b/drivers/Makefile index c0cd1b9075e3d..5762280377186 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -145,6 +145,7 @@ obj-$(CONFIG_OF) += of/ obj-$(CONFIG_SSB) += ssb/ obj-$(CONFIG_BCMA) += bcma/ obj-$(CONFIG_VHOST_RING) += vhost/ +obj-$(CONFIG_VHOST_IOTLB) += vhost/ obj-$(CONFIG_VHOST) += vhost/ obj-$(CONFIG_VLYNQ) += vlynq/ obj-$(CONFIG_GREYBUS) += greybus/ diff --git a/drivers/vdpa/Kconfig b/drivers/vdpa/Kconfig index 358f6048dd3ce..6caf539091e55 100644 --- a/drivers/vdpa/Kconfig +++ b/drivers/vdpa/Kconfig @@ -32,6 +32,7 @@ config IFCVF config MLX5_VDPA bool + select VHOST_IOTLB help Support library for Mellanox VDPA drivers. Provides code that is common for all types of VDPA drivers. The following drivers are planned: -- 2.27.0