From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52C61C43467 for ; Thu, 15 Oct 2020 08:35:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CF93A2225F for ; Thu, 15 Oct 2020 08:35:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CF93A2225F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 19D2694000A; Thu, 15 Oct 2020 04:35:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 14F606B0074; Thu, 15 Oct 2020 04:35:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 061BA94000A; Thu, 15 Oct 2020 04:35:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0108.hostedemail.com [216.40.44.108]) by kanga.kvack.org (Postfix) with ESMTP id C0F236B0072 for ; Thu, 15 Oct 2020 04:35:29 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 57B62180AD811 for ; Thu, 15 Oct 2020 08:35:29 +0000 (UTC) X-FDA: 77373500778.27.cart95_0f1201627213 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin27.hostedemail.com (Postfix) with ESMTP id 364E13D663 for ; Thu, 15 Oct 2020 08:35:29 +0000 (UTC) X-HE-Tag: cart95_0f1201627213 X-Filterd-Recvd-Size: 2967 Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by imf41.hostedemail.com (Postfix) with ESMTP for ; Thu, 15 Oct 2020 08:35:27 +0000 (UTC) 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> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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