summaryrefslogtreecommitdiff
path: root/sys/dev/hyperv
diff options
context:
space:
mode:
authorrin <rin@NetBSD.org>2019-07-21 16:08:13 +0000
committerrin <rin@NetBSD.org>2019-07-21 16:08:13 +0000
commitc0cc41c550c76b010d6389a4c25a2f6481398fef (patch)
tree85dae25724da2052671089e9ed0f88b96290928c /sys/dev/hyperv
parentea2dfb996ce5c59e78827ecdb19869df9ff7fd0a (diff)
Fix build for !WSDISPLAY_COMPAT_RAWKBD.
Diffstat (limited to 'sys/dev/hyperv')
-rw-r--r--sys/dev/hyperv/hvkbd.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/hyperv/hvkbd.c b/sys/dev/hyperv/hvkbd.c
index ba416df9bf9..322695809ad 100644
--- a/sys/dev/hyperv/hvkbd.c
+++ b/sys/dev/hyperv/hvkbd.c
@@ -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 @@ hvkbd_set_leds(void *v, int leds)
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 @@ hvkbd_decode(struct hvkbd_softc *sc, u_int *type, int *scancode)
return 1;
}
+#if defined(WSDISPLAY_COMPAT_RAWKBD)
static int
hvkbd_encode(struct hvkbd_softc *sc, u_char *buf, int *len)
{
@@ -478,6 +481,7 @@ hvkbd_encode(struct hvkbd_softc *sc, u_char *buf, int *len)
return 1;
}
+#endif
static void
hvkbd_intr(void *xsc)