From: Christian Borntraeger Date: Thu, 7 Jul 2016 15:07:56 +0000 (+0200) Subject: virtio/s390: keep early_put_chars X-Git-Tag: v5.15~13014^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ab0d56aadbcd120b8fa524b4a1142e8b06e13c8;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Jing Liu Signed-off-by: Cornelia Huck Signed-off-by: Michael S. Tsirkin --- diff --git a/drivers/s390/virtio/kvm_virtio.c b/drivers/s390/virtio/kvm_virtio.c index 1d060fd..b0a849f 100644 --- a/drivers/s390/virtio/kvm_virtio.c +++ b/drivers/s390/virtio/kvm_virtio.c @@ -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;