The branch main has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=31b7d80016a37e4de10f166bc7ff353c7d1ef534

commit 31b7d80016a37e4de10f166bc7ff353c7d1ef534
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-06-24 15:23:12 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-06-24 15:26:33 +0000

    acpi_support/acpi_ibm.c: move the 'key' definition to the block that uses it
    
    This eliminates a warning from compilation of kernels without
    EVDEV_SUPPORT.
    
    Fixes:  7e7f8b2c6641 ("acpi_ibm: Report mic mute key evdev events")
    Sponsored by:   The FreeBSD Foundation
---
 sys/dev/acpi_support/acpi_ibm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/acpi_support/acpi_ibm.c b/sys/dev/acpi_support/acpi_ibm.c
index f2a2db2de657..361f243e5a1f 100644
--- a/sys/dev/acpi_support/acpi_ibm.c
+++ b/sys/dev/acpi_support/acpi_ibm.c
@@ -1510,7 +1510,7 @@ acpi_ibm_eventhandler(struct acpi_ibm_softc *sc, int arg)
 static void
 acpi_ibm_notify(ACPI_HANDLE h, UINT32 notify, void *context)
 {
-       int             event, arg, type, key;
+       int             event, arg, type;
        device_t        dev = context;
        struct acpi_ibm_softc *sc = device_get_softc(dev);
 
@@ -1538,7 +1538,7 @@ acpi_ibm_notify(ACPI_HANDLE h, UINT32 notify, void 
*context)
                                acpi_ibm_eventhandler(sc, (arg & 0xff));
 #ifdef EVDEV_SUPPORT
                        else {
-                               key = -1;
+                               int key = -1;
 
                                switch (arg & 0xff) {
                                case IBM_EVENT_BRIGHTNESS_UP:

Reply via email to