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=1796351835; b=g7qBKu11GbxlOpxgvlvIfWqINwi/BfhwGgg2P16+HNW83z/tASqeoz6usiIs7eXsWNq0 TQ7Q9StfqklbpsDOk/alAOjwCJhWTzL2QXlAE94c3mQ4bbL3ibkh/POIN16PfyzU9Qhi3 Ri6keQ+gmXPmbBLqMY7GGdcDQzMUc8O9UuQFzXyQVu0lzBTodsST9mQsAui5XgrBRGQcs aLAPxvyrVmFoltV/XwVXD6uNe3WfWklGlove370Xnlxxv4mZbfoOo4HaDapEidfeOYuyI ufM/hXD9M4Wuf2s4nho0UUhznOUz/Mv6AMp/opuKPhlfZU74R1O+iRfy267iqUJuzEA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796351835; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=9niS1VppCVbCeTlO+sT8Hj/H5p54wDsiIzajl7XVhs4=; b=qWFawmiESEKps1X9DLk6cM2zlgcnzBRXNzWLkjTj7yt5DLhPyDW/dsG0ONV56ddhJbym aMa95S/7B7dYSWRgFIX0edNPKjiSa2s3ZbBLmUfdZsk5fKKNWw3Z3/ao7fGzR0pw8m82M vDajvEVLTfPAwNn9C8KhmgqGahjbb2H82uwdPXNRR/hz/yf1HrRrqklt0Oln0Dkh0IiEJ yhkyVTDxkA8VUCGAS1u/teXFFww2/Pih38hY1JSC+QyVLySGrKImRnZZuqkLebM6+zwQK jX9VCfp7AEWkMqzcXeN2w4i7y2QrfuC26NS+8MkS59XcLuj0001DjYTdZaKiWI7rGrQ== 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="Ou/MX74S"; 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 6B135606A32D for ; Fri, 4 Dec 2026 02:37:15 +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=Ou/MX74S Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD25A1F00897; Fri, 4 Dec 2026 02:37:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796351835; bh=9niS1VppCVbCeTlO+sT8Hj/H5p54wDsiIzajl7XVhs4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Ou/MX74SMZ1StBOoSGns4gC/mkd6fCKoeYeMK+AfrwjF9dUFiwbFTtKL1VA2SIdwe 9zRWyV48aWFb+blRu8XssQ9oho+FTbYLCCgoccP8dSzlPeJFNxKmC/TChwWIVDG6B7 2ZUn7bTHKnTdlT8IdWp5xuBNKpvSdt3Je8jFAlBdSfBarWnSYucclWVQ2otTLC7QQL j7HQUedy8FeQB+f7wj0CZ0hLWSoQcMnKbdV1xCP9g2+pJ7OBlBRgHEgzoIS5tWAvSq AghgUTYMClkBpjcrys8N7QbZoDV2lViTeO4Evb2eiWbjvE9QNmqjBCatyhyepL4JFi WRrcis+GsgKFQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] HID: lg4ff: use IS_REACHABLE(CONFIG_LEDS_CLASS) for wheel LEDs Reply-To: sashiko-reviews@lists.linux.dev To: "Pengpeng Hou" Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com In-Reply-To: <179635115621.74470.12359277234264394358@163.com> References: <179635115621.74470.12359277234264394358@163.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 02:37:14 +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: lg4ff: redundant IS_REACHABLE(CONFIG_LEDS_CLASS) preprocessor guards -- commit a37dabf5bd6831438894f407db9423b32e6bd057 Author: Pengpeng Hou HID: lg4ff: use IS_REACHABLE(CONFIG_LEDS_CLASS) for wheel LEDs This commit replaces the #ifdef CONFIG_LEDS_CLASS guards in drivers/hid/hid-lg4ff.c with #if IS_REACHABLE(CONFIG_LEDS_CLASS) so wheel RPM LED support is compiled when both the driver and the LED class are modules. > diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c > index 62f99a93210c9..d4411a696cc48 100644 > --- a/drivers/hid/hid-lg4ff.c > +++ b/drivers/hid/hid-lg4ff.c > @@ -67,7 +67,7 @@ struct lg4ff_wheel_data { > u16 range; > const u16 min_range; > const u16 max_range; > -#ifdef CONFIG_LEDS_CLASS > +#if IS_REACHABLE(CONFIG_LEDS_CLASS) > u8 led_state; > struct led_classdev *led[5]; > #endif [Severity: Low] Are these IS_REACHABLE(CONFIG_LEDS_CLASS) guards needed at all? In drivers/hid/Kconfig, HID_LOGITECH unconditionally depends on LEDS_CLASS and LOGIWHEELS_FF depends on HID_LOGITECH. Since hid-lg4ff.o is only linked into hid-logitech.o, CONFIG_LEDS_CLASS is always reachable whenever hid-lg4ff.c is built. Removing all four preprocessor guards and the extra scoping block in lg4ff_deinit() would be simpler and avoid suggesting that LED class support is optional. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/179635115621.74470.= 12359277234264394358@163.com?part=3D1