virtio/s390: keep early_put_chars
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 7 Jul 2016 15:07:56 +0000 (17:07 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Aug 2016 10:42:40 +0000 (13:42 +0300)
In case the registration of the hvc tty never happens AND the kernel
thinks that hvc0 is the preferred console we should keep the early
printk function to avoid a kernel panic due to code being removed.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Jing Liu <liujbjl@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/s390/virtio/kvm_virtio.c

index 1d060fd293a3b8e8a4d4095b2ad84241913272d5..b0a849f02df36a11282b680fe25b9839be5353d7 100644 (file)
@@ -482,7 +482,7 @@ static int __init kvm_devices_init(void)
 }
 
 /* code for early console output with virtio_console */
-static __init int early_put_chars(u32 vtermno, const char *buf, int count)
+static int early_put_chars(u32 vtermno, const char *buf, int count)
 {
        char scratch[17];
        unsigned int len = count;