Module Name: src
Committed By: rin
Date: Sun Jul 21 16:08:13 UTC 2019
Modified Files:
src/sys/dev/hyperv: hvkbd.c
Log Message:
Fix build for !WSDISPLAY_COMPAT_RAWKBD.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/hyperv/hvkbd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/hyperv/hvkbd.c
diff -u src/sys/dev/hyperv/hvkbd.c:1.1 src/sys/dev/hyperv/hvkbd.c:1.2
--- src/sys/dev/hyperv/hvkbd.c:1.1 Fri May 24 14:28:48 2019
+++ src/sys/dev/hyperv/hvkbd.c Sun Jul 21 16:08:13 2019
@@ -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_i
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_c
return 1;
}
+#endif
static void
hvkbd_intr(void *xsc)