Correctly export xencons functions to avoid ugly 'extern'

declarations.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-11-16 11:32:19 +01:00
1 parent 4f114eacb2
commit 7cfd98e2f1
3 files changed
+9 -4

No files matched your search

@@ -15,6 +15,7 @@
#include <asm-xen/xenbus.h>
#include <linux/cpu.h>
#include <linux/kthread.h>
#include <asm-xen/xencons.h>
#define SHUTDOWN_INVALID -1
#define SHUTDOWN_POWEROFF 0
@@ -29,7 +30,6 @@
void machine_restart(char * __unused)
{
/* We really want to get pending console data out before we die. */
extern void xencons_force_flush(void);
xencons_force_flush();
HYPERVISOR_sched_op(SCHEDOP_shutdown, SHUTDOWN_reboot);
}
@@ -42,7 +42,6 @@ void machine_halt(void)
void machine_power_off(void)
{
/* We really want to get pending console data out before we die. */
extern void xencons_force_flush(void);
xencons_force_flush();
HYPERVISOR_sched_op(SCHEDOP_shutdown, SHUTDOWN_poweroff);
}
@@ -85,8 +84,6 @@ static int __do_suspend(void *ignore)
int vcpu_prepare(int vcpu);
#endif
extern void xencons_resume(void);
int err = 0;
BUG_ON(smp_processor_id() != 0);
@@ -53,6 +53,7 @@
#include <asm-xen/xen-public/event_channel.h>
#include <asm/hypervisor.h>
#include <asm-xen/evtchn.h>
#include <asm-xen/xencons.h>
#include "xencons_ring.h"
/*
@@ -0,0 +1,7 @@
#ifndef __ASM_XENCONS_H__
#define __ASM_XENCONS_H__
void xencons_force_flush(void);
void xencons_resume(void);
#endif /* __ASM_XENCONS_H__ */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.