Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/hyperv Fix build for !WSDISPLAY_COMPAT_RAWKBD.
details: https://anonhg.NetBSD.org/src/rev/c2df1311855a
branches: trunk
changeset: 1000308:c2df1311855a
user: rin <rin%NetBSD.org@localhost>
date: Sun Jul 21 16:08:13 2019 +0000
description:
Fix build for !WSDISPLAY_COMPAT_RAWKBD.
diffstat:
sys/dev/hyperv/hvkbd.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (44 lines):
diff -r 3f05547097c2 -r c2df1311855a sys/dev/hyperv/hvkbd.c
--- a/sys/dev/hyperv/hvkbd.c Sun Jul 21 16:05:24 2019 +0000
+++ b/sys/dev/hyperv/hvkbd.c Sun Jul 21 16:08:13 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hvkbd.c,v 1.1 2019/05/24 14:28:48 nonaka Exp $ */
+/* $NetBSD: hvkbd.c,v 1.2 2019/07/21 16:08:13 rin Exp $ */
/*-
* Copyright (c) 2017 Microsoft Corp.
@@ -36,7 +36,7 @@
#endif /* _KERNEL_OPT */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hvkbd.c,v 1.1 2019/05/24 14:28:48 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hvkbd.c,v 1.2 2019/07/21 16:08:13 rin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -317,7 +317,9 @@
static int
hvkbd_ioctl(void *v, u_long cmd, void *data, int flag, struct lwp *l)
{
+#if defined(WSDISPLAY_COMPAT_RAWKBD)
struct hvkbd_softc *sc = v;
+#endif
switch (cmd) {
case WSKBDIO_GTYPE:
@@ -434,6 +436,7 @@
return 1;
}
+#if defined(WSDISPLAY_COMPAT_RAWKBD)
static int
hvkbd_encode(struct hvkbd_softc *sc, u_char *buf, int *len)
{
@@ -478,6 +481,7 @@
return 1;
}
+#endif
static void
hvkbd_intr(void *xsc)
Home |
Main Index |
Thread Index |
Old Index