Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp594579pxu; Thu, 15 Oct 2020 11:25:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoM4xABJEpkQ2OWtttnjtDYBX+KTVMk+3cSm2mQdxAecAjQ03ul0vQlVDrfvxgRLyUS9F4 X-Received: by 2002:a17:906:304f:: with SMTP id d15mr6129740ejd.11.1602786351899; Thu, 15 Oct 2020 11:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602786351; cv=none; d=google.com; s=arc-20160816; b=SSLNuNnJRORfUcCEoIGhQIAw3j3lN5KVPZ/HEbKbxvyXpX9tXy8xkp/tgKTt1hXUSW l/tolV7aeaotZNs1yMpVMfdHm18UnrzLlFr5zG4OXMNZbHC9NYk0k47uIIicN7AVx8vz rnRd3FzAScPnH24o05IEn3GvqSKiaqCJBlITGZ4cQHoc3qzOlFWxqQHN3LU+MQZtfcr3 yekBjvIkIlVsp+/0pgFwfMzsSyWCWemeBHL3Y202muWeXlK5b3lAli8i6uWmWYDztryl ITbk2e7+cOFDg9M8hI51oGWixS+sbxyGXQGB/yfxfC42WEeKDh/x+BTVuOrW0qCrS18r iyFw== 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:reply-to:message-id:subject:cc:to:from:date; bh=uqaXsa8+InO4gQZE74qLJ8JK0rA/BJmUhZakoQtxocs=; b=JV++wIzxeEz76ydDTtL6BDNfg5MmP7T1cNFpvLvkGfJaKatP26tNqoxtBM93bZNe+Z 8+lymjwWF4LPhxQ3AecQz79m97qHhQq5sulLkyaD+3ftWj/xuPzFhzlWl7wESgJUtLfR PHmkX+FmhCxGNFexIuSlvn2Qo7HdCpwA2PP0pJ1IzjBdsINM0H36Aq5T1QmBE5dpvdBD ckpnaP8/+OHswzdHEcIcOPZFB7hjuoTdnxEULQtLmzsZaPLHqpSlus++5bZZ/xhZH3sn rqgyWygzEYqUpg+zwqP8aAk/W49XZZV3DoViX5BZJagONWrnLX+TgsJjSXBEx28zQ8T9 DBLw== 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=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y16si2762701edm.444.2020.10.15.11.25.21; Thu, 15 Oct 2020 11:25:51 -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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730255AbgJOIfY (ORCPT + 99 others); Thu, 15 Oct 2020 04:35:24 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:45889 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727121AbgJOIfX (ORCPT ); Thu, 15 Oct 2020 04:35:23 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=richard.weiyang@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0UC5QO15_1602750919; Received: from localhost(mailfrom:richard.weiyang@linux.alibaba.com fp:SMTPD_---0UC5QO15_1602750919) by smtp.aliyun-inc.com(127.0.0.1); Thu, 15 Oct 2020 16:35:20 +0800 Date: Thu, 15 Oct 2020 16:35:19 +0800 From: Wei Yang To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, virtualization@lists.linux-foundation.org, Andrew Morton , "Michael S . Tsirkin" , Jason Wang , Pankaj Gupta Subject: Re: [PATCH v1 08/29] virtio-mem: drop last_mb_id Message-ID: <20201015083519.GG86495@L-31X9LVDL-1304.local> Reply-To: Wei Yang References: <20201012125323.17509-1-david@redhat.com> <20201012125323.17509-9-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201012125323.17509-9-david@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 12, 2020 at 02:53:02PM +0200, David Hildenbrand wrote: >No longer used, let's drop it. > >Cc: "Michael S. Tsirkin" >Cc: Jason Wang >Cc: Pankaj Gupta >Signed-off-by: David Hildenbrand If above two patches are merged. Reviewed-by: Wei Yang >--- > drivers/virtio/virtio_mem.c | 4 ---- > 1 file changed, 4 deletions(-) > >diff --git a/drivers/virtio/virtio_mem.c b/drivers/virtio/virtio_mem.c >index 37a0e338ae4a..5c93f8a65eba 100644 >--- a/drivers/virtio/virtio_mem.c >+++ b/drivers/virtio/virtio_mem.c >@@ -84,8 +84,6 @@ struct virtio_mem { > > /* Id of the first memory block of this device. */ > unsigned long first_mb_id; >- /* Id of the last memory block of this device. */ >- unsigned long last_mb_id; > /* Id of the last usable memory block of this device. */ > unsigned long last_usable_mb_id; > /* Id of the next memory bock to prepare when needed. */ >@@ -1689,8 +1687,6 @@ static int virtio_mem_init(struct virtio_mem *vm) > vm->first_mb_id = virtio_mem_phys_to_mb_id(vm->addr - 1 + > memory_block_size_bytes()); > vm->next_mb_id = vm->first_mb_id; >- vm->last_mb_id = virtio_mem_phys_to_mb_id(vm->addr + >- vm->region_size) - 1; > > dev_info(&vm->vdev->dev, "start address: 0x%llx", vm->addr); > dev_info(&vm->vdev->dev, "region size: 0x%llx", vm->region_size); >-- >2.26.2 -- Wei Yang Help you, Help me