From patchwork Fri Jul 5 17:07:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 257196 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 55B452C0096 for ; Sat, 6 Jul 2013 03:08:18 +1000 (EST) Received: from localhost ([::1]:54459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv9UW-000717-3A for incoming@patchwork.ozlabs.org; Fri, 05 Jul 2013 13:08:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv9Te-0006Ds-Ap for qemu-devel@nongnu.org; Fri, 05 Jul 2013 13:07:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uv9Td-0001Ei-0D for qemu-devel@nongnu.org; Fri, 05 Jul 2013 13:07:22 -0400 Received: from qemu.weilnetz.de ([37.221.198.45]:35019 helo=v2201305906712890.yourvserver.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv9Tc-0001E1-Rg for qemu-devel@nongnu.org; Fri, 05 Jul 2013 13:07:20 -0400 Received: by v2201305906712890.yourvserver.net (Postfix, from userid 1000) id DDE4C182DC6; Fri, 5 Jul 2013 19:07:16 +0200 (CEST) From: Stefan Weil To: Date: Fri, 5 Jul 2013 19:07:16 +0200 Message-Id: <1373044036-14443-1-git-send-email-sw@weilnetz.de> X-Mailer: git-send-email 1.7.10.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 37.221.198.45 Cc: Stefan Weil , qemu-devel Subject: [Qemu-devel] [PATCH] exec: Remove unused global variable phys_ram_fd X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org It seems to be unused since several years (commit be995c27640a82c7056b6f53d02ec823570114e5 in 2006). Signed-off-by: Stefan Weil Reviewed-by: Andreas Färber --- exec.c | 1 - include/exec/cpu-all.h | 1 - 2 files changed, 2 deletions(-) diff --git a/exec.c b/exec.c index c49806c..e8f95a9 100644 --- a/exec.c +++ b/exec.c @@ -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) }; diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index 35bdf85..e791c05 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -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 */