From nobody Sat Dec 18 20:32:36 2021 X-Original-To: dev-commits-src-all@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 B2B1818EB27B; Sat, 18 Dec 2021 20:32:36 +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 4JGcwh39l5z3NpW; Sat, 18 Dec 2021 20:32:36 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 4CEE215A73; Sat, 18 Dec 2021 20:32:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BIKWa02020350; Sat, 18 Dec 2021 20:32:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BIKWaRW020349; Sat, 18 Dec 2021 20:32:36 GMT (envelope-from git) Date: Sat, 18 Dec 2021 20:32:36 GMT Message-Id: <202112182032.1BIKWaRW020349@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Hans Petter Selasky Subject: git: 34077a8ed39f - main - usb(4): Fix build after 45b48cbc2b5819cd6e3dee3632d66e55d5d7c101. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: hselasky X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 34077a8ed39f40da4b7faffff0b112f1dcb62ab4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639859556; 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=Nv6hR7ILT+LeNz6oFwMFDy7MALQhBg1quQ2BX+mlaqE=; b=p6jNO4yGfXJZ820GB6vu5ijXgcEOAV9TC+nPu+AnHNS4RXCdbSSC57+Ri3vf9fuvReJX9C GPFzlVlxvTiSUF/44TcUeyAHtAlypUX9zc8iWFwtWwFf51Bn+wmTw6KzemZ1+sIuKLFa50 NtjgdAUxaJ+qAAYKe4OwHA7W0Udok41eMnSFVJ6M3UuL91P5crXq6yrkb82vaz3lfH1cgN BKHtQWNXhdhq4TvY8DvbQXa+PKA8RnuuyWOQBICNgRkLUiPGQCU2wCnTkIYhk+pK2zlwkz NZ/xPd3WqR4g2pPVd+TVC8UKNR+I88RpdETxmTxR1Mmz3yEcQ8ddx4u2R45nbQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639859556; a=rsa-sha256; cv=none; b=FbzVIX/aNyZ3M4ue3J1GrvoisZyO5/gaF/kZ1Qe865DDn/3SeDApXV1Cv+UGWriOU6yRPA 6wJdLkMGhME3nmrH/0waNBtrpyy8PCi8umFYwtpDf9ckX/TdRq2R5MUnafz3iA6YbxX1YX ZozGLu23f63U5yRY0zMNEK6/WggUjLuCiC+SYJc2U+jopVwG2jcedH77/MFuKDsF1BN5wI J6tGGeTUO/2rIa4ZgKxihUbbm8o98Wq/Mqq/QV5/O8xu9biHVarIyQF7KfhvJUoVeSgX2V gCaI3A4etTlNHaj17Jec46kO6ehi3OPWWyN5Td1+3Rgvzao7VMFAzBEK7rPntQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=34077a8ed39f40da4b7faffff0b112f1dcb62ab4 commit 34077a8ed39f40da4b7faffff0b112f1dcb62ab4 Author: Hans Petter Selasky AuthorDate: 2021-12-18 20:26:57 +0000 Commit: Hans Petter Selasky CommitDate: 2021-12-18 20:31:03 +0000 usb(4): Fix build after 45b48cbc2b5819cd6e3dee3632d66e55d5d7c101. Make sure local variable is initialized when COMPAT_32BIT is not defined. MFC after: 1 week Sponsored by: NVIDIA Networking --- sys/dev/hid/hidraw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/hid/hidraw.c b/sys/dev/hid/hidraw.c index f359fe3e7e6f..25b41693b7f3 100644 --- a/sys/dev/hid/hidraw.c +++ b/sys/dev/hid/hidraw.c @@ -579,8 +579,9 @@ hidraw_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, if (sc == NULL) return (EIO); -#ifdef COMPAT_FREEBSD32 hgd = (struct hidraw_gen_descriptor *)addr; + +#ifdef COMPAT_FREEBSD32 switch (cmd) { case HIDRAW_GET_REPORT_DESC32: case HIDRAW_GET_REPORT32: