From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796497092; b=aW3r2eXRo5QvsZKudfPNC4dSI0SfYFEIV3LBLT4LsPT0BwQojrVqR9EP3e2gX197AuZ3 Vr6BwM7CKN1C2TLjNXyrxuZdgxQZD+rhFJehTS+USZLDGcbNT8JEyVfkBB1DnquuLUKdd 30ryoxYw6utp5AL1muZUhUydR7KOvtVTIkQzRDfC2+Rh7FqmaZ5svTf/VzsRQ0s4EQ2mN wNA8TrqVfdFVmjpUK99wv6F1g85nT/1vXPOW/7S0DySOAbDmaK6J4VwVrAiwcOZhBkGCJ yIWcHoHBkYJWzAoz6MfOJZpCH4vDIEJlmfvdz46vZ0bSlm6uEeGwObqkxaf4sYF8qbw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796497092; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=c9sLYfc2NLhwZh60whvK0B8nklo2WzaLR6Z4dNbrcB4=; b=wjvLG3DL69DCDKbVw+7WC4F2ZjsMFvJ1uCYYG7Lesx9ZDo+fDJ8wKFvp/pThWRJ456Ss uXM1WJxJ5GU8SBCOi4oD6HOnpFu31w+oXroRouED4CEDXEkR9I5ZRY6kbOKWRcYGNGRUv ye3MdsQLwFs+JJlf3K8pPTC9eVFGpRldzzSMMDhg/7W4mLCp5xYzjbz/EQqefX08Vhy4v IdxLbUj6cpPkc7TsCQ2rpbVA+Oh634DLtZ4lOvrPM+nR10o1Qnqd6q1a0nqrV23puM8xX bqAdL7IC6xmN3+/XR4RAZIjVpBrBCCiCm6Z/iUamZ6LBv1/ucW2xubXDuiF0/K7N5vg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=N3PJuqZ8; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4229606A31F for ; Sat, 5 Dec 2026 18:58:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=N3PJuqZ8 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 902341F0092B; Sat, 5 Dec 2026 18:58:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796497091; bh=c9sLYfc2NLhwZh60whvK0B8nklo2WzaLR6Z4dNbrcB4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=N3PJuqZ8Ip61IYI20fGzlOseEtY8ndjGwwgdoP0PeGddqJqOh3Bm6sPzBsuJd/s5i G5O/ceEooY2/an9CM0kK7U9al8cdRNhPAR1EUfGL8K63U5w5hHoXVqbgt2TcJqWZO/ vTvNVsay9lN7mg/azyM7jxsBJSG2GClWndqhv6I4N/NJRkKurZy4VlAoVaueuNFzQR MduJRIQZMcofIE/T6+ydHHuZIQFtvtq2Axcd0nN1csdPx8HDCu3jEqmNN2CrL60nWg MTewxBaYRMkSJT4xpdCXTludQ7fXZSiC/v+ijPnfUzhgOTprngYir2IqA6tblnOhJ2 RnRY40NQ3uNlQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v7 01/13] HID: haptic: Get rid of input_ff_destroy() in error paths Reply-To: sashiko-reviews@lists.linux.dev To: "Rong Zhang" Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com In-Reply-To: <20261206-hid-haptic-kmod-v7-1-3eea47035836@rong.moe> References: <20261206-hid-haptic-kmod-v7-0-3eea47035836@rong.moe> <20261206-hid-haptic-kmod-v7-1-3eea47035836@rong.moe> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 18:58:11 +0000 X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] HID: haptic: commit message inaccurately claims driver cannot build as module -- commit 2ef7c6fa04e1a243f8d5cc147ccdc1f44d78bf30 Author: Rong Zhang HID: haptic: Get rid of input_ff_destroy() in error paths This commit drops the get_device()/put_device() and try_module_get()/module_put() calls in hid_haptic_init() and hid_haptic_destroy(), removing the error paths after input_ff_create() and the input_ff_destroy() rollback. Link: https://msgid.link/f44447354f28c295e79a025bbcab7a4e@gmail.com > Due to the driver being unable to build as a module since commit > 083a4f3f3cc7 ("HID: Kconfig: Fix build error from CONFIG_HID_HAPTIC"), > try_module_get()/module_put() is needless, too. [Severity: Low] Is this rationale accurate for CONFIG_HID=3Dm? Commit 083a4f3f3cc7 ("HID: Kconfig: Fix build error from CONFIG_HID_HAPTIC") only changed CONFIG_HID_HAPTIC to bool. CONFIG_HID is still tristate and drivers/hid/Makefile links hid-haptic.o into hid.o, so with CONFIG_HID=3Dm = and CONFIG_HID_HAPTIC=3Dy, hid-haptic is still part of the loadable hid.ko modu= le. Removing try_module_get()/module_put() is safe because commit 2ae35f090d02 ("Input: destroy force-feedback device on input unregistration") destroys t= he FF device on unregistration while hid.ko is still pinned. With Cc: stable, attributing both removals to that commit makes the backport dependency clea= r. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261206-hid-haptic= -kmod-v7-0-3eea47035836@rong.moe?part=3D1