Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1019830pxk; Fri, 18 Sep 2020 01:24:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg0PqZifc1ZsxK0jGeXGeY2S1TrBYADgWSDaLeyY9i+DUp7ByJT6KPTgQSXI4uTQURcTk+ X-Received: by 2002:a50:fd10:: with SMTP id i16mr38336559eds.54.1600417462709; Fri, 18 Sep 2020 01:24:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600417462; cv=none; d=google.com; s=arc-20160816; b=oy05CtefbZAk/A4JwfbJ12WD8l8CdPDzPuo4XfmeoqGDIhdmuGon703RfazuwGGz9H 3Jr2RfbfrotpEt6JeninRj0fukBLqXJ0O3mKhjbC4KnH7e+NqjNWyDqfiCyGZdRUUAWp YIVG2a09pvKFGwJnIHcs35mLcfHRQYrFqce0JVenxFM4EsRIjMtRqiXL1Tw7IM6SWtoQ +8JKeSR9DR6GH1SJivIZN9+ekiy7wL2ULaBsOfZljDXhnLNs5/fBFmkuwD9AAzwr3glq yNs/7usmIjsaEdZ31lklryx8FELStFIgwx/kA9q1MrVz0WCwcA6bF4ceoUe35LcR/ibY B4Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=pBHibeow0r0oKZv+JRqOMTobQSp+idOlK/08lYwSzbA=; b=pNYRHBlJ+ePVkKrEEUt0bhl7fkPiB5b4othR9LeSocyYeO2hZneYiE0vCjnOC6FD9T VUJN/kHL5jRMZ/FKR8RGQ9l6YD9d97GXsN7EgnMKQL7YBursY4pVUC3pwTlZ2Zovc2z0 iTKNyGihdNKiyEgGV76SjvpLX4zNMSXaGq6c4H/cuj+uV7F8ImUgsqNT0naMvcSwf4qo /Kn/9yeAzhjSP+TSlDVtyKfug1wLCmhEO4A1N9RQqMnKjrFnnFoipkqy3KlGqZc/lQJq hVCtd9rB7tRzlOEYWR1IQJI61+A56E8c+q6lM9s4DK5ytkdQedjeyMTo/3nQheKN4rhF xlTg== 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o12si1584314edq.190.2020.09.18.01.23.59; Fri, 18 Sep 2020 01:24:22 -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; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726301AbgIRIWv (ORCPT + 99 others); Fri, 18 Sep 2020 04:22:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:47458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726064AbgIRIWv (ORCPT ); Fri, 18 Sep 2020 04:22:51 -0400 Received: from localhost (unknown [213.57.247.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 77A472176B; Fri, 18 Sep 2020 08:22:49 +0000 (UTC) Date: Fri, 18 Sep 2020 11:22:45 +0300 From: Leon Romanovsky To: Randy Dunlap Cc: virtualization@lists.linux-foundation.org, LKML , "netdev@vger.kernel.org" , "Michael S. Tsirkin" , Jason Wang , Saeed Mahameed Subject: Re: [PATCH v3 -next] vdpa: mlx5: change Kconfig depends to fix build errors Message-ID: <20200918082245.GP869610@unreal> References: <73f7e48b-8d16-6b20-07d3-41dee0e3d3bd@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <73f7e48b-8d16-6b20-07d3-41dee0e3d3bd@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 17, 2020 at 07:35:03PM -0700, Randy Dunlap wrote: > From: Randy Dunlap > > drivers/vdpa/mlx5/ uses vhost_iotlb*() interfaces, so add a dependency > on VHOST to eliminate build errors. > > ld: drivers/vdpa/mlx5/core/mr.o: in function `add_direct_chain': > mr.c:(.text+0x106): undefined reference to `vhost_iotlb_itree_first' > ld: mr.c:(.text+0x1cf): undefined reference to `vhost_iotlb_itree_next' > ld: mr.c:(.text+0x30d): undefined reference to `vhost_iotlb_itree_first' > ld: mr.c:(.text+0x3e8): undefined reference to `vhost_iotlb_itree_next' > ld: drivers/vdpa/mlx5/core/mr.o: in function `_mlx5_vdpa_create_mr': > mr.c:(.text+0x908): undefined reference to `vhost_iotlb_itree_first' > ld: mr.c:(.text+0x9e6): undefined reference to `vhost_iotlb_itree_next' > ld: drivers/vdpa/mlx5/core/mr.o: in function `mlx5_vdpa_handle_set_map': > mr.c:(.text+0xf1d): undefined reference to `vhost_iotlb_itree_first' > > Signed-off-by: Randy Dunlap > Cc: "Michael S. Tsirkin" > Cc: Jason Wang > Cc: virtualization@lists.linux-foundation.org > Cc: Saeed Mahameed > Cc: Leon Romanovsky > Cc: netdev@vger.kernel.org > --- > v2: change from select to depends on VHOST (Saeed) > v3: change to depends on VHOST_IOTLB (Jason) > > drivers/vdpa/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- linux-next-20200917.orig/drivers/vdpa/Kconfig > +++ linux-next-20200917/drivers/vdpa/Kconfig > @@ -31,7 +31,7 @@ config IFCVF > > config MLX5_VDPA > bool "MLX5 VDPA support library for ConnectX devices" > - depends on MLX5_CORE > + depends on VHOST_IOTLB && MLX5_CORE > default n While we are here, can anyone who apply this patch delete the "default n" line? It is by default "n". Thanks > help > Support library for Mellanox VDPA drivers. Provides code that is >