From ea0b29cd756f7ae817fdb1ed6b24d5d2698a9fb1 Mon Sep 17 00:00:00 2001 From: skrll Date: Sat, 20 Mar 2021 05:58:22 +0000 Subject: [PATCH] Apply the earlyconsgetc: return -1 instead of 0 because we will never produce input fix to all copies. --- sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c | 6 +++--- sys/arch/evbarm/beagle/beagle_machdep.c | 6 +++--- sys/arch/evbarm/zynq/zynq_machdep.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c b/sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c index 46ec04a329c7..2662ea199f35 100644 --- a/sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c +++ b/sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: bcm53xx_machdep.c,v 1.26 2020/12/03 07:45:52 skrll Exp $ */ +/* $NetBSD: bcm53xx_machdep.c,v 1.27 2021/03/20 05:58:22 skrll Exp $ */ /*- * Copyright (c) 2012 The NetBSD Foundation, Inc. @@ -33,7 +33,7 @@ #define IDM_PRIVATE #include -__KERNEL_RCSID(0, "$NetBSD: bcm53xx_machdep.c,v 1.26 2020/12/03 07:45:52 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bcm53xx_machdep.c,v 1.27 2021/03/20 05:58:22 skrll Exp $"); #include "opt_arm_debug.h" #include "opt_console.h" @@ -123,7 +123,7 @@ earlyconsputc(dev_t dev, int c) static int earlyconsgetc(dev_t dev) { - return 0; + return -1; } static struct consdev earlycons = { diff --git a/sys/arch/evbarm/beagle/beagle_machdep.c b/sys/arch/evbarm/beagle/beagle_machdep.c index 0e6c7345b87e..846878f24497 100644 --- a/sys/arch/evbarm/beagle/beagle_machdep.c +++ b/sys/arch/evbarm/beagle/beagle_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: beagle_machdep.c,v 1.86 2020/12/03 07:45:52 skrll Exp $ */ +/* $NetBSD: beagle_machdep.c,v 1.87 2021/03/20 05:58:22 skrll Exp $ */ /* * Machine dependent functions for kernel setup for TI OSK5912 board. @@ -125,7 +125,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: beagle_machdep.c,v 1.86 2020/12/03 07:45:52 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: beagle_machdep.c,v 1.87 2021/03/20 05:58:22 skrll Exp $"); #include "opt_arm_debug.h" #include "opt_console.h" @@ -297,7 +297,7 @@ earlyconsputc(dev_t dev, int c) static int earlyconsgetc(dev_t dev) { - return 0; + return -1; } static struct consdev earlycons = { diff --git a/sys/arch/evbarm/zynq/zynq_machdep.c b/sys/arch/evbarm/zynq/zynq_machdep.c index fbced830fd09..df66c865e49a 100644 --- a/sys/arch/evbarm/zynq/zynq_machdep.c +++ b/sys/arch/evbarm/zynq/zynq_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: zynq_machdep.c,v 1.16 2020/12/03 07:45:53 skrll Exp $ */ +/* $NetBSD: zynq_machdep.c,v 1.17 2021/03/20 05:58:23 skrll Exp $ */ /*- * Copyright (c) 2012 The NetBSD Foundation, Inc. * All rights reserved. @@ -29,7 +29,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: zynq_machdep.c,v 1.16 2020/12/03 07:45:53 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: zynq_machdep.c,v 1.17 2021/03/20 05:58:23 skrll Exp $"); #include "opt_evbarm_boardtype.h" #include "opt_arm_debug.h" @@ -116,7 +116,7 @@ earlyconsputc(dev_t dev, int c) static int earlyconsgetc(dev_t dev) { - return 0; + return -1; } static struct consdev earlycons = {