Re: [PATCH v2] Input: twl4030 - fix warnings without CONFIG_OF
From: Dmitry Torokhov
Date: Thu Jan 08 2026 - 01:19:44 EST
On Sat, Dec 27, 2025 at 12:59:18PM +0100, Andreas Kemnade wrote:
> There are unused variables without CONFIG_OF:
> drivers/input/misc/twl4030-pwrbutton.c:41:44: error: unused variable 'twl4030_chipdata' [-Werror,-Wunused-const-variable]
> 41 | static const struct twl_pwrbutton_chipdata twl4030_chipdata = {
> | ^~~~~~~~~~~~~~~~
> drivers/input/misc/twl4030-pwrbutton.c:46:44: error: unused variable 'twl6030_chipdata' [-Werror,-Wunused-const-variable]
> 46 | static const struct twl_pwrbutton_chipdata twl6030_chipdata = {
>
> Fix that by avoiding some #ifdef CONFIG_OF
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202512220251.jDE8tKup-lkp@xxxxxxxxx/
> Signed-off-by: Andreas Kemnade <andreas@xxxxxxxxxxxx>
Applied, thank you.
--
Dmitry