[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Correctly export xencons functions to avoid ugly 'extern'
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 2e0700008a8703e532999ce02ff9331a367a5ca4 # Parent 022818ea391490656a9f600394403dbfaa61a2e8 Correctly export xencons functions to avoid ugly 'extern' declarations. Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx> diff -r 022818ea3914 -r 2e0700008a87 linux-2.6-xen-sparse/arch/xen/kernel/reboot.c --- a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c Wed Nov 16 10:30:32 2005 +++ b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c Wed Nov 16 10:32:19 2005 @@ -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_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); } @@ -84,8 +83,6 @@ cpumask_t prev_online_cpus; int vcpu_prepare(int vcpu); #endif - - extern void xencons_resume(void); int err = 0; diff -r 022818ea3914 -r 2e0700008a87 linux-2.6-xen-sparse/drivers/xen/console/console.c --- a/linux-2.6-xen-sparse/drivers/xen/console/console.c Wed Nov 16 10:30:32 2005 +++ b/linux-2.6-xen-sparse/drivers/xen/console/console.c Wed Nov 16 10:32:19 2005 @@ -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" /* diff -r 022818ea3914 -r 2e0700008a87 linux-2.6-xen-sparse/include/asm-xen/xencons.h --- /dev/null Wed Nov 16 10:30:32 2005 +++ b/linux-2.6-xen-sparse/include/asm-xen/xencons.h Wed Nov 16 10:32:19 2005 @@ -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__ */ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |