Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

virtio/s390: keep early_put_chars

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>

authored by

Christian Borntraeger and committed by
Michael S. Tsirkin
2ab0d56a 347a5293

+1 -1
+1 -1
drivers/s390/virtio/kvm_virtio.c
··· 482 482 } 483 483 484 484 /* code for early console output with virtio_console */ 485 - static __init int early_put_chars(u32 vtermno, const char *buf, int count) 485 + static int early_put_chars(u32 vtermno, const char *buf, int count) 486 486 { 487 487 char scratch[17]; 488 488 unsigned int len = count;