aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/keyhandler.c
diff options
context:
space:
mode:
authorTim Deegan <Tim.Deegan@citrix.com>2011-05-26 12:37:47 +0100
committerTim Deegan <Tim.Deegan@citrix.com>2011-05-26 12:37:47 +0100
commit093e1d2484fc46ec73e527c03af79664218045df (patch)
tree4ac0109f7f6d91c8c24a62bfdd20dc44e5370e9d /xen/common/keyhandler.c
parentde4bf084c8dc232a629e436ccd0ce989da8c470e (diff)
downloadxen-093e1d2484fc46ec73e527c03af79664218045df.tar.gz
xen-093e1d2484fc46ec73e527c03af79664218045df.tar.bz2
xen-093e1d2484fc46ec73e527c03af79664218045df.zip
xen: remove extern function declarations from C files.
Move all extern declarations into appropriate header files. This also fixes up a few places where the caller and the definition had different signatures. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'xen/common/keyhandler.c')
-rw-r--r--xen/common/keyhandler.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/xen/common/keyhandler.c b/xen/common/keyhandler.c
index 662d7e994e..f5c4adc1b6 100644
--- a/xen/common/keyhandler.c
+++ b/xen/common/keyhandler.c
@@ -14,6 +14,7 @@
#include <xen/rangeset.h>
#include <xen/compat.h>
#include <xen/ctype.h>
+#include <xen/perfc.h>
#include <asm/debugger.h>
#include <asm/div64.h>
@@ -403,7 +404,6 @@ static struct keyhandler read_clocks_keyhandler = {
.desc = "display multi-cpu clock info"
};
-extern void dump_runq(unsigned char key);
static struct keyhandler dump_runq_keyhandler = {
.diagnostic = 1,
.u.fn = dump_runq,
@@ -411,13 +411,11 @@ static struct keyhandler dump_runq_keyhandler = {
};
#ifdef PERF_COUNTERS
-extern void perfc_printall(unsigned char key);
static struct keyhandler perfc_printall_keyhandler = {
.diagnostic = 1,
.u.fn = perfc_printall,
.desc = "print performance counters"
};
-extern void perfc_reset(unsigned char key);
static struct keyhandler perfc_reset_keyhandler = {
.u.fn = perfc_reset,
.desc = "reset performance counters"
@@ -425,13 +423,11 @@ static struct keyhandler perfc_reset_keyhandler = {
#endif
#ifdef LOCK_PROFILE
-extern void spinlock_profile_printall(unsigned char key);
static struct keyhandler spinlock_printall_keyhandler = {
.diagnostic = 1,
.u.fn = spinlock_profile_printall,
.desc = "print lock profile info"
};
-extern void spinlock_profile_reset(unsigned char key);
static struct keyhandler spinlock_reset_keyhandler = {
.u.fn = spinlock_profile_reset,
.desc = "reset lock profile info"