Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2405063pxb; Tue, 23 Feb 2021 06:25:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrJs0tt+MgLcG0rAWeIqWMaG9qC5HzTJJkCo+w7vPrXExxKIXCuZXOpjAIhvT8XQ7Hn3b4 X-Received: by 2002:a17:906:1fd2:: with SMTP id e18mr25951055ejt.398.1614090339446; Tue, 23 Feb 2021 06:25:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614090339; cv=none; d=google.com; s=arc-20160816; b=1JXZP64Sob5359EGPtANOfpSLA/GOspUqIDA8+Y0IsC/mCCToBhsOBP53zV6xIlau/ 2RDARW14EELlNcKcWNTJgKptKmrwiu1ZH3PJQbwwBQ4t6fVWbwtbEa62kmV37RWegqYG z6g3XOh77yp1mRo/LL8U6hIBMrWgpYmbxH/5WdqwWOp5E5ub6dTA3/A0JRMOdubB5272 DXWZHtJcx0e+6znvBjfcfLeeEINDxH+HN8YbBg8RyKhaQ24KT31KtylStJjfoZuVlbwl i/1491FQ/UBl9nVXomwQTyrUQsDpK4m5/+mZQRFkS9pgFHY6F3IbLaGrw6NqsDSUdebH DyUA== 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:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Q69gPRrn3VGJ6qwrUnoht5ndKfARe2imxD6F3vClhDE=; b=D4SyMk4tabWQz9yU7ovJCK78dOIHsiwX7mKf1fahfESo+XYWkUYNzy11ZeypaN7hKx lr5lLYTylT89ADT1+XHsP/dsUk4eOvm+eM8sDspu1VhB6SQDrScyTuYStgreg//DhF4K 2hLKEHjPJanPobP0k9UhroWemzRNR43v4DONi8M3L9hTsPtWGCd29LaxzKrFPyXstfAw 2B1b6W6TulJSgMpds8HXLQpzwa+Pm+JoMM4I97Id0LWlvlSuF+xUBJtgI+0Vpt3Kw/is Iv4i1xGxV1Ume02RBpAYz7hrMYhlwU78FdjXygXcQTC2Q3S8BBGuCRrtlQOrsA0a3Ufo bHRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=eYviLeYM; 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 v1si2285846ejg.518.2021.02.23.06.25.10; Tue, 23 Feb 2021 06:25:39 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=eYviLeYM; 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 S232618AbhBWMoE (ORCPT + 99 others); Tue, 23 Feb 2021 07:44:04 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:16915 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232564AbhBWMoC (ORCPT ); Tue, 23 Feb 2021 07:44:02 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 23 Feb 2021 04:43:22 -0800 Received: from mtl-vdi-166.wap.labs.mlnx (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 23 Feb 2021 12:43:20 +0000 Date: Tue, 23 Feb 2021 14:43:17 +0200 From: Eli Cohen To: "Michael S. Tsirkin" CC: , , , , Subject: Re: [PATCH] vdpa/mlx5: Extract correct pointer from driver data Message-ID: <20210223124316.GA171074@mtl-vdi-166.wap.labs.mlnx> References: <20210216055022.25248-1-elic@nvidia.com> <20210223073225-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210223073225-mutt-send-email-mst@kernel.org> User-Agent: Mutt/1.9.5 (bf161cf53efb) (2018-04-13) X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1614084202; bh=Q69gPRrn3VGJ6qwrUnoht5ndKfARe2imxD6F3vClhDE=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To:User-Agent: X-Originating-IP:X-ClientProxiedBy; b=eYviLeYMssEBINi50XEdgGwgrrU+Thcaw7JpRM7PM2wjN37BIEFYjItljn2t5EYm7 U0mb37Xa3VHWn6Fgx1XUnV5X2jYk9u817w85wUwpOKwbphDuv3iPaZMkdEKxS34vnq 2Qa/2AUmmWev0aEJaqv2lLx29UOzYgfWYA0x0t8FakO412bknYJzNdIxMX2BdXInv1 SiT4C4/GnHZ9q2tm/OX4cHILz/kMXgYH7bm5x4k5mCT4k5mgDD/DPBetmJsKTq6Hqz O4NPbXGRklZYuTK56bE0HfIM1TmG0lH5b3Jk7Ph0rTciCjPslRIXqm2s+cSgLmieZm PuVsl5oC0CqJw== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 23, 2021 at 07:32:49AM -0500, Michael S. Tsirkin wrote: > On Tue, Feb 16, 2021 at 07:50:21AM +0200, Eli Cohen wrote: > > struct mlx5_vdpa_net pointer was stored in drvdata. Extract it as well > > in mlx5v_remove(). > > > > Fixes: 74c9729dd892 ("vdpa/mlx5: Connect mlx5_vdpa to auxiliary bus") > > Signed-off-by: Eli Cohen > > Sorry which tree this is for? Couldn't apply. > Drop it. The patch that adds support for management bus implicitly addresses the issue. > > --- > > drivers/vdpa/mlx5/net/mlx5_vnet.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.c b/drivers/vdpa/mlx5/net/mlx5_vnet.c > > index 6b0a42183622..4103d3b64a2a 100644 > > --- a/drivers/vdpa/mlx5/net/mlx5_vnet.c > > +++ b/drivers/vdpa/mlx5/net/mlx5_vnet.c > > @@ -2036,9 +2036,9 @@ static int mlx5v_probe(struct auxiliary_device *adev, > > > > static void mlx5v_remove(struct auxiliary_device *adev) > > { > > - struct mlx5_vdpa_dev *mvdev = dev_get_drvdata(&adev->dev); > > + struct mlx5_vdpa_net *ndev = dev_get_drvdata(&adev->dev); > > > > - vdpa_unregister_device(&mvdev->vdev); > > + vdpa_unregister_device(&ndev->mvdev.vdev); > > } > > > > static const struct auxiliary_device_id mlx5v_id_table[] = { > > -- > > 2.29.2 >