[Bug 268653] /src/sys/dev/hyperv/input/hv_kbd.c error: use of undeclared identifier 'keycode'

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 12 Jun 2023 14:57:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268653

SimpleRezo <simplerezo@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simplerezo@gmail.com

--- Comment #7 from SimpleRezo <simplerezo@gmail.com> ---
This quick patch fix compilation:

/usr/src/sys/dev/hyperv/input$ diff -u hv_kbd.c.orig hv_kbd.c
--- hv_kbd.c.orig       2023-06-12 16:55:53.868095000 +0200
+++ hv_kbd.c    2023-06-12 16:47:27.604685000 +0200
@@ -269,9 +269,7 @@
        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))

-- 
You are receiving this mail because:
You are the assignee for the bug.