Patchwork [1/5] sysemu.h, vl.c: static'fy qemu_xxx_requested().

login
register
mail settings
Submitter Isaku Yamahata
Date Aug. 30, 2010, 7:49 a.m.
Message ID <3d4dd93533357a6d3f385347888866e3f0ec276e.1283152674.git.yamahata@valinux.co.jp>
Download mbox | patch
Permalink /patch/63005/
State New
Headers show

Comments

Isaku Yamahata - Aug. 30, 2010, 7:49 a.m.
Make qemu_xxx_requested() helper function static
because they aren't used outside from vl.c.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
---
 sysemu.h |    4 ----
 vl.c     |    8 ++++----
 2 files changed, 4 insertions(+), 8 deletions(-)

Patch

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;