yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
9ae3a8
From a3180e79422e20d704e8a65643bbfac002142cf8 Mon Sep 17 00:00:00 2001
9ae3a8
From: Juan Quintela <quintela@redhat.com>
9ae3a8
Date: Tue, 14 Jan 2014 15:07:41 +0100
9ae3a8
Subject: [PATCH 30/40] exec: Remove unused global variable phys_ram_fd
9ae3a8
MIME-Version: 1.0
9ae3a8
Content-Type: text/plain; charset=UTF-8
9ae3a8
Content-Transfer-Encoding: 8bit
9ae3a8
9ae3a8
RH-Author: Juan Quintela <quintela@redhat.com>
9ae3a8
Message-id: <1389712071-23303-31-git-send-email-quintela@redhat.com>
9ae3a8
Patchwork-id: 56686
9ae3a8
O-Subject: [RHEL7 qemu-kvm PATCH 30/40] exec: Remove unused global variable phys_ram_fd
9ae3a8
Bugzilla: 997559
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Orit Wasserman <owasserm@redhat.com>
9ae3a8
RH-Acked-by: Dr. David Alan Gilbert (git) <dgilbert@redhat.com>
9ae3a8
9ae3a8
From: Stefan Weil <sw@weilnetz.de>
9ae3a8
9ae3a8
It seems to be unused since several years (commit
9ae3a8
be995c27640a82c7056b6f53d02ec823570114e5 in 2006).
9ae3a8
9ae3a8
Signed-off-by: Stefan Weil <sw@weilnetz.de>
9ae3a8
Reviewed-by: Andreas Färber <afaerber@suse.de>
9ae3a8
Message-id: 1373044036-14443-1-git-send-email-sw@weilnetz.de
9ae3a8
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
9ae3a8
(cherry picked from commit 154bb106dc195b4fbb76df0452ab6e3e24e80d72)
9ae3a8
Signed-off-by: Juan Quintela <quintela@trasno.org>
9ae3a8
---
9ae3a8
 exec.c                 | 1 -
9ae3a8
 include/exec/cpu-all.h | 1 -
9ae3a8
 2 files changed, 2 deletions(-)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 exec.c                 |    1 -
9ae3a8
 include/exec/cpu-all.h |    1 -
9ae3a8
 2 files changed, 0 insertions(+), 2 deletions(-)
9ae3a8
9ae3a8
diff --git a/exec.c b/exec.c
9ae3a8
index 79ea3b2..443de79 100644
9ae3a8
--- a/exec.c
9ae3a8
+++ b/exec.c
9ae3a8
@@ -55,7 +55,6 @@
9ae3a8
 //#define DEBUG_SUBPAGE
9ae3a8
 
9ae3a8
 #if !defined(CONFIG_USER_ONLY)
9ae3a8
-int phys_ram_fd;
9ae3a8
 static int in_migration;
9ae3a8
 
9ae3a8
 RAMList ram_list = { .blocks = QTAILQ_HEAD_INITIALIZER(ram_list.blocks) };
9ae3a8
diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h
9ae3a8
index 9c85c1c..b88e56e 100644
9ae3a8
--- a/include/exec/cpu-all.h
9ae3a8
+++ b/include/exec/cpu-all.h
9ae3a8
@@ -460,7 +460,6 @@ hwaddr cpu_get_phys_page_debug(CPUArchState *env, target_ulong addr);
9ae3a8
 
9ae3a8
 /* memory API */
9ae3a8
 
9ae3a8
-extern int phys_ram_fd;
9ae3a8
 extern ram_addr_t ram_size;
9ae3a8
 
9ae3a8
 /* RAM is pre-allocated and passed into qemu_ram_alloc_from_ptr */
9ae3a8
-- 
9ae3a8
1.7.1
9ae3a8