From: Stephen Rothwell <sfr@canb.auug.org.au>
Subject: [PATCH] virtio: virtio console can be a module

Today's linux-next build (x86_64 allmodconfig) failed like this:

ERROR: "hvc_alloc" [drivers/char/virtio_console.ko] undefined!
ERROR: "hvc_kick" [drivers/char/virtio_console.ko] undefined!
ERROR: "hvc_poll" [drivers/char/virtio_console.ko] undefined!
ERROR: "hvc_instantiate" [drivers/char/virtio_console.ko] undefined!

So it needs these symbols exported.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
---
 drivers/char/hvc_console.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c
--- a/drivers/char/hvc_console.c
+++ b/drivers/char/hvc_console.c
@@ -281,6 +281,7 @@ int hvc_instantiate(uint32_t vtermno, in
 
 	return 0;
 }
+EXPORT_SYMBOL_GPL(hvc_instantiate);
 
 /* Wake the sleeping khvcd */
 void hvc_kick(void)
@@ -288,6 +289,7 @@ void hvc_kick(void)
 	hvc_kicked = 1;
 	wake_up_process(hvc_task);
 }
+EXPORT_SYMBOL_GPL(hvc_kick);
 
 static void hvc_unthrottle(struct tty_struct *tty)
 {
@@ -630,6 +632,7 @@ int hvc_poll(struct hvc_struct *hp)
 
 	return poll_mask;
 }
+EXPORT_SYMBOL_GPL(hvc_poll);
 
 #if defined(CONFIG_XMON) && defined(CONFIG_SMP)
 extern cpumask_t cpus_in_xmon;
@@ -746,6 +749,7 @@ struct hvc_struct __devinit *hvc_alloc(u
 
 	return hp;
 }
+EXPORT_SYMBOL_GPL(hvc_alloc);
 
 int __devexit hvc_remove(struct hvc_struct *hp)
 {
