From patchwork Mon Aug 30 07:49:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Isaku Yamahata X-Patchwork-Id: 63005 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 21A54B70EF for ; Mon, 30 Aug 2010 17:39:58 +1000 (EST) Received: from localhost ([127.0.0.1]:60731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpyyA-0005lp-Vf for incoming@patchwork.ozlabs.org; Mon, 30 Aug 2010 03:39:55 -0400 Received: from [140.186.70.92] (port=46266 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Opyw0-0005cL-9J for qemu-devel@nongnu.org; Mon, 30 Aug 2010 03:37:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Opyvz-0005PE-0O for qemu-devel@nongnu.org; Mon, 30 Aug 2010 03:37:40 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:56000) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Opyvy-0005OZ-MV for qemu-devel@nongnu.org; Mon, 30 Aug 2010 03:37:38 -0400 Received: from ps.local.valinux.co.jp (vagw.valinux.co.jp [210.128.90.14]) by mail.valinux.co.jp (Postfix) with SMTP id A4730107A6B; Mon, 30 Aug 2010 16:37:35 +0900 (JST) Received: (nullmailer pid 7205 invoked by uid 1000); Mon, 30 Aug 2010 07:49:27 -0000 From: Isaku Yamahata To: qemu-devel@nongnu.org Date: Mon, 30 Aug 2010 16:49:23 +0900 Message-Id: <3d4dd93533357a6d3f385347888866e3f0ec276e.1283152674.git.yamahata@valinux.co.jp> X-Mailer: git-send-email 1.7.1.1 In-Reply-To: References: In-Reply-To: References: X-Virus-Scanned: clamav-milter 0.95.2 at va-mail.local.valinux.co.jp X-Virus-Status: Clean X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: glommer@redhat.com, blauwirbel@gmail.com, yamahata@valinux.co.jp, alex.williamson@redhat.com, avi@redhat.com Subject: [Qemu-devel] [PATCH 1/5] sysemu.h, vl.c: static'fy qemu_xxx_requested(). X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Make qemu_xxx_requested() helper function static because they aren't used outside from vl.c. Signed-off-by: Isaku Yamahata --- sysemu.h | 4 ---- vl.c | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/sysemu.h b/sysemu.h index a1f6466..7fc4e20 100644 --- a/sysemu.h +++ b/sysemu.h @@ -51,11 +51,7 @@ void cpu_disable_ticks(void); void qemu_system_reset_request(void); void qemu_system_shutdown_request(void); void qemu_system_powerdown_request(void); -int qemu_shutdown_requested(void); -int qemu_reset_requested(void); -int qemu_powerdown_requested(void); extern qemu_irq qemu_system_powerdown; -void qemu_system_reset(void); void qemu_add_exit_notifier(Notifier *notify); void qemu_remove_exit_notifier(Notifier *notify); diff --git a/vl.c b/vl.c index 91d1684..a77a171 100644 --- a/vl.c +++ b/vl.c @@ -1129,21 +1129,21 @@ static int powerdown_requested; int debug_requested; int vmstop_requested; -int qemu_shutdown_requested(void) +static int qemu_shutdown_requested(void) { int r = shutdown_requested; shutdown_requested = 0; return r; } -int qemu_reset_requested(void) +static int qemu_reset_requested(void) { int r = reset_requested; reset_requested = 0; return r; } -int qemu_powerdown_requested(void) +static int qemu_powerdown_requested(void) { int r = powerdown_requested; powerdown_requested = 0; @@ -1186,7 +1186,7 @@ void qemu_unregister_reset(QEMUResetHandler *func, void *opaque) } } -void qemu_system_reset(void) +static void qemu_system_reset(void) { QEMUResetEntry *re, *nre;