Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4271360pxu; Mon, 12 Oct 2020 14:27:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXQPGWkYnIKeyO2chd2/lRQQH63CVJ8russl8N2no7tjeUyuY4uiWJtGNyq9ui2qoWqdxv X-Received: by 2002:a05:6402:21c5:: with SMTP id bi5mr16833017edb.380.1602538020573; Mon, 12 Oct 2020 14:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602538020; cv=none; d=google.com; s=arc-20160816; b=QcFE6HY7zIBnsKaEnis2ONygut8xYjj1wxYEJT1wLnH8HLMat/gMRpvOmBdTKAbidI GCtBNAENAywY0FqPmAbmjRht9IepeJHQmuxQQs6scYD/iTYbtd2bi5vaa9a/FQCoYjzS 6UMZbsUalK3MMrxLuaK223XWmChna/FcvLygVG+iqtc5qCH1+/Ce1Spe99IGE+ravGM2 y40EGsiZWzwvk0TJFYlFPRXPEFWy2aqzs0BEk5cUg3QGa63fMCh4BHT4RXbkC9zUQQXI ohO0nR4E8AI8yxZDGDQyHaSwJLO/jLomUehlEM9HmyMMc2xFLsvjye7D321xswHkQxnW RbFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PBVd+cfb+oMQo0gKEyeJIaaM87zvbM5gVEM/HK/ldHU=; b=tggmBLdEFdookO4lZLnEHBuork2LtYR5bYBYwyg4wQj02/e/34tO2CFt4HWJEEtMEe zpxNC15GLFyffBpOuU+E3GzaJxGQcs6fRiOd9KJP9+SI+pbSaExiDPGFRI0swKiKUNdI 3xtm8rXUmTE42DGBkvlaluee5N3h+pKRURzhtB4HWTleWpoyt2wYwcft0uqFj2wEdctt 6BQWqg7TFrkdhFoW/89J2/E7hnZCIl//14DFVZWgd18YHr+jaXwJQLN7qZwx8oza0oC3 16TBC5qd4vlFfxyJ7rdT7wHLRgoPiWceCNPcl4767O5L72A5SB7aEMdIdzuMALCkCRtI jTNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dCG5DKlW; 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 f16si12810937edt.266.2020.10.12.14.26.37; Mon, 12 Oct 2020 14:27:00 -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=dCG5DKlW; 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 S1730021AbgJLMyp (ORCPT + 99 others); Mon, 12 Oct 2020 08:54:45 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:20406 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730033AbgJLMyj (ORCPT ); Mon, 12 Oct 2020 08:54:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602507278; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PBVd+cfb+oMQo0gKEyeJIaaM87zvbM5gVEM/HK/ldHU=; b=dCG5DKlWgq+WQTC9x1fRBhFyrqfDEWbDZIz3xO3XPu5A2SUA7FjtuPaTRrwGk6ju6rQKX6 PZrKmMxwxXuJ0HpY4mDk6DZzSbwk47hBbRAxvR0xl51qT0TY2nw01UQBuAhXlAM8Rg3QLn a/TcDVRp7GekK5ZTW/PmG+z17pz+cZU= 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-70-LBUteH8eOUyHpYpDE3qTdg-1; Mon, 12 Oct 2020 08:54:36 -0400 X-MC-Unique: LBUteH8eOUyHpYpDE3qTdg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A497018A8224; Mon, 12 Oct 2020 12:54:35 +0000 (UTC) Received: from t480s.redhat.com (ovpn-113-251.ams2.redhat.com [10.36.113.251]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1AB4860C07; Mon, 12 Oct 2020 12:54:32 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, virtualization@lists.linux-foundation.org, Andrew Morton , "Michael S . Tsirkin" , David Hildenbrand , Jason Wang , Pankaj Gupta Subject: [PATCH v1 08/29] virtio-mem: drop last_mb_id Date: Mon, 12 Oct 2020 14:53:02 +0200 Message-Id: <20201012125323.17509-9-david@redhat.com> In-Reply-To: <20201012125323.17509-1-david@redhat.com> References: <20201012125323.17509-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No longer used, let's drop it. Cc: "Michael S. Tsirkin" Cc: Jason Wang Cc: Pankaj Gupta Signed-off-by: David Hildenbrand --- 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