Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4162459ybl; Mon, 26 Aug 2019 06:28:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrSl+IkS6wpyPjVOxrEF6xs3jyvRlXxpatfIx1jntwML9W7ney7m6RVi+VUohAnCPfp5M8 X-Received: by 2002:a63:61cd:: with SMTP id v196mr16711121pgb.263.1566826117423; Mon, 26 Aug 2019 06:28:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566826117; cv=none; d=google.com; s=arc-20160816; b=QOTm1rqJ7tiBxUCV3olnQ21m9BLyyTtXcxb9vQY9eQ1CO/gXiZfTG/9uEBxMlqDMro thz7DPc+qNe/QebynR73HcRBOOLIEmAOgOvtfHKqjRUSlPXOThi9zdMomxokkBAzMOFK kqfLYoUqFaFOUn+CebVxZ449Bdtfxzj5ZMzkJywNlD2BQNXjK1RKG7FBC9xnwCQ/w9k6 IfK/antur+rmfm0T5uQ1ba2qquNQH78gGGYI9GkP9liJNIuJ7LVUdUyVzR5NPySmCEsp SAaTwoK0T6ufrgLYBM9WGQ/QUUvb/xt2wSqrzl9+AWQUYl+aKSR9Sisutstij5JyNki2 t4xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6+cT40vcpt0yPmqEs6OgzIznlJjpQO5PT/bY5x4vN20=; b=sDwYse5Bq9KHNnyWiglJF6xP6BnKlJG6f6CihLmm9Wu47akK4YwkfEhlEqdffFvc27 55zLuuq2sPT0HaAErLE6XdV/vtoKT0bmuBhWoGX9V2DsyZjscx6w0HeOvbZ9SZMfqaWh yN0S85UB96aP+DUjOiseoNzZ/JP4YPUIOeyaoorSPxlgOF57Auw6VABWtX19j59KDyet 2CXRg0C0qJ+aCY+QI7UX6PkCkTnubMFiJX+qDFf9T5PRPkebm2FMMW6OR+3AGaBl1M38 a4HPB9UHoVlUuu4/p48WyJseSyvJ3ff6px1xFrdCUzVJVVS5vh0S4i92i7j9GjigS6+H RC/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si9614008pli.3.2019.08.26.06.28.22; Mon, 26 Aug 2019 06:28:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731120AbfHZNGL (ORCPT + 99 others); Mon, 26 Aug 2019 09:06:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46606 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730241AbfHZNGK (ORCPT ); Mon, 26 Aug 2019 09:06:10 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BD1C6307CDD1; Mon, 26 Aug 2019 13:06:10 +0000 (UTC) Received: from horse.redhat.com (unknown [10.18.25.158]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3993C4524; Mon, 26 Aug 2019 13:06:08 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id C1B7C22017B; Mon, 26 Aug 2019 09:06:07 -0400 (EDT) Date: Mon, 26 Aug 2019 09:06:07 -0400 From: Vivek Goyal To: piaojun Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org, kbuild test robot , kvm@vger.kernel.org, miklos@szeredi.hu, virtio-fs@redhat.com, Sebastien Boeuf Subject: Re: [Virtio-fs] [PATCH 04/19] virtio: Implement get_shm_region for PCI transport Message-ID: <20190826130607.GB3561@redhat.com> References: <20190821175720.25901-1-vgoyal@redhat.com> <20190821175720.25901-5-vgoyal@redhat.com> <5D63392C.3030404@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5D63392C.3030404@huawei.com> User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Mon, 26 Aug 2019 13:06:10 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 26, 2019 at 09:43:08AM +0800, piaojun wrote: [..] > > +static bool vp_get_shm_region(struct virtio_device *vdev, > > + struct virtio_shm_region *region, u8 id) > > +{ > > + struct virtio_pci_device *vp_dev = to_vp_device(vdev); > > + struct pci_dev *pci_dev = vp_dev->pci_dev; > > + u8 bar; > > + u64 offset, len; > > + phys_addr_t phys_addr; > > + size_t bar_len; > > + char *bar_name; > > 'char *bar_name' should be cleaned up to avoid compiling warning. And I > wonder if you mix tab and blankspace for code indent? Or it's just my > email display problem? Will get rid of now unused bar_name. Generally git flags if there are tab/space issues. I did not see any. So if you see something, point it out and I will fix it. Vivek