git: 55eb41bb1fb6 - main - hv_kbd: Fix build with EVDEV_SUPPORT kernel option disabled.

Vladimir Kondratyev wulf at FreeBSD.org
Thu Apr 22 22:14:23 UTC 2021


The branch main has been updated by wulf:

URL: https://cgit.FreeBSD.org/src/commit/?id=55eb41bb1fb69429330ea415fb463735ae08da64

commit 55eb41bb1fb69429330ea415fb463735ae08da64
Author:     Vladimir Kondratyev <wulf at FreeBSD.org>
AuthorDate: 2021-04-22 22:13:25 +0000
Commit:     Vladimir Kondratyev <wulf at FreeBSD.org>
CommitDate: 2021-04-22 22:13:25 +0000

    hv_kbd: Fix build with EVDEV_SUPPORT kernel option disabled.
    
    Reported by:    olivier
    MFC with:       e4643aa4c4ff
---
 sys/dev/hyperv/input/hv_kbd.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/dev/hyperv/input/hv_kbd.c b/sys/dev/hyperv/input/hv_kbd.c
index 52ce621b2a89..53aacda7fbcb 100644
--- a/sys/dev/hyperv/input/hv_kbd.c
+++ b/sys/dev/hyperv/input/hv_kbd.c
@@ -269,9 +269,8 @@ hvkbd_read_char_locked(keyboard_t *kbd, int wait)
 	uint32_t action;
 	keystroke ks;
 	hv_kbd_sc *sc = kbd->kb_data;
-#ifdef EVDEV_SUPPORT
 	int keycode;
-#endif
+
 	HVKBD_LOCK_ASSERT();
 
 	if (!KBD_IS_ACTIVE(kbd) || !hv_kbd_prod_is_ready(sc))


More information about the dev-commits-src-main mailing list