Skip to content

Commit

Permalink
virtio/s390: keep early_put_chars
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jing Liu <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
  • Loading branch information
borntraeger authored and mstsirkin committed Aug 9, 2016
1 parent 347a529 commit 2ab0d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/virtio/kvm_virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2ab0d56

Please sign in to comment.