yeahuh / rpms / qemu-kvm

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