From nobody Fri Aug 04 15:24:13 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RHTyj2HZcz4Tm6L; Fri, 4 Aug 2023 15:24:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RHTyj1tSzz3SWw; Fri, 4 Aug 2023 15:24:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691162653; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kZZE18FDrdrwfV2tf01H2jdfOHmCC3oXPketdxrfH8c=; b=PkGkL9vnstJEe1Jxrb71QU01okhI//xNX0MBEYxWe0c1uLnO4fHkmmX7jf8zz5Ziv6YbbM tmdTqB0kT5tSIuk7RJrBWEhwiIIBLQ0FRc3CrcQD8VuUZXDKcP/xT9DD47KysLH6RdjF8W T7kI9UOm6LfNc8XsrdwCKx5JRjfMYDmXTTgdpUL2WbWC5wXUOJJwGgnME8fzMt8135exgC qfSiTpSq9osaJsmA+mQ0mg5j3Hm2Enuks9XepgkezGhIMo0aDCPlJfTwPUGwAiLwcjNwbm 2/FxVRmugGO6oJ5vF0T55+vUnNwRA7PpxBvP5+yPE/zDnGQVDJ0SHh7R3sqYPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691162653; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kZZE18FDrdrwfV2tf01H2jdfOHmCC3oXPketdxrfH8c=; b=iLd/lMzFABb9JXJTWMx5pwPHAnvJ7X+EbfqgPm9ROwaHrq88OricwAFD+vSYfOUfbCPXs2 npcm02F/xhGJsFFY8qUbcvxm+wK/bPhernLsYnjjPT7ibYjg5g9PhpLV1x0R0Z/5oPHfnl LHMExEcmzCfQmU5x8BfOxNA3rhnRlyiIUDIkK0rBHOK3w6c8BQiPKPkveCdUVrBMXW2YCQ g0tUpAtCyHuTsheEfCQke3jOPHB6fm+o0qVJYn589sqUHUiUmKh5zO/qMQ4vIbZKHYHCgs RprnBnfhHwbeBR3UfMdjaRpBbGRsiGEyU0aEEpZkP+eStTr5ak2INfilfnA6ig== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691162653; a=rsa-sha256; cv=none; b=yfBZkTppwpbt7cMtYORXEhZtTJ3/zsfUYaIuVi8H1mlXvoDb5CwJxrm00ZqeCk0Xb8bZnL JGXIhLLMuPC0hc0oFLW8qviEqJRUu/YGiT3CsubU0qnXepaS3tOCs4eem3uFaT4UUTe/RV PSyeQ05hHqy8WkNuW2gCqjGno9oOCo1wLFSc+BDR8aNfdRalma/ldlHlhG5+14ZiNeg5Lz h27Wpi4qcalRdYVnzn4C70MO4X754243Ng94QcvBOFGAQq7jTUnHVUiszaRMiaioPN4EuF DORhGiyWzkr/QLP2zN8xA1oxAP6A1RHy3nDFBqQlImYS1G+xFzHbtzH6jOrM/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RHTyj0zXYz16yj; Fri, 4 Aug 2023 15:24:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 374FODEw025588; Fri, 4 Aug 2023 15:24:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 374FODwJ025587; Fri, 4 Aug 2023 15:24:13 GMT (envelope-from git) Date: Fri, 4 Aug 2023 15:24:13 GMT Message-Id: <202308041524.374FODwJ025587@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 301e69218ccb - main - ncthwm: Use `sysctl_handle_16` to match CTLTYPE_U16 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 301e69218ccbc314830fb989c852ae74ef2073d9 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=301e69218ccbc314830fb989c852ae74ef2073d9 commit 301e69218ccbc314830fb989c852ae74ef2073d9 Author: Stéphane Rochoy AuthorDate: 2023-08-04 09:31:33 +0000 Commit: Ed Maste CommitDate: 2023-08-04 15:23:42 +0000 ncthwm: Use `sysctl_handle_16` to match CTLTYPE_U16 Pull Request: https://github.com/freebsd/freebsd-src/pull/810 --- sys/dev/ncthwm/ncthwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ncthwm/ncthwm.c b/sys/dev/ncthwm/ncthwm.c index b62dff68f171..813b8474bdef 100644 --- a/sys/dev/ncthwm/ncthwm.c +++ b/sys/dev/ncthwm/ncthwm.c @@ -158,7 +158,7 @@ ncthwm_query_fan_speed(SYSCTL_HANDLER_ARGS) NCTHWM_VERBOSE_PRINTF(sc->dev, "%s: read %u from bank %u offset 0x%x-0x%x\n", fan->name, val, sc->nctdevp->fan_bank, fan->high_byte_offset, fan->low_byte_offset); - return (sysctl_handle_int(oidp, &val, 0, req)); + return (sysctl_handle_16(oidp, &val, 0, req)); } static int