Date: Wed, 24 Jun 2026 15:27:04 +0000 From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 31b7d80016a3 - main - acpi_support/acpi_ibm.c: move the 'key' definition to the block that uses it Message-ID: <6a3bf748.21d4a.5b450d0d@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=31b7d80016a37e4de10f166bc7ff353c7d1ef534 commit 31b7d80016a37e4de10f166bc7ff353c7d1ef534 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2026-06-24 15:23:12 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> 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:home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a3bf748.21d4a.5b450d0d>
