Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp188840pxu; Tue, 6 Oct 2020 23:50:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxphaD0niWLLGr5mdKFErxPHVGOeBjt0Zttx4wdZC5I6dsM4lKBwVHmvYUFX5o2bPygbIuh X-Received: by 2002:a17:906:7f82:: with SMTP id f2mr1817966ejr.264.1602053421188; Tue, 06 Oct 2020 23:50:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602053421; cv=none; d=google.com; s=arc-20160816; b=RWWV63qwsYALPrMdKS17K1VIJGfHucANItQptFi41klp+EmoIx8UMUihaOy+EbeMDx qSRNcSMb3U8OJ5kYZEXTG9H00VCmQKYGHcTCeQDAVS3uQ9PSzVfbRvHQkV/EOrdajrQN 3ufOSi56Na+9fKh6VILQ3XubmuAykYZTLlJvHSTBU0RrRG/ZzNfDcHtW+S8SeIMuLzU/ C7vTs8CfDBX0MO3s3l/FBXZjmv9Kk0oJpE+3ThTPCUguJEl0l7HcXjHwbO4ZRWWLf3Qq wLvlfj2QEw/lFr62j60kAtKerbdAJTLeQr44epd1JVpUpj1ZMeJqdTWPLNGc2acqYzX1 5lsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=vnyinnQREiRArIfp9ytJFBUdYLsYXb3A1DrGRuaZsM4=; b=uaB83/sH7LDhbgN5bnriTfakwbE6E6cPn3rR9lCowteGUPdOSD6N+SYu7B0NG86/QV L/GG9GvLyp560BgqEUZMUEz0G9TYJnP2V5uLEXHtJRI4UKrtYMEE54XUQzgfwIzW+PNy oObTyW9YFqmlYWd8Tt12kFU+g9toPT733TyfIi8S/e7qSq5RU6gx0HGJqXqy/CAi0tu8 26oxvJ+rqMvLlkW8CheXD/EbJTX5Yh0xwg+3fHsS2TC70v1DgZHkpHiN2r6RLU2djaZd dmo7EPkwuuwTrwo52nzKXkVRpmYhUKDqIjTcm8RV+xLUL/EnaTIUfV/qEV4agJIpX2I8 Qvug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=fSu6d00x; 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jo19si865805ejb.252.2020.10.06.23.49.57; Tue, 06 Oct 2020 23:50:21 -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=@nvidia.com header.s=n1 header.b=fSu6d00x; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727479AbgJGGkS (ORCPT + 99 others); Wed, 7 Oct 2020 02:40:18 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:10169 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbgJGGkR (ORCPT ); Wed, 7 Oct 2020 02:40:17 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 06 Oct 2020 23:38:29 -0700 Received: from mtl-vdi-166.wap.labs.mlnx (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 7 Oct 2020 06:40:15 +0000 Date: Wed, 7 Oct 2020 09:40:11 +0300 From: Eli Cohen To: "Michael S. Tsirkin" , Jason Wang , , , CC: , Subject: [PATCH] vdpa/mlx5: Fix dependency on MLX5_CORE Message-ID: <20201007064011.GA50074@mtl-vdi-166.wap.labs.mlnx> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline User-Agent: Mutt/1.9.5 (bf161cf53efb) (2018-04-13) X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1602052709; bh=vnyinnQREiRArIfp9ytJFBUdYLsYXb3A1DrGRuaZsM4=; h=Date:From:To:CC:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:User-Agent:X-Originating-IP:X-ClientProxiedBy; b=fSu6d00xpIVylKDqerp4ILMfXST/wTc2zMCzjFsmRs7EbfzdKVGNNriu53B+tNuha Q/oWXt5CPbLcW9tB7vJKMyPJW0SrgIEEtqVI3m8dw7AktszlKM6NB5eF8KMppYdb+V 9ZfNTtuNZfZvdY14rNwOs2MQlHrOwFcjSy+xdfvJMEqr1IO3PsPyHPpsO47J+L2qgL wrUmvoHpLJ9gdcoKhCuJiQDNNDRopGM2mlexTZmoAT48GaI0tcmWfAsHNzBj/BRVkl 9QMjoPARinmOOrjUaOLvgBqhn2RvpUuE+Kzz0kyuLzYgob/fVRCQmC+ySWSsn/uzpa T4rmHQl+HH5HA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove propmt for selecting MLX5_VDPA by the user and modify MLX5_VDPA_NET to select MLX5_VDPA. Also modify MLX5_VDPA_NET to depend on mlx5_core. This fixes an issue where configuration sets 'y' for MLX5_VDPA_NET while MLX5_CORE is compiled as a module causing link errors. Reported-by: kernel test robot Fixes: 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5 device")s Signed-off-by: Eli Cohen --- drivers/vdpa/Kconfig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/vdpa/Kconfig b/drivers/vdpa/Kconfig index a8c7607fdc90..1872dff1d3c6 100644 --- a/drivers/vdpa/Kconfig +++ b/drivers/vdpa/Kconfig @@ -29,9 +29,7 @@ config IFCVF be called ifcvf. config MLX5_VDPA - bool "MLX5 VDPA support library for ConnectX devices" - depends on MLX5_CORE - default n + bool help Support library for Mellanox VDPA drivers. Provides code that is common for all types of VDPA drivers. The following drivers are planned: @@ -39,7 +37,8 @@ config MLX5_VDPA config MLX5_VDPA_NET tristate "vDPA driver for ConnectX devices" - depends on MLX5_VDPA + select MLX5_VDPA + depends on MLX5_CORE default n help VDPA network driver for ConnectX6 and newer. Provides offloading -- 2.28.0