Skip to contentSkip to conversation

exec: Remove unused global variable phys_ram_fd

PATCH Applied Stefan Weil 3 participants 3 messages Jul 5, 2013 – Jul 10, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 exec: Remove unused global variable phys_ram_fd

It seems to be unused since several years (commit be995c27640a82c7056b6f53d02ec823570114e5 in 2006).

---
 exec.c                 |    1 -
 include/exec/cpu-all.h |    1 -
 2 files changed, 2 deletions(-)
exec.c +0 -1
index c49806c..e8f95a9 100644
@@ -53,7 +53,6 @@
 //#define DEBUG_SUBPAGE
 
 #if !defined(CONFIG_USER_ONLY)
-int phys_ram_fd;
 static int in_migration;
 
 RAMList ram_list = { .blocks = QTAILQ_HEAD_INITIALIZER(ram_list.blocks) };
include/exec/cpu-all.h +0 -1
index 35bdf85..e791c05 100644
@@ -447,7 +447,6 @@ hwaddr cpu_get_phys_page_debug(CPUArchState *env, target_ulong addr);
 
 /* memory API */
 
-extern int phys_ram_fd;
 extern ram_addr_t ram_size;
 
 /* RAM is pre-allocated and passed into qemu_ram_alloc_from_ptr */
Signature · 1 line
1.7.10.4
Reviewed-by on v1 1/1
#1 lore raw

Am 05.07.2013 19:07, schrieb Stefan Weil:

Quoted 4 lines

It seems to be unused since several years (commit be995c27640a82c7056b6f53d02ec823570114e5 in 2006).

Confirmed unused,

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg