Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2616819ybt; Mon, 22 Jun 2020 02:59:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfsJFR0oChGjzMaazCUmw0DNaZdvGLIp5hu4VZVWDnosVAG7P6JpvrMdlLOezLf86kuE4w X-Received: by 2002:a17:906:3745:: with SMTP id e5mr15052905ejc.19.1592819966585; Mon, 22 Jun 2020 02:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592819966; cv=none; d=google.com; s=arc-20160816; b=wxw2v8e3TchMy1ohVJ3s1QowXJ9UGZ1QqrQMZGxlrSuS0h3SRkoArHRkNI/cVnzIL2 83xAgjuc86xI/OfD/seUc8Ig/PFXhT3DgPDgZJyzfW/26QKsqoHqk7BGQgSusFzN1LtP btA/GBZOTKYNdYOaSGlQ0PxpTjuHtTHYE0IgjI7sSZC/3zWtJjxoPlaxi6e2a5s6YAGm g7DTcKhi1zUfy+QVv1vpoBAeDUFq/2N1YVXgHrYmasFhXVtsVYBXMqUQIk42vQ9CtzE9 XjMIRw2HF4C35l2w5TpYONVL0gjKUUTQ+v4cn84mnS3FRoB+HIal5Qj7wznXhXvVqz+/ Tfgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:in-reply-to :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=J3J1GK/1v24r8R8vBSVjEP1Qqwlwwoh+PJYXVdhCI1A=; b=cre2DsjPD0muQIT4VbfG3Db6bD8xteUOZB+FdFwqWIdnil23IALVuybHSnvJ77jAHj vid/p2p3EQCM3jcncaVJhb5N0AHTUJytRdJiGQEgj0HFgyQE57CXBr+2yMqEpyRW7SiL 74Ao7smyB/SMpwWDQu7343kxp7Pe3ttacvErvBewRY+NFA2j/F/3A+bk8ESN+nPpFt+5 HAJloLPFgz75vk71HUH+WVXm3MqmmzFeXDL2pGYwQiDvVltmgPlmQFDSmFErKs+q7lpS dsTNfOAJz306sgigTCmnRtJgCrsFfAWlOJWZdob1ttW43nmYaDcKcsvMcAOLZF9gvDBc IuWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ALwYf9U9; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si9620523edf.128.2020.06.22.02.59.04; Mon, 22 Jun 2020 02:59:26 -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=@redhat.com header.s=mimecast20190719 header.b=ALwYf9U9; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726736AbgFVJ5A (ORCPT + 99 others); Mon, 22 Jun 2020 05:57:00 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:55388 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726644AbgFVJ47 (ORCPT ); Mon, 22 Jun 2020 05:56:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592819818; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=J3J1GK/1v24r8R8vBSVjEP1Qqwlwwoh+PJYXVdhCI1A=; b=ALwYf9U93nFNEMsz/+Li9soi6lIcwwl7V+ibyrBDfUZpON86oiYk2th0VVVPYJdJAw4/W9 TXfVHR9fFOTpFVRIGTuoe5ip5GgDUsolp5r8CWesDYS5Od7c+Iw/KguaYFqZRXsxPYH1IU qmAozIva87Fc7e1/PpVKq8fvYsBMY4o= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-323-mFwUshu-OC2Ov1O5wyre8w-1; Mon, 22 Jun 2020 05:56:56 -0400 X-MC-Unique: mFwUshu-OC2Ov1O5wyre8w-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6C871464; Mon, 22 Jun 2020 09:56:54 +0000 (UTC) Received: from localhost (ovpn-115-184.ams2.redhat.com [10.36.115.184]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1987F7C1FD; Mon, 22 Jun 2020 09:56:50 +0000 (UTC) Date: Mon, 22 Jun 2020 10:56:49 +0100 From: Stefan Hajnoczi To: Wang Qing Cc: "Michael S. Tsirkin" , Jason Wang , Paolo Bonzini , Jens Axboe , virtualization@lists.linux-foundation.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2] drivers/block: Use kobj_to_dev() API Message-ID: <20200622095649.GA6675@stefanha-x1.localdomain> References: <1592618024-28990-1-git-send-email-wangqing@vivo.com> MIME-Version: 1.0 In-Reply-To: <1592618024-28990-1-git-send-email-wangqing@vivo.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 20, 2020 at 09:53:43AM +0800, Wang Qing wrote: > Use kobj_to_dev() API instead of container_of(). >=20 > Signed-off-by: Wang Qing > --- > drivers/block/virtio_blk.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Stefan Hajnoczi --envbJBWh7q8WU6mo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAl7wgGEACgkQnKSrs4Gr c8jiqwf+NDwvJrqVQacgMbfslm7ctFkXeq127ECemWo6fBJHJ0v01REWrK2Uw9U+ envftxXJjZBtRea5aPUC2NBHfyVQoBuM3q5F2vbmSOOtOv+BHq0oDp16mUqsUD7k Jg//Y4VKXMFykxC2cHsq1AkyJxUvvU1eLyjs0T6AtbtW7rFysXeT95p7n0bd72ah G9yxU3htdGZUWygJKbCPYZXM/4uCfZpuiMq0GFdyBNH27aP/XvuD/pRJ4ag5Q9JZ wq5JtUbs7EqdAGQokCfY0/tk6emgN0MW7GPClOUA0kBcCUoOZivS6/igsjk5FF22 UzBcDoKiDUf2nZhjEPcv1Wqqjkd5xw== =PUEf -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo--